-
Notifications
You must be signed in to change notification settings - Fork 3
Description
First of all, I want to thank you for this great piece of work! It took some time, but now it is up and running on a TJ Allsky camera driven by a raspi.
I did the training for my setting as recommended, however, I come across an issue with respect to the ascom alpaca driver: It reports "SAFE" while the condition is "overcast" or "mostly cloudy" and shoould be "UNSAFE"
The reported confidence level was >80% (I was looking at the log via the "docker logs -f simple-cloud-detect" command - see below.
Unsafe switch conditions were at 10% for "overcast" and "mostly cloudy" in the safety classification tab. I would expect a switch to "UNSAFE", but it got stuck with "SAFE" in the ASCOM status.
Another observation is, that the Safety History rested at two entries...
Here a log entry:
2026-01-13 22:39:20,139 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 83.98, 'Detection Time (Seconds)': 0.76, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7DF0E190>}
2026-01-13 22:39:20,277 - INFO - Published HA states: mostly cloudy, 83.98%, 0.76s
2026-01-13 22:39:20,277 - INFO - Cloud detection: mostly cloudy (84.0%)
2026-01-13 22:39:51,377 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 93.7, 'Detection Time (Seconds)': 0.78, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7C208090>}
2026-01-13 22:39:51,528 - INFO - Published HA states: mostly cloudy, 93.7%, 0.78s
2026-01-13 22:39:51,529 - INFO - Cloud detection: mostly cloudy (93.7%)
2026-01-13 22:40:22,660 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 89.37, 'Detection Time (Seconds)': 0.78, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7D57A4D0>}
2026-01-13 22:40:22,808 - INFO - Published HA states: mostly cloudy, 89.37%, 0.78s
2026-01-13 22:40:22,809 - INFO - Cloud detection: mostly cloudy (89.4%)
2026-01-13 22:40:54,056 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 92.57, 'Detection Time (Seconds)': 0.91, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7C1C7390>}
2026-01-13 22:40:54,199 - INFO - Published HA states: mostly cloudy, 92.57%, 0.91s
2026-01-13 22:40:54,200 - INFO - Cloud detection: mostly cloudy (92.6%)
vercast" or "mostly cloudy"2026-01-13 22:41:25,191 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 99.47, 'Detection Time (Seconds)': 0.73, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7C208090>}
2026-01-13 22:41:25,319 - INFO - Published HA states: mostly cloudy, 99.47%, 0.73s
2026-01-13 22:41:25,320 - INFO - Cloud detection: mostly cloudy (99.5%)
2026-01-13 22:41:56,330 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 99.88, 'Detection Time (Seconds)': 0.75, 'image': <PIL.Image.Image image mode=RGB size=3552x3552 at 0x7F7C1DDCD0>}
2026-01-13 22:41:56,462 - INFO - Published HA states: mostly cloudy, 99.88%, 0.75s
2026-01-13 22:41:56,462 - INFO - Cloud detection: mostly cloudy (99.9%)
2026-01-13 22:42:27,472 - INFO - Detection: {'class_name': 'mostly cloudy', 'confidence_score': 95.74, 'Detection Time (
Would could be the culprit?
Thank you very much in advance,
Christian