Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

erijpkema/lifx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lights on when home

This script will switch your lifx lights on when you get home and it is dark outside. It makes use of the lifx public api. I run it on my raspberry pi but any computer that is permanently switched on and is located at your home should work. (you might want to change the install location though)

Prerequisites

  • python3, virtualenvwrapper and pip.

Installation

  • copy settings.py.template to settings.py and fill in the data. You can get your location from google maps and your lifx api token from lifx.

  • mkvirtualenv lifx --python=/usr/bin/python3

  • pip install -r requirements.txt

  • put the lifx.service file in /etc/systemd/system and enable it with systemctl enable lifx.service You should be able to confirm that it has started after running journalctl /home/pi/lifx/start.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published