Open darkpixel opened 3 years ago
@darkpixel thank you, you may open a Pull Request with this and we will review!
Hmm...when calling sensors -f
you can get the output in fahrenheit. Without the -f
flag you get the results in Celsius....but if you call sensors -j
the JSON output always returns Celsius. Even if you pass the -f
flag. So this change would possibly break stuff.
ok, well, I have to put this into blocked - maybe you want to file an upstream bug?
Maybe a second module would work? Something like sensorsjson
?
The current output of the sensors module is string data wrapped into a dictionary.
The sensors application has support for the
-j
flag which returns data in JSON format. Using that data returns a more structured result.A small change to the
modules/sensors.py
file returns the latter output: