Skip to content

A powersaver code written in python to put your RaspberryPi's display to sleep when you are not near it (checks if your phone or smartwatch is connected to wifi !)

Notifications You must be signed in to change notification settings

RpDp-git/PiDisplaySleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

PiDisplaySleep

A powersaver code written in python3 to put your Pi's display to sleep when you are not near it (checks if your phone is connected to the wifi !). This code is mainly aimed to run on smart mirrors(I use MagicMirror). If you live in a dorm room like me and dont want your mirror up all day long when you are away: this does the purpose !

Set up : Enter your phone's or whatever devices' IP address in the script. Run the script at boot OR just run the main.py as : " python main.py & " through ssh and exit ssh with Ctrl + D. This will run the script in background until the next power down.

Note: this project uses the nmap package to do network scans; make sure you install it on your device using $ sudo apt-get install nmap

About

A powersaver code written in python to put your RaspberryPi's display to sleep when you are not near it (checks if your phone or smartwatch is connected to wifi !)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages