Page 8 of 10

Re: Weather on the wall, or my wBox :)

Posted: Wed 12 Aug 2020 8:31 pm
by dazza1223
hi i setting up the wbox and i trying to get forecas.xml but it saying ony work with api now?

NB!!!!
In the first quarter next year, forecast.xml and forecast_hour_by_hour.xml will be discontinued in favour of a newer JSON API.
Vi encourage you already now to switch to the new API.
There are a lot of changes, and you can read all the technical details in our new developer portal https://developer.yr.no


https://www.yr.no/place/United_Kingdom/ ... /data.html

Re: Weather on the wall, or my wBox :)

Posted: Thu 13 Aug 2020 4:58 pm
by Smarmen
Hi
You are probably trying to download foercast.xml under the new rules, and this is not possible without authorization.

This is your valid forecast.php file:

Code: Select all

<?php
/**
 * @package    Andreovia.pl - forecast frrom YR.NO
 * @copyright  Copyright (C) 2019-2020 Krzysiek Maziarz
 * @license    GNU General Public License version 2 or later
 */
    $srcfile = 'https://www.yr.no/place/United_Kingdom/England/Worthing/forecast.xml';
    $dstfile = './forecast.xml';
      if (!copy($srcfile, $dstfile))
	  {
      echo "Failed to copy $srcfile...\n";
      }

Write if it was successful :D
I'm working on a JSON version but it's summer 8-)

Re: Weather on the wall, or my wBox :)

Posted: Thu 13 Aug 2020 6:23 pm
by dazza1223
Screenshot_20200813-192020_Gallery.jpg
Ok i will give that ago and one last thing that I will like to fix is the pressure trend just stays at 3 lines i did read somewhere on here to fix but i didn't understand it

Re: Weather on the wall, or my wBox :)

Posted: Fri 14 Aug 2020 5:12 am
by Smarmen
Hi
What is link to your wBox? I want to see it in full.
Take care :D

Re: Weather on the wall, or my wBox :)

Posted: Fri 14 Aug 2020 9:01 am
by dazza1223

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 5:53 am
by Smarmen
Hi
I need more time. So far, the pressure changes I see in your realtime.txt file are too small to react. It must be at least 0.2hPa. See how it is described in the JS library:
wBox.js from line number 86

Code: Select all

$('.tPrs').hide();
var RPpT = dataRT[18] * 1;
  if (RPpT  >= 6.0)           {  $('#tPpA').show();  }                         // show _iPtrendA.png -- trend  >=  6.0
  else if (RPpT >   3.5 && RPpT <   6.0)  {  $('#tPpB').show();  }             // show _iPtrendB.png -- trend  >   3.5  &  <   6.0
  else if (RPpT >   1.5 && RPpT <=  3.5)  {  $('#tPpC').show();  }             // show _iPtrendC.png -- trend  >   1.5  &  <=  3.5
  else if (RPpT >   0.2 && RPpT <=  1.5)  {  $('#tPpD').show();  }             // show _iPtrendD.png -- trend  >   0.2  &  <=  1.5
  else if (RPpT >= -0.2 && RPpT <=  0.2)  {  $('#tPpE').show();  }             // show _iPtrendE.png -- trend  >= -0.2  &  <=  0.2
  else if (RPpT <  -0.2 && RPpT >= -1.5)  {  $('#tPpF').show();  }             // show _iPtrendF.png -- trend  <  -0.2  &  >= -1.5
  else if (RPpT <  -1.5 && RPpT >= -3.5)  {  $('#tPpG').show();  }             // show _iPtrendG.png -- trend  <  -1.5  &  >= -3.5
  else if (RPpT <  -3.5 && RPpT >  -6.0)  {  $('#tPpH').show();  }             // show _iPtrendH.png -- trend  <  -3.5  &  >  -6.0
  else if (RPpT <= -6.0)      {  $('#tPpI').show();  }                         // show _iPtrendI.png -- trend  <= -6.0

Krzysiek

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 5:53 am
by Smarmen
Hi
I need more time. So, the pressure changes I see in your realtime.txt file are too small to react. It must be at least 0.2hPa.
See how it is described in the JS library wBox.js from line number 86:

