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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...