Code Monkey home page Code Monkey logo

Comments (5)

frequency17 avatar frequency17 commented on June 8, 2024 1

Everything came back alive except for the PID.

For subsequent readers, I the code should be:
print(p.is_alive()) print(h.is_alive()) print(r.is_alive()) print(s.is_alive())

from silvia-pi.

RoccoMathijn avatar RoccoMathijn commented on June 8, 2024

Apache is not necessary. This software is using cheroot server which will be installed by the setup.sh script.

You're accessing localhost:8080 from the pi or from your laptop/pc? (just asking). Localhost is referring to the pi so if you're on your laptop/pc you should replace localhost with the ip address of your pi.

And can you maybe check the logs? There should be a file silvia-pi.log in your working directory.

from silvia-pi.

frequency17 avatar frequency17 commented on June 8, 2024

I've tried on the pi itself with localhost and via another computer accessing the IP address of the pi.

silvia-pi.log is:
Starting Scheduler thread... Starting PID thread... Starting HE Control thread... Starting REST Server thread... Starting Watchdog...

I haven't connected any of the wiring. I'm just getting the software part up. Would that cause a silent failure?

from silvia-pi.

RoccoMathijn avatar RoccoMathijn commented on June 8, 2024

That could be it but I'm unable to test it myself. There's a seperate error log for pid errors. Anything in there? I would guess an error in the pid thread if you didn't connect your sensor.

You could also maybe add these lines just before the while loop on line 344 in silvia-pi.py. Guessing one of them returns false

print("p.isAlive()")
print("h.isAlive()")
print("r.isAlive()")
print("s.isAlive()")

from silvia-pi.

frequency17 avatar frequency17 commented on June 8, 2024

And actually having the PID not hooked up is why this was exiting. The while line is:
while p.is_alive() and h.is_alive() and r.is_alive() and s.is_alive():

When i removed the p.is_alive(), the page loaded. Thanks for the help troubleshooting!

from silvia-pi.

Related Issues (20)

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.