Code: Select all

$('.tPrs').hide();
var RPpT = dataRT[18] * 1;
  if (RPpT  >= 6.0)           {  $('#tPpA').show();  }                         // show _iPtrendA.png -- trend  >=  6.0
  else if (RPpT >   3.5 && RPpT <   6.0)  {  $('#tPpB').show();  }             // show _iPtrendB.png -- trend  >   3.5  &  <   6.0
  else if (RPpT >   1.5 && RPpT <=  3.5)  {  $('#tPpC').show();  }             // show _iPtrendC.png -- trend  >   1.5  &  <=  3.5
  else if (RPpT >   0.2 && RPpT <=  1.5)  {  $('#tPpD').show();  }             // show _iPtrendD.png -- trend  >   0.2  &  <=  1.5
  else if (RPpT >= -0.2 && RPpT <=  0.2)  {  $('#tPpE').show();  }             // show _iPtrendE.png -- trend  >= -0.2  &  <=  0.2
  else if (RPpT <  -0.2 && RPpT >= -1.5)  {  $('#tPpF').show();  }             // show _iPtrendF.png -- trend  <  -0.2  &  >= -1.5
  else if (RPpT <  -1.5 && RPpT >= -3.5)  {  $('#tPpG').show();  }             // show _iPtrendG.png -- trend  <  -1.5  &  >= -3.5
  else if (RPpT <  -3.5 && RPpT >  -6.0)  {  $('#tPpH').show();  }             // show _iPtrendH.png -- trend  <  -3.5  &  >  -6.0
  else if (RPpT <= -6.0)      {  $('#tPpI').show();  }                         // show _iPtrendI.png -- trend  <= -6.0
In realtime.txt, the trend of pressure changes is at position 18 (counting from 0, values separated by spaces).
There's a big pressure drop coming in, so let's wait.

Krzysiek

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 6:26 am
by dazza1223
Just a idea there is a pressure tag trend can that not be add to the realtime.txt that read from the console itself or is just the olny way off doing it I don't know it just a idea you know best?😀

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 6:35 am
by Smarmen
Hi
Please use simple language (English), because I don't understand :D
Pressure trend variable is a standard component of the realtime.txt file - see https://cumuluswiki.org/a/Realtime.txt

Krzysiek

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 7:02 am
by dazza1223
Sorry is first thing in the morning here um yeah i was saying there is a pressure trend tag that show the trend off the pressure woodnt that be more off a easy route to go down ?

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 8:17 am
by bthoven
Hi,

I got the latest version installed and it works perfectly. Only one thing, the Wind Rose do not update itself, even, if I'm not wrong, the web page auto refresh itself every 10 minutes. I have to manually refresh it. Have I missed anything? Thanks.

Re: Weather on the wall, or my wBox :)

Posted: Sat 15 Aug 2020 7:13 pm
by dazza1223
hi try my wBox.js and see if that works there maybe a bug in there but try

Re: Weather on the wall, or my wBox :)

Posted: Sun 16 Aug 2020 3:07 am
by bthoven
dazza1223 wrote: ↑Sat 15 Aug 2020 7:13 pm hi try my wBox.js and see if that works there maybe a bug in there but try
Could you provide your download link? Thanks

Re: Weather on the wall, or my wBox :)

Posted: Sun 16 Aug 2020 3:48 am
by beteljuice
Updating every 20s ATM ...
Although the screenshot does NOT look like the link you posted !

Re: Weather on the wall, or my wBox :)

Posted: Sun 16 Aug 2020 5:25 am
by Smarmen
dazza1223 wrote: ↑Sat 15 Aug 2020 7:02 am Sorry is first thing in the morning here um yeah i was saying there is a pressure trend tag that show the trend off the pressure woodnt that be more off a easy route to go down ?
Hi Dazza,
In my opinion, your wBox works fine, pressure change icons are visible or... I do not understand what you mean.
Sorry is first thing in the morning here um yeah i was saying there is a pressure trend tag that show the trend off the pressure woodnt that be more off a easy route to go down ?
Which means pressure woodnt ?
Read the documentation again http://www.andreovia.pl/jedrzejow-pogoda/wbox#wbox_en