Ok. I'm back. I reopened my GB Zero, flashed the SD card to star anew, enabled WIFI and SSH, then got to work. Before adding the script the switch worked like a regular on/off switch. Then I followed the instructions here: https://github.com/Camble/Safe-Power-Monitor
I changed AdafruitPowerBoost = True to AdafruitPowerBoost = False
then I added dtoverlay=gpio-poweroff:gpiopin=22,active_low="y" to /boot/config.txt
To be honest I can't remember if I had to do anything special here to add the script to startup. It just says add the script to startup.
EDIT: BTW, the way it stands now it still doesn't work.
EDIT2: I did as you suggested.
[Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
- winnetouch
- Posts: 158
- Joined: Mon Jul 11, 2016 10:56 am
- Has thanked: 2 times
- Been thanked: 30 times
-
- Posts: 5
- Joined: Wed Dec 05, 2018 8:47 am
- Has thanked: 1 time
- Been thanked: 2 times
Re: [Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
This grep output shows that the script is not running, so clearly there could be nothing working.
Please check the section https://github.com/Camble/Safe-Power-Mo ... the-script ... There you see that it has to be added as a cron job in your crontab by executing this line:
Than reboot and do this grep command again. It should show more than only itself
hth
the_darkman
Please check the section https://github.com/Camble/Safe-Power-Mo ... the-script ... There you see that it has to be added as a cron job in your crontab by executing this line:
Code: Select all
echo "@reboot /usr/bin/nice -n 19 /usr/bin/python ~/Safe-Power-Monitor/safe_power_monitor.py" >> mycron; crontab mycron;rm mycron
hth
the_darkman
- winnetouch
- Posts: 158
- Joined: Mon Jul 11, 2016 10:56 am
- Has thanked: 2 times
- Been thanked: 30 times
Re: [Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
OMG! HOW DID I MISS THAT? I read the entire thing. Had it working on a previous build even! Thanks man. I guess I have some new toys to tinker with during my countries self isolation period. Stay safe people!
EDIT: And it's a dud again. Sometimes it works sometimes it doesn't. Oh, well I guess it's better then nothing
EDIT: And it's a dud again. Sometimes it works sometimes it doesn't. Oh, well I guess it's better then nothing
Re: [Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
Hello everybody;
I am also trying to build a GBZ and for that I bought a BangGood PSU ( the one that self activates when a load is present). It seems like the re no more orders placed for the shutdown v1.0 for BangGood PSU, so I would like to ask for advice. Should I try to build one by myself? Is it really worth it? I say these from a non-expert pint of view but, if I can shut down via software the GBZ, does it really matter if I switch it of with a mecanical switch or with a mosfet?
And, any way to contact camble??
thanks and cheers ¡
I am also trying to build a GBZ and for that I bought a BangGood PSU ( the one that self activates when a load is present). It seems like the re no more orders placed for the shutdown v1.0 for BangGood PSU, so I would like to ask for advice. Should I try to build one by myself? Is it really worth it? I say these from a non-expert pint of view but, if I can shut down via software the GBZ, does it really matter if I switch it of with a mecanical switch or with a mosfet?
And, any way to contact camble??
thanks and cheers ¡
Re: [Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
I understand these are no-longer being made - Camble would you be willing to share a schematic if you're not going to be making more of these?
Or has someone else developed another solution?
Or has someone else developed another solution?
Re: [Sold Out] Safe Shutdown v1.0 for BangGood/GearBest/Generic power Supply
The 1.0 is not available however there's the 1.5 (I bought 2 not so long ago)
I wished the 2.0 was there tho
I wished the 2.0 was there tho
Who is online
Users browsing this forum: No registered users and 1 guest