đ· image.png
This uses a Machine Learning model that you can train yourself to detect sky conditions and acts as an ASCOM Alpaca SafetyMonitor.
It runs in docker and can be run on either x86 or on the Raspberry Pi that runs the AllSky system. This is primarily based on TJ's AllSky platform but it can easily be used to detect any thing you want as long as the model is trained for it.
https://github.com/chvvkumar/simpleCloudDetect/tree/main
Features
ML Cloud Classification - Detects Clear, Wisps, Mostly Cloudy, Overcast, Rain, and Snow conditions
Home Assistant Integration - MQTT Discovery for automatic setup or legacy manual configuration
ASCOM Alpaca SafetyMonitor - Compatible with N.I.N.A., SGP, TheSkyX, and other astronomy software
Docker Support - Easy deployment with both services running simultaneously
Flexible Image Sources - Supports URL-based and local file images
Custom Models - Bring your own trained model and labels
Confidence Scores - Includes detection confidence and timing metrics
Training the model is also very essay without any coding required. The process is explained in the repo's readme.
Full settings page:

and the container in Docker desktop:
I have Home Assistant trigger a rain alert on my home Nest speakers whenever there is rain detected and while the scope is out and powered ON. I ended up using images from an yearâs worth of data to train my model. About ~7000 images per class.