Meteotemplate - process of updating

Julius
Advisor
Advisor
Posts: 91
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: Meteotemplate - process of updating

Post by Julius » Fri Jul 07, 2023 8:20 am

Jachym wrote: Sat May 13, 2023 4:28 pm Then I will update some blocks/plugins which are also affected by PHP8 incompatibility (I do not quite understand some of the changes in PHP8, it is fine to introduce new functions, but I do not get why they deprecated so many functions, replaced them with newer ones and the original ones now throw fatal errors and make pages non-functional, but not much I can do about it).
Great to see you're still there!
I agree, the deprecated functions, and especially the totally useless renaming of many is ridiculous. But then again, I remember decades ago when I worked at a hosting/webdev company many developers really deeply hated php because their lead-creators were truly behaving like selfish *ssholes (sorry, but true), they made decisions in upgrades that seem to exist solely to please themselves and not its users. Arguments like "we liked that name better than the previous one", for much used functionality, forcing all its users to do cumbersome search and replace actions on their php code everywhere. It's always been like that with php, and as it grew larger and larger they had to comply some more to user response and feedback, but the core decider team are still the same people. It's sad that php grew so large. There were other better options.

Anyway, we now work with what we have. Good luck!
Image

livefeed
Observer
Observer
Posts: 26
Joined: Sat Jan 26, 2019 6:05 am
Location: Lusby, MD
Station model: Davis pro 2
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by livefeed » Tue Jul 11, 2023 4:35 pm

How are we looking on these new files? Happy to help and try out.
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Meteotemplate - process of updating

Post by spd2612 » Wed Jul 12, 2023 4:32 pm

Glad to see this is being updated
Waiting Paitently
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
LOBWX
Forecaster
Forecaster
Posts: 104
Joined: Sun Mar 11, 2018 6:43 pm
Location: Los Osos, CA
Station model: Ambient WS 1401-IP
Software: MeteoBridge
Contact:

Re: Meteotemplate - process of updating

Post by LOBWX » Tue Jul 18, 2023 10:38 pm

Sweet!
Just BE NICE! That's all it takes to be a decent human...

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by Jachym » Sun Jul 23, 2023 8:25 am

Hi guys,

within the upcoming days I will be sending the update files to certain users that asked to test it. I assume it will then be soon ready for public release.

Please note: I fixed dozens of bugs and incompatibilities. However, there are still some things that need to be solved, for example the forecast page from Darksky, which no longer works. This is a very time-consuming process and requires not just coding but also trying to find a suitable provider - free (that is the issue).

Given how urgent this update is given PHP8 is now a standard, I will try to fix this in version 20 and release this ASAP.

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Meteotemplate - process of updating

Post by tobydude » Sun Jul 23, 2023 2:10 pm

Great.

livefeed
Observer
Observer
Posts: 26
Joined: Sat Jan 26, 2019 6:05 am
Location: Lusby, MD
Station model: Davis pro 2
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by livefeed » Mon Jul 24, 2023 3:29 pm

Thank you!
Can't wait.
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Meteotemplate - process of updating

Post by spd2612 » Thu Jul 27, 2023 4:35 pm

I would love to have the files for Meteotemplate 19.0 Cranberry
I would like to run it in a new vm To be able to test all that I have running on 18
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by alexvanuxem » Tue Aug 08, 2023 12:38 pm

Any update on this?
Image

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Meteotemplate - process of updating

Post by FSC830 » Tue Aug 08, 2023 4:26 pm

Running the "pre-release" version since abt. 2 weeks, found some minor bugs and informed Jachym.
Latest bug report was last Friday, so my guess he is working at an official release.
My test VM is a 1:1 copy of my website, so all plugins/blocks used at official site are running at the MT19 too.

Please take this as an unofficial note, I do not know anything about Jachyms time schedule.

Regards
Image

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by alexvanuxem » Wed Aug 09, 2023 7:02 am

