Outputting the Sensor Temperature to file or other location #1009
-
I'd like to log the Sensor Temperature for my 178MC as I'm working on improvements to the enclosure it's in and things like controlling the heater etc. and having it in the image makes it a little hard to parse that compared to in something else (e.g. I use Grafana/Promethus/MQTT for moving info around or displaying it). I've had a glance through the scripts and stuff and it's entirely possible that I've missed something but am I correct in thinking that the value is only seen by Would there be another way to get this data that is more suited to that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@darkorb Alex, Good timing. Starting with version 0.8.3 for ZWO cameras the "capture" program passes several variables to the scripts/saveImage.sh program, including the temperature. In scripts/saveImage.sh on or after line 72 you can access the temp via ${AS_TEMPERATURE}. For example,
This will append the current date/time and temperature, separated by a tab character, to a text file. If you wanted a new file every time you started Allsky you could add this line to allsky/allsky.sh: We are going to add the ability to invoke a user-supplied script from scripts/saveImage.sh for exactly this type of thing, that way you won't need to modify an Allsky script (and risk it being overwritten when you upgrade). If this answered you good question, please make this item as "answered". |
Beta Was this translation helpful? Give feedback.
@darkorb Alex, Good timing. Starting with version 0.8.3 for ZWO cameras the "capture" program passes several variables to the scripts/saveImage.sh program, including the temperature. In scripts/saveImage.sh on or after line 72 you can access the temp via ${AS_TEMPERATURE}. For example,
This will append the current date/time and temperature, separated by a tab character, to a text file. If you wanted a new file every time you started Allsky you could add this line to allsky/allsky.sh:
> my_temperature_log_file.txt
.We are going to add the ability to invoke a user-supplied script from scripts/saveImage.sh for exactl…