aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
219 stars 35 forks source link

Documentation of Sensor Implementation and imperial conversion #1404

Open DamoclesSword opened 1 month ago

DamoclesSword commented 1 month ago

I am not sure if this the correct place to do this, but there seems to be a lack of documentation of how to implement data from the Wunderground API via the sensors. I figured out how to do it, but I think clear steps should be in the wiki.

The thing I still cannot find is how to report these values in imperial units.

aaronwmorris commented 1 month ago

I will add a note in the wiki and the config form. You can change from metric to imperial by changing the Temperature display from Celcius to Fahrenheit on the Camera tab.

aaronwmorris commented 1 month ago

As a side note, the Weather Underground API is always queried for metric values. indi-allsky converts the values based on the Temperature Display value in the config.

DamoclesSword commented 1 month ago

Awesome. With a little help from ChatGPT, I got it figured out. I have only a very low level understanding of all of this, so maybe more experienced users wouldnt struggle. Either way, adding to the wiki cant hurt!

Is there anyway to keep the camera sensor in Celsius, but just have the weather API in Imperial? I know it is weird, but I am used to evaluating electronics on the 0-100C scale.

aaronwmorris commented 1 month ago

Not without manually editing the code.

aaronwmorris commented 1 month ago

Nevermind, I will work on this. It should be pretty simple.

aaronwmorris commented 1 month ago

Merged #1405 to allow all of the system temperatures to be available as a static unit.

https://github.com/aaronwmorris/indi-allsky/wiki/Image-Labels#system-temperature-sensors

DamoclesSword commented 1 month ago

Wow! Sorry for the delay but it is super cool that you went ahead and did this. This might be a dumb question, but how do I implement this? Do I have to reinstall everything?

aaronwmorris commented 1 month ago

You just need to update the code to the latest level. Below are the instructions:

https://github.com/aaronwmorris/indi-allsky/wiki/Updating-indi-allsky