Skip to main content

Daylight mode for Xiaomi Mi Yeelight bulbs and lights.

Project description

Night shift script for Xiaomi Mi Yeelight lights and light bulbs.

Setup

Raspberry Pi

Download setup the latest version of Rasbian on your Raspberry Pi.

Next install the following packages:

sudo apt-get install python3 python3-pip -y

Deeelight

Install the Python package

pip3 install deelight

and run the deelight command

deelight "New York, US" -v

Autostart

If you are running deelight on Raspbian or any other Debian system, simply do:

sudo echo '#!/usr/bin/env sh' > /etc/network/if-up.d/deelight
sudo echo "$(which deelight) \"New York, US\" -v"" >> /etc/network/if-up.d/deelight
sudo chmod +x /etc/network/if-up.d/deelight

Deelight will be now run whenever your device is connected to the network.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deelight-1.0.2.tar.gz (9.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page