https://github.com/tc-mccarthy/xmas-tree-timer
Authored as a solution for a Bradford exchange christmas tree that only ran for 60 minutes. This power cycles the tree on a cron schedule via the smart outlet in which it is plugged
https://github.com/tc-mccarthy/xmas-tree-timer
bradford-exchange christmas outlet-timer tp-link
Last synced: 25 days ago
JSON representation
Authored as a solution for a Bradford exchange christmas tree that only ran for 60 minutes. This power cycles the tree on a cron schedule via the smart outlet in which it is plugged
- Host: GitHub
- URL: https://github.com/tc-mccarthy/xmas-tree-timer
- Owner: tc-mccarthy
- License: mit
- Created: 2022-11-26T22:20:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T15:17:51.000Z (over 2 years ago)
- Last Synced: 2024-04-13T17:15:15.745Z (about 2 years ago)
- Topics: bradford-exchange, christmas, outlet-timer, tp-link
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TP Link Christmas tree timer
I have a Bradford exchange Disney christmas tree that my family and I really enjoy. Unfortunately it only runs for about an hour before turning off. To keep it running at the same time as all of my other Christmas decorations, I plugged it into a TP-Link mini smart plug and wrote this script to run every hour on my Raspberry Pi.
The scripts pulls the outlet's status. When it's "on" it switches it off, waits 1 second, and then switches it back on, all using the TP Link local API. This keeps my tree running all day, but only when my smart plug is scheduled to be on or when I've manually turned it on.