Skip to content

Poweroff the raspberrypi by pushing a physically attached button

Notifications You must be signed in to change notification settings

skorebrits/raspberrypi_poweroff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Poweroff a raspberry pi with a physically attached button

Connect a button to Ground & GPIO 2

Raspberry Installation

  • cp power_off.py & poweroff.sh to /home/pi/
  • chmod 755 poweroff.sh
  • sudo crontab -e
  • @reboot sh /home/pi/poweroff.sh >/var/log/poweroff.log 2>&1

About

Poweroff the raspberrypi by pushing a physically attached button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published