I have some linux experience, desktop and rpi, but very little python.
Trying to get script to run on a rpi 1b rev2. I'm unable to get the website to show on local network.
After some troubles going down the Python2 part from the readme, and having to install "configparser" I noticed the the shell is for python3. Oh damn. Fixed that.
Was trying to run as a service under systemd after I couldn't get it to play under rc.local. No luck. so move files back to users home and tried to run as plain user. Still no go, but can run "python3 -m http.server 8080 &" get to the page , so I don't think it firewall or some other connective issue.
I'm down to debug logs to find clues. current output is :-
---------------------------------------------------------------------------------------------
2023-05-13 16:20:15,540:INFO:MainThread:
2023-05-13 16:20:15,547:INFO:MainThread:My pid: 2267
2023-05-13 16:20:15,550:DEBUG:MainThread:reading config file
2023-05-13 16:20:15,616:WARNING:MainThread:No pin specified for PSU_SENSE. WOL support disabled
2023-05-13 16:20:15,620:DEBUG:MainThread:Creating gpiozero objects
2023-05-13 16:20:15,623:DEBUG:MainThread: Power switch
2023-05-13 16:20:15,734:DEBUG:MainThread: Reset switch
2023-05-13 16:20:15,741:DEBUG:MainThread:(re)starting Webserver
2023-05-13 16:20:15,748:DEBUG:MainThread:drop_privs: True
2023-05-13 16:20:15,751:DEBUG:MainThread:attempting to drop root privilages
2023-05-13 16:20:15,757:DEBUG:webserver:binding to 192.168.1.15:8080
2023-05-13 16:20:15,760:DEBUG:webserver:started listening
2023-05-13 16:20:15,764:DEBUG:MainThread:Currently running as user greg:greg. No need to drop privileges
2023-05-13 16:20:16,247:DEBUG:MainThread:Local power control: True
2023-05-13 16:20:16,250:DEBUG:MainThread:entering main loop
2023-05-13 16:20:16,253:DEBUG:MainThread:cleaning up
2023-05-13 16:20:16,257:DEBUG:MainThread:stopping threads
2023-05-13 16:20:16,259:DEBUG:MainThread:Freeing GPIO
2023-05-13 16:20:16,270:DEBUG:webserver:exiting
------------------------------------------------------------------------------------------------
Any ideas? I don't know why the script exits for no reported reason.
One question, should I be able to run fakewake.py without the hardware interfaces connected. The M74HC4066B1R hasn't arrived yet.
Greg