Remote ASCOM (using Alpyca) drivers and other software for running Unihedron SQM-LU (Sky Quality Meters) sensors on Linux, in particular Raspberry Pi.
These scripts are pretty basic and could really use some polishing, real configuration options etc.
$ python sqmlu-reader.py
#### DEBUG: received data: r, 00.00m,0000557326Hz,0000000000c,0000000.000s, 020.6C
#### DEBUG: entities: ['r', ' 00.00m', '0000557326Hz', '0000000000c', '0000000.000s', ' 020.6C']
# r, 00.00m,0000557326Hz,0000000000c,0000000.000s, 020.6C
sqm temperature=20.6,magnitude=0.0Data can be exported to InfluxDB. You need to set up several environment variables:
export INFLUX_TOKEN=<your secret token>
python sqmlu-reader.py | python influx-upload.pypython sqm-reader-alpaca.pyIf needed, please modify USB_PORT variable to point to your USB port that's used by the Unihedron.
Then use NINA (or any other astronomy software that's able to use remote ASCOM), connect to port 11111.