Machriam / PlantMonitor

GNU Affero General Public License v3.0
1 stars 0 forks source link

Rock solid image transfer #145

Open Machriam opened 1 month ago

Machriam commented 1 month ago

Problems

Proposal

Machriam commented 1 month ago

During a week long test, it seems like the internet connection is not a problem at all. It may only happen, that no images are taken from the videostream - for example the ir-camera needs a restart. To resolve this issue, the initial test should just start the videostream and then an endpoint is called to retrieve the current image count in the corresponding streaming folders.

The new endpoint should be called countofstreamedimages and it should take the camera sensor type as an argument and returns the count of images in the corresponding folder.

The initial check can then be as simple as: If the count of both streams is greater than 0, then both cameras are functional. Else a restart might be required.

Restarting behaviour should be tiered. First a reboot, then an actual power cycle