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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...