I use openHAB and want to use an old mobile phone as an day/night indicator. I have installed a webcam app and it is filming the sky.
I can get the latest shot via
http://[ip]/shot.jpg. Can I get a "brightness value" like this:
curl http://[ip]/shot.jpg | some-command --get-brightness?