Forecast IO Whole Degrees?

Asked by markuhde

I am in a Fahrenheit-using region, and trying to use the Forecast IO module - it reports temperatures to two decimal places? This looks really odd as Fahrenheit is usually formatted to whole degrees (and often Celsius is too, in my experience). Is there any way to round this number?

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
markuhde
Solved:
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

If you use the "Request Forecast" button you will see all of the substitutions available to you.

The one you want is "temperatureFloor", so override the template and replace temperature with temperatureFloor.

Revision history for this message
markuhde (mark-markuhde) said :
#2

Thanks Dan Garner, that solved my question.

Revision history for this message
markuhde (mark-markuhde) said :
#3

PS, how do you request to change to metric units, I see how in the Forecast IO API, but not how in Xibo? Also, just as a feature request - it'd be nice to be able to make the forecast a LITTLE bigger :) But that's a tiny thing.

Revision history for this message
Dan Garner (dangarner) said :
#4

Xibo provides "auto" as the requested units - which should stick to the units for that particular location - I guess it isn't in your case?

Have you tried adjusting the "size" option to increase the size of the widget - it should be able to go really quite large :)

Revision history for this message
markuhde (mark-markuhde) said :
#5

OMG, missed the size option, and no it's using the "correct" units for the region. Sadly, I'm not in a position to argue with my boss that we should be using metric units to encourage metrication. I'm just thinking for other deployments where I may be able to push the use of proper units *dreaming*

Revision history for this message
Dan Garner (dangarner) said :
#6

Haha, well I must confess to not liking some of the metric system too :-)

Adding a units option is fairly trivial, i'll make a note of it

Revision history for this message
markuhde (mark-markuhde) said :
#7

I like miles per hour sometimes, simply because 60 miles per hour is a good approximation of speed between cities thus one minute per mile.

Other than that, I'm pro-metric all the way :)

Revision history for this message
markuhde (mark-markuhde) said :
#8

Ooops didn't mean to re-open thanks so much for all your help BTW!

Revision history for this message
Dan Garner (dangarner) said :
#9

mph, height and weight! so actually quite a bit, haha

You're Welcome :-)

Revision history for this message
markuhde (mark-markuhde) said :
#10

Height, I'm definitely metric :) As for weight, I prefer stone to kilograms to pounds. Because in order, they're the highest value (thus lowest number) units :)

Revision history for this message
Dan Garner (dangarner) said :
#11

haha, i like your thinking!