
Hi,
I tried to build just that, using
astrometry.net's image2xy to count stars. I have it running but it is not reliable at all as lots of cloud edges also get counted as stars.
So I need to improve star detection and would welcome ideas !
I use this ugly oneliner to count stars from my raspberry pi allsky camera :
cat 20161004_222135-rpi3.jpg |jpegtopnm 2>/dev/null|ppmtopgm|convert -crop 1750x1944 - - |convert - crop.fits && image2xy -O -g 9 crop-0.fits|awk '{ print $3 }'
54
where I also cut off the right side of the image as some rolloff roof is visible there. The whole thing runs in a loop that also controls exposure length and the counted stars number is sent to rrdtool from which I make plots like attached.
-- Hans