Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lriley2020/pilights
Raspberry Pi Controlled Christmas Lights
https://github.com/lriley2020/pilights
Last synced: 12 days ago
JSON representation
Raspberry Pi Controlled Christmas Lights
- Host: GitHub
- URL: https://github.com/lriley2020/pilights
- Owner: lriley2020
- License: mit
- Created: 2022-12-23T10:51:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T21:55:13.000Z (almost 2 years ago)
- Last Synced: 2023-07-25T22:22:00.470Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pilights
Raspberry Pi Controlled Christmas Lights## Instructions for installation and use
1. Clone the repo: `git clone https://github.com/lriley2020/pilights.git`
2. `cd pilights`
3. (Optional) Create a virtual environment: `python3 -m venv venv` ... and activate it: `source venv/bin/activate`
4. Install the required packages: `pip3 install -r requirements.txt`
5. Run the API: `python3 api.py`
## Next steps...
### Adding the API as a systemd service to start automatically
Run the `systemd-setup.sh` script as root (you may need to change some paths before running): `sudo ./systemd-setup.sh`### Adding an Apple Shortcut to trigger the lights
You can use the "Get contents of" block in an Apple shortcut to trigger the webhook with the API key.
Example:
https://www.icloud.com/shortcuts/963fe4e9c4984912a7da0d90fec2f4a0You can now ask Siri to "Turn the Christmas lights on"!
Note: you will need to change the URL in the "Get contents of" block for this to work.