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

Update OS #98

Closed Vincent-Stragier closed 2 years ago

Vincent-Stragier commented 2 years ago

Description

Update OS to latest Raspios. This could fix issue #95, but it has not been tested yet.

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Tested on the following devices:

Checklist:

mikevanis commented 2 years ago

Thanks for your contribution @2010019970909! We've tested this on Pi Zero 2 W, and it almost works! I'll merge this to a new branch, so that we can add some extra changes to make it work on Pi Zero 2 W. We just need to enable legacy camera support and we should be up and running.

Vincent-Stragier commented 2 years ago

@mikevanis maybe you can try something like

raspi-config nonint do_camera 0

It should activate the camera after the next reboot, e.g., using cfgsetup.py.

import subprocess

# Enable camera after next reboot
raspi_config_result= subprocess.run(
    ['raspi-config', 'nonint', 'do_camera', '0'], stdout=subprocess.PIPE)
# output = raspi_config_result.stdout.decode('utf-8')