Giter Club home page Giter Club logo

fakewake's People

Contributors

matt40k avatar thagrol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fakewake's Issues

Multiple Addresses for Ping

Is there a way to add multiple IP addresses for the Ping in the config? I have a PC with two NICs, I don't need a status for both but if there was a way to have it ping two IPs and get a Yes for either.

Unable to connect with web server.

Hi,

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

Inverting PSU Sense

First thank you so much for all of the work you have put into this. While researching how to power on and off a PC with a Pi (because WOL and Sleep is not reliable for me) I came across your posts multiple times.

But I have a slight issue. I am using relays and optocouplers for my input and outputs. Because of this I am getting a reversed input, where the pin is HIGH when the PC is off and LOW when the PC is on. I attempted a couple of times now to reverse this but I do not know enough to figure it out myself. Is there a simple way to change the code to make this work?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.