Forecast IO temperatures preview and player are different

Hello,

I have made a layout with the Forecast module.
The preview shows that the temperatures are 14 for today, 16 for Friday, 18 for Saturday, 15 for Sunday and 13 for Monday. These temperatures should be right.
However, in the Xibo player, the temperatures are different, like 10 degrees higher or more.

This is really weird :neutral_face:

Hi,

It’s probably because of display location.

So you can either:

  • In forecast item specify the location (longitude latitude and don’t use ‘Use the Display Location’ checkbox)
  • Or in displays page, specify the longitude/latitude for your display device and then in forecast item tick the ‘Use the Display Location’ checkbox)

I assume that you had this checkbox ticked (so it was probably correct in CMS) but since you don’t have display location specified in displays page, then on the player it wasn’t correct.

Thanks, I had to uncheck the box ‘Use the Display Location’ and fill in the latitude & longitude. :thumbsup:

When I click ‘Request Forecast’ and, for example, I want to add ‘sunriseTime’ to the template, how can I know what the div class is?

Please look at my reply in this topic

I have read the topic before I opened this one, but I still don’t get it…

For example: < div class=“hum” >Humidity [humidity] < /div >

Where does “hum” come from (is this written down somewhere?) and what if I want to use ‘sunriseTime’?

You’d use [sunriseTime] assuming sunriseTime appears in the list of substitutions when you get the forecast. The containing div class is to do with styling the text and that’s in the CSS part of the template. You’d need to understand how to write CSS styles to use that.

I have little experience in working with HTML/CSS, but that sounds logical. :smile:

Is there also a way to change the language of the weather widget?
I know you can change the language in the Appearance tab, but the days are still written in English.

Well if you change the language in appearance tab, it will change the language correctly on all view options except the 5 days, current day in big circle.

Now due to date formatting and how all the things work in 1.7 series and forecast

You will need to perform few other actions to make it work.

In CMS settings, regional tab:
language - set your preferred language (for example pl or fr - list is here
Change date format to - YYYY-MM-dd HH:mm:ss
tick the ‘Show international dates?’ checkbox

Now on the forecast item, set it to ‘5 days…’ view option, tick ‘override template’ and then find:

<div class="weekday">[time|l]</div>
<div class="weekday-short">[time|D]</div>

Change it to:

<div class="weekday">[time|cccc]</div> 
<div class="weekday-short">[time|eee]</div>

Aaand done, it should be in correct language now.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.