All Apps and Add-ons

Is it possible to display data in celsius instead of fahrenheit in Nest Home Thermostat app?

rocklobster
Engager

I've just installed this app, so may have missed this setting somewhere - but is it possible to display the data in celsius rather than fahrenheit?

Tags (1)
1 Solution

Damien_Dallimor
Ultra Champion

I just opened up the app and had a look at it's internals.

To change to celsius , you could quite simply change the search commands in nest/default/data/ui/home.xml and nest/default/data/ui/temperature.xml (using a text editor or via the Splunk Web Simple XML editor).

They seem to be using a macro called "c_to_f" which you could just remove.

Ideally the app would have a setup asking you for your preferred unit of measurement.

View solution in original post

Azeemering
Builder

To evaluate Fahrenheit to Celsius in SPL itself:

   | eval Temperature_Fahrenheit=Temperature_Celsius*1.8+32
0 Karma

Damien_Dallimor
Ultra Champion

I just opened up the app and had a look at it's internals.

To change to celsius , you could quite simply change the search commands in nest/default/data/ui/home.xml and nest/default/data/ui/temperature.xml (using a text editor or via the Splunk Web Simple XML editor).

They seem to be using a macro called "c_to_f" which you could just remove.

Ideally the app would have a setup asking you for your preferred unit of measurement.

rocklobster
Engager

Thanks Damien - I actually found that a couple minutes ago and have since stripped out all of that conversion.

For reference the Inside Temp in Celsius should use the search

sourcetype=nest Collection=shared | stats latest(current_temperature) as temp
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...