whaleygeek / pyenergenie

A python interface to the Energenie line of products
MIT License
82 stars 51 forks source link

Build a complete worked example (games console minder) #62

Open whaleygeek opened 8 years ago

whaleygeek commented 8 years ago

Here is the idea for the games console minder demo

# games_console_minder.py  28/05/2016  D.J.Whale
#
# A simple demo showing how to turn the games console off after a timeout limit

# REQUIREMENTS
# - senses when the games console is turned on via energy usage monitor and/or switch status
# - starts a cumulative timer of game time used
# - when a limit is reached, sound an alarm by playing a warning sound
# - when 1 minute from turn off, sound a very anoying warning sound
# - turn the plug off when alarm time reached
# - persist game used time to a file for recall later
# - allow limits on total time per day, and total time in one sitting
# - simple status messages on the screen