interactionresearchstudio / NaturewatchCameraServer

A Python / OpenCV camera server to stream Pi camera content to a remote client through a website.
https://mynaturewatch.net
GNU General Public License v3.0
103 stars 48 forks source link

Various tweaks #6

Closed MrChaz closed 6 years ago

MrChaz commented 6 years ago

Adds in a simple temperature display to the web UI Removes the write lock from saving images because I think that was causing blank images. Completely re-init the camera if there is a crash so things start back up again fully. Reduce log spam by only logging out the first error. Use copy() before sending the data off to other threads just in case there is some kind of issue there

mikevanis commented 6 years ago

Hi @MrChaz, I am reviewing this today. The screen freezing issue is caused by the error handling section we accepted from you. As a result, the UI gets the same image over and over again instead of crashing and restarting. We have two options here:

  1. Go back to our un-graceful crash and expect the new service manager to restart the script from scratch.
  2. Review your camera reinitialisation code and test it against the current version

We are still unable to accept code that exposes the temperature to the UI. It's a debugging feature that can easily be deployed in advanced users' implementations. I hope that makes sense!

mikevanis commented 6 years ago

Full camera module restart routine has been cherry-picked and implemented in v0.4.1.