Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.19.3 (build 3196) - 25 July 2022

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are interested in supporting Cumulus then maybe you would like to contribute to the maintenance of the Wiki? This need not take hours of your time - just a half hour here and there can make a big difference, particularly if many people are doing this. Any contributions are very welcome, whether they involve new content or editing of existing content. It will be very helpful to current and future users of Cumulus software if the Wiki is kept well-maintained and current. If you are interested then please contact forum user saratogaWX and ask for a Wiki account.

wBox (weather box) in JSON version

Discussion of Jacques DesRoches's web site templates

Moderator: JacquesD

User avatar
Smarmen
Posts: 87
Joined: Tue 22 Nov 2011 2:02 pm
Weather Station: WH 1080
Operating System: Windows 10
Location: Poland - Jedrzejow

Re: wBox (weather box) in JSON version

Post by Smarmen »

Yes :x
Now I know - it's my mistake :bash:
The problem only appears at the turn of the old and new year.
This is due to the wrong way of comparing dates - I'm not taking the year, only month and day, but January (number 1) is less than December (number 12), so the system behaves as if there is no forecast.
Of course, I will change the code, but it will take me some time, and the problem will go away on January 1, 2022, so in two days :)

The good news is, it gives me the opportunity to wish you all a Happy New Year :D
bthoven
Posts: 37
Joined: Tue 19 Dec 2017 11:07 am
Weather Station: WH24+Ecowitt GW1000/Tempest
Operating System: Windows 10/11/Debian/Ubuntu
Location: Bangkok, Thailand

Re: wBox (weather box) in JSON version

Post by bthoven »

Forecast is getting shorter and shorter.
You do not have the required permissions to view the files attached to this post.
User avatar
Smarmen
Posts: 87
Joined: Tue 22 Nov 2011 2:02 pm
Weather Station: WH 1080
Operating System: Windows 10
Location: Poland - Jedrzejow

Re: wBox (weather box) in JSON version

Post by Smarmen »

Just like that.
This year is ending and the next one is a great unknown :)
But on January 1, the forecast will be visible again, but it is not known what.
Isn't it beautiful? :mrgreen:
bthoven
Posts: 37
Joined: Tue 19 Dec 2017 11:07 am
Weather Station: WH24+Ecowitt GW1000/Tempest
Operating System: Windows 10/11/Debian/Ubuntu
Location: Bangkok, Thailand

Re: wBox (weather box) in JSON version

Post by bthoven »

Smarmen wrote: Wed 29 Dec 2021 7:47 am Yes :x
Now I know - it's my mistake :bash:
The problem only appears at the turn of the old and new year.
This is due to the wrong way of comparing dates - I'm not taking the year, only month and day, but January (number 1) is less than December (number 12), so the system behaves as if there is no forecast.
Of course, I will change the code, but it will take me some time, and the problem will go away on January 1, 2022, so in two days :)

The good news is, it gives me the opportunity to wish you all a Happy New Year :D
Thanks for pointing out what causes the issue. After you mitigate the issue, could you highlight which part of the codes you change so that I can make changes only to that part, and I don't have to re-do all my tweaks again from scratch. Thanks.
You do not have the required permissions to view the files attached to this post.
Last edited by bthoven on Sun 06 Feb 2022 5:31 am, edited 7 times in total.
Big Daddy
Posts: 241
Joined: Tue 10 Sep 2013 8:40 pm
Weather Station: Ecowitt GW1003 (GW1000)
Operating System: Raspbian 10 (Buster) / Mono 6.12
Location: Freiston, Lincolnshire, UK
Contact:

Re: wBox (weather box) in JSON version

Post by Big Daddy »

Hi Kris,
Happy New Year to you.

Forecast came back as you said yesterday and has brought with it some warm winter weather for a few days. Nice suprise.

I have said before, I love wBox and am always looking at ways to add new features. I received a new Pi4 at Christmas so now have all my Cumulus, Webserver, wBox, scripts, webcam images etc all managed on one device. Over the holiday I added a new feature to wBox. Click on the window icon next to the cloudbase to view it. It works best during daylight hours :D

http://midlifedad.me.uk/wBox/main.html#loaded

Have fun in 2022.

Andy
User avatar
Smarmen
Posts: 87
Joined: Tue 22 Nov 2011 2:02 pm
Weather Station: WH 1080
Operating System: Windows 10
Location: Poland - Jedrzejow

Re: wBox (weather box) in JSON version

Post by Smarmen »

Hi Bthofen
Of course, as soon as I find a good solution, I will write exactly what part of the code should be changed.

Hi Andy :)
I am very happy that you are using wBox :D
I like it too, and when it happened that my tablet turned off, it was somehow wild at home :o

I've seen your shifts and camera images before - they're wonderful :mrgreen:
I will do something similar overlooking my garden.
As for my weather forecast mistake: I discovered that it highlights the turn of the year and I liked it very much :)
We run so fast now, that we don't notice things like that. :(
Big Daddy
Posts: 241
Joined: Tue 10 Sep 2013 8:40 pm
Weather Station: Ecowitt GW1003 (GW1000)
Operating System: Raspbian 10 (Buster) / Mono 6.12
Location: Freiston, Lincolnshire, UK
Contact:

Re: wBox (weather box) in JSON version

Post by Big Daddy »

Hi Everyone,
I just wanted to share my latest "improvements" to my wBox....extended forecast.

Go to my wBox here http://midlifedad.me.uk/wBox/main.html

Click or press anywhere in the forcast section in the bottom right. Once you have viewed the forecast, click or press anywhere in this page and go back to the main wBox page.

Hope you enjoy.

Andy
User avatar
Smarmen
Posts: 87
Joined: Tue 22 Nov 2011 2:02 pm
Weather Station: WH 1080
Operating System: Windows 10
Location: Poland - Jedrzejow

Re: wBox (weather box) in JSON version

Post by Smarmen »

Hi,
In my opinion, Andy did a great job, I'm very happy about this :D
It's very interesting that we were both working on similar solutions at the same time!

The YR.NO forecast is for 7 days, so in the wBox.js library I expanded the range of available data accordingly. This way you can visualize the weekly forecast.
http://andreovia.pl/weather/wBoxH7f.html
But why use such a 'basset'? I'm using Linux Mint, where a website can be shown on the desktop via WebApp Manager - forecast is still on my desktop :)

I described the changes in the wBox.js library here: http://andreovia.pl/weather/wBox/readme_2022_03_06.txt

And I changed the wind icons to make it easier to see when it can blow heavily. Again, we have converging actions - me and Andy :D

Download: http://andreovia.pl/weather/wBox/wBox.zip

Regards
Krzysiek (Chris)
Post Reply