THX!!!
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by Jachym » Sun Aug 13, 2023 5:52 am

Hi guys,

I think the new version is ready. It does not fix everything, this is mostly because the plugins and blocks run separately and thus need to be updated separately too. However, this update should make the template as such work under the most recent PHP (I test with PHP8.2).

I temporarily placed the download file in a separate location on my server so that some of you here can test it (once I officially release the update the link below will no longer work).

If you want, you can try it, I would appreciate more users testing it. The advantage for you is that you will be able to run version 19 before official release, downside is that it needs to be updated manually (via FTP) if it is not officially released yet. Please make a backup of all files before proceeding.

Once you download the file linked below, unzip it and inside you will see the same structure of folders as in your template. What you need to do is replace the equivalent files via FTP on your server in the template folder. Make sure to overwrite the individual files, never replace folders because the folders in the update file only contain the updated files, not the entire folder so replacing entire folders would delete many files in the template. A few changes are also related to the fact meteotemplate.com domain is now https (http previously).

This should be the most recent version of the update with fixed issues that were discovered by some of you during testing already (thanks!).

https://meteotemplate.com/update_19.0.zip

Any feedback is highly appreciated.

User avatar
Oli
Observer
Observer
Posts: 23
Joined: Sat May 28, 2022 4:17 pm
Location: Hamelin / Germany
Station model: HP1000SE PRO
Software: weeWX
Contact:

Re: Meteotemplate - process of updating

Post by Oli » Sun Aug 13, 2023 7:31 am

Thanks, I'll try not using my main provider.
Under php 8.1 I see so far only the header of the homepage (the logo with the name of my place and the values in the bottom left and the dynamic background set by the current weather).

Screenshot 2023-08-13 at 09.29.jpg
Screenshot 2023-08-13 at 09.29.jpg (35.05 KiB) Viewed 77983 times

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Meteotemplate - process of updating

Post by spd2612 » Sun Aug 13, 2023 3:15 pm

Jachym wrote: Sun Aug 13, 2023 5:52 am Hi guys,

I think the new version is ready. It does not fix everything, this is mostly because the plugins and blocks run separately and thus need to be updated separately too. However, this update should make the template as such work under the most recent PHP (I test with PHP8.2).

I temporarily placed the download file in a separate location on my server so that some of you here can test it (once I officially release the update the link below will no longer work).

If you want, you can try it, I would appreciate more users testing it. The advantage for you is that you will be able to run version 19 before official release, downside is that it needs to be updated manually (via FTP) if it is not officially released yet. Please make a backup of all files before proceeding.

Once you download the file linked below, unzip it and inside you will see the same structure of folders as in your template. What you need to do is replace the equivalent files via FTP on your server in the template folder. Make sure to overwrite the individual files, never replace folders because the folders in the update file only contain the updated files, not the entire folder so replacing entire folders would delete many files in the template. A few changes are also related to the fact meteotemplate.com domain is now https (http previously).

This should be the most recent version of the update with fixed issues that were discovered by some of you during testing already (thanks!).

https://meteotemplate.com/update_19.0.zip

Any feedback is highly appreciated.
Thank You Jachym
I will start testing this week
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by Jachym » Mon Aug 14, 2023 12:10 pm

Oli wrote: Sun Aug 13, 2023 7:31 am Thanks, I'll try not using my main provider.
Under php 8.1 I see so far only the header of the homepage (the logo with the name of my place and the values in the bottom left and the dynamic background set by the current weather).


Screenshot 2023-08-13 at 09.29.jpg
Can you please send me a link to your test environment? You can email it to me if you do not want to post it here publicly.

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Meteotemplate - process of updating

Post by spd2612 » Mon Aug 14, 2023 2:05 pm

@jachym
I could set you up a VM for all your testing
You could connect that to my weather Station
It would take me a few days to build it from scratch and I could install PHP of your choice
PM me if you are intrested
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by alexvanuxem » Mon Aug 14, 2023 3:57 pm

