Wxsim not working in forecast block under php 8

Post Reply
hcorrin
Observer
Observer
Posts: 40
Joined: Tue Sep 05, 2017 10:55 am
Location: Ballaugh
Station model: Davis VP2
Software: Weather Display
Contact:

Wxsim not working in forecast block under php 8

Post by hcorrin » Mon Jul 11, 2022 7:57 pm

i tried php 8 last night with template updates for php 8 but the forecast block was not displaying the wxsim forecast the other forecast displayed ok when selected
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Wxsim not working in forecast block under php 8

Post by davidefa » Tue Jul 12, 2022 5:54 pm

This should fix php 8.0 compatibility: www.davidefabbri.net/files/forecast_9.3.zip
Image

hcorrin
Observer
Observer
Posts: 40
Joined: Tue Sep 05, 2017 10:55 am
Location: Ballaugh
Station model: Davis VP2
Software: Weather Display
Contact:

Re: Wxsim not working in forecast block under php 8

Post by hcorrin » Tue Jul 12, 2022 10:44 pm

ok have put on my local synology unit which has 8.0 on that is now working
http://ballaugh.no-ip.biz:59202/templat ... esktop.php

thank you
Image

hcorrin
Observer
Observer
Posts: 40
Joined: Tue Sep 05, 2017 10:55 am
Location: Ballaugh
Station model: Davis VP2
Software: Weather Display
Contact:

Re: Wxsim not working in forecast block under php 8

Post by hcorrin » Wed Jul 13, 2022 8:39 pm

although working some of the icons on the wxsim forecast are a bit strange on http://ballaugh.no-ip.biz:59202/templat ... esktop.php using php 8.0 compared to https://www.hc-iom.co.uk/template/indexDesktop.php which is still using php 7.4
is there something i need to look for to correct
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Wxsim not working in forecast block under php 8

Post by davidefa » Thu Jul 14, 2022 9:07 pm

This should fix the icon problem: www.davidefabbri.net/files/forecast_9.4.zip

A user on the forum noticed that the block has a few problems with wxsim forecasts:
- it does not show the rain icons
- translation in other languages incomplete
- the block doesn't handle incomplete forecasts
- the icons are a mix of two different sets
I started working on these ( and other ) points, but it is still a work in progress...
Image

hcorrin
Observer
Observer
Posts: 40
Joined: Tue Sep 05, 2017 10:55 am
Location: Ballaugh
Station model: Davis VP2
Software: Weather Display
Contact:

Re: Wxsim not working in forecast block under php 8

Post by hcorrin » Fri Jul 15, 2022 2:52 pm

have put the updated files on the local synology unit http://ballaugh.no-ip.biz:59202/templat ... esktop.php but sadly it has not sorted the strange icons
Image

hcorrin
Observer
Observer
Posts: 40
Joined: Tue Sep 05, 2017 10:55 am
Location: Ballaugh
Station model: Davis VP2
Software: Weather Display
Contact:

Re: Wxsim not working in forecast block under php 8

Post by hcorrin » Thu Jul 21, 2022 10:06 pm

i think i have worked out why the icons are wrong for wxsim
the latest.csv has 2 columns with conditions in and the script is is reading column F (WX Type 2) for the conditions icon but it should be reading column E (WX Type 1) for the icons
have tried looking in the scripts but have not seen how to change it to ref column E instead of column F
Image

Post Reply