External Temperature Sensor - aaronwmorris/indi-allsky GitHub Wiki

Overview

If your camera does not support direct temperature measurements, indi-allsky supports using an external temperature sensor in place of the camera sensor.

You may specify an external script to query an external temperature sensor. indi-allsky will execute the script along with an environment variable containing a filename to write the resulting JSON data. The name of the environment is TEMP_JSON.

Example Data

The file generated by the script must be valid JSON data containing a variable named "temp" with a floating point value. The data is assumed to be celsius.

{
  "temp": -5.111
}

Example scripts

Included are two example scripts to show what is possible.

Testing

You may test the script by manually passing the TEMP_JSON path via environment variable

$ TEMP_JSON=/tmp/foobar.json ./example_ccd_temp.py

$ cat /tmp/foobar.json
{
    "temp": -5.111
}