i can confirm a privious post : only the banner is shown after update :-(
Image

micjon
Newbie
Newbie
Posts: 3
Joined: Wed Aug 03, 2022 5:28 am
Station model: GW2000, Garni2055
Software: FOSHKplugin
Contact:

Re: Meteotemplate - process of updating

Post by micjon » Mon Aug 14, 2023 5:43 pm

It is something with language, when you set "us" as lang in config.php, then it is working.

micjon
Newbie
Newbie
Posts: 3
Joined: Wed Aug 03, 2022 5:28 am
Station model: GW2000, Garni2055
Software: FOSHKplugin
Contact:

Re: Meteotemplate - process of updating

Post by micjon » Mon Aug 14, 2023 5:47 pm

Error in log:
[php:error] [pid 8481] [client :42498] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/meteotemplate/scripts/functions.php:114\nStack trace:\n#0 /var/www/html/meteotemplate/menu.php(482): lang()\n#1 /var/www/html/meteotemplate/indexDesktop.php(374): include('...')\n#2 {main}\n thrown in /var/www/html/meteotemplate/scripts/functions.php on line 114,

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Meteotemplate - process of updating

Post by Jachym » Tue Aug 15, 2023 7:39 am

Hi all,

please try replacing the scripts/functions.php with an updated version, I think I know what the problem is.
Attachments
functions.zip
(9.55 KiB) Downloaded 1271 times

micjon
Newbie
Newbie
Posts: 3
Joined: Wed Aug 03, 2022 5:28 am
Station model: GW2000, Garni2055
Software: FOSHKplugin
Contact:

Re: Meteotemplate - process of updating

Post by micjon » Tue Aug 15, 2023 8:01 am

yes, it is working again

User avatar
beaumariswx
Newbie
Newbie
Posts: 3
Joined: Sun Sep 18, 2022 11:29 pm
Location: Beaumaris, Tasmania, Australia
Station model: Davis Pro 2 Plus
Software: CumulusMX
Contact:

Re: Meteotemplate - process of updating

Post by beaumariswx » Tue Aug 15, 2023 9:55 am

Hi Jachym,
Installed, all 19.0 seems good, though I'm still using PHP version : 7.3.33.
https://beaumaris-weather.com/meteobeau ... esktop.php
Kind Regards,
Tony
Image

User avatar
Oli
Observer
Observer
Posts: 23
Joined: Sat May 28, 2022 4:17 pm
Location: Hamelin / Germany
Station model: HP1000SE PRO
Software: weeWX
Contact:

Re: Meteotemplate - process of updating

Post by Oli » Tue Aug 15, 2023 2:38 pm

Jachym wrote: Tue Aug 15, 2023 7:39 am please try replacing the scripts/functions.php with an updated version, I think I know what the problem is.
I can confirm that it now works for me too.

edit: run it on my mainpage now and everything seems to run fine, at first under php 7.4 and now I switched to php 8.2.8 8-)

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Meteotemplate - process of updating

Post by spd2612 » Tue Aug 15, 2023 5:26 pm

I updated my site to Cranberry and all seems well running on PHP version 8.1.21
Should I still replace the the scripts/functions.php with an updated version?
I am using Ecowitt version 3.2 with a WS-5000 and a GW-1000 seems to be updating just fine every 6 sec thanks to FOSHKplugin Software

Spoke to soon Summary Block is not loading

Lots of errors in summary block 5.8 Not sure if this can be fixed easy

https://hurricanepub.com/template/homep ... php?errors
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Meteotemplate - process of updating

Post by tobydude » Tue Aug 15, 2023 6:04 pm

I tried to upgrade php on my web hotel to 8.2. Meteotemplate did´nt work.
8.0 and 8.1, some blocs didn´t show.
Set php back to 7.4 and all worked again.

Image

Post Reply