Merry Christmas to you, as well.

Thanks for all of your inspiration and hard work.
Have a great 2022!
Chuck
Moderator: Mattk
Hi Josep not sure where your adding this in ? if I add this string to various files it breaks in PHP 8.1but I haven't checked any other PHP version, perhaps you can enlighten me where you are using this ?jmontamat wrote: ↑Sun Dec 26, 2021 12:16 pm Hi Brian, a suggestion, with the use of TIMEZONE in setup it would not be necessary to change UTC Offset every 6 months in countries that change from summer to winter with the function:
$UTC = ($timezone->getOffset (new DateTime ()) / 3600); it could.
Happy New Year.
Added in livedata, works fine in PHP 8.07weatherist34 wrote: ↑Sun Dec 26, 2021 1:58 pm
Hi Josep not sure where your adding this in ? if I add this string to various files it breaks in PHP 8.1but I haven't checked any other PHP version, perhaps you can enlighten me where you are using this ?
Hello Josepjmontamat wrote: ↑Sun Dec 26, 2021 3:17 pmAdded in livedata, works fine in PHP 8.07weatherist34 wrote: ↑Sun Dec 26, 2021 1:58 pm
Hi Josep not sure where your adding this in ? if I add this string to various files it breaks in PHP 8.1but I haven't checked any other PHP version, perhaps you can enlighten me where you are using this ?
include('settings.php');
include('shared.php');
###################### UTC ##################################
$timezone = new DateTimeZone($TZ);
$UTC = ($timezone->getOffset(new DateTime()) /3600) ;
##################### UTC END ###############################
error_reporting(0);
( you have to remove $ UTC = "1"; in console-settings.php ).
(Sorry I forgot to define $timezone)![]()
https://meteosantgenis.org/MKII/
Please ignore this post. I see that you are indicating that the AQI is based on PM 2.5.prestwickwx wrote: ↑Sun Dec 26, 2021 4:55 pm Hi Brian,
Hope all is well!
I noticed, on the latest update (December 26), that the Air quality Labels were changed from AQI to PM 2.5. The associated data seems to still be AQI. Wasn't sure what you had in mind.
Best wishes for the new year.![]()
Chuck
Hello Good afternoon
TP-LINK is limited in memory, it does not present the Barometer 24H Change values well either.
Josep I have pushed your $UTC idea to GITHUB please note not added to livedata.php but added to settings.php as other files outside/not using livedata.php also require the UTC code i.e clocks, forecast etc .settings.php is a universal file used . also note common.php is no longer a requirement so that was removed .jmontamat wrote: ↑Mon Dec 27, 2021 1:37 pmTP-LINK is limited in memory, it does not present the Barometer 24H Change values well either.
https://meteobridge.com/wiki/index.php/Comparison