Page 100 of 102
Re: Weather34 Aurora Version(english supported only)
Posted: Sat Jan 01, 2022 4:35 pm
by jasonmfarrow
jasonmfarrow wrote: ↑Sat Jan 01, 2022 1:51 pm
Hi Brian,
In the various charts, "yesterday" and "last month" are not working but "last year" is. Possibly a 2022 vs 2021 issue given that this is the first year-up since this functionality was added. The december.csv and 31dec2021.csv files are good from a content pov.
FYI: update31-12-2021.zip is applied.
in monthtemperaturechart2previous.php the code takes off one month in line 23 but in line 62 it's still using the current year:
Code: Select all
url: "<?php echo date('Y');?>/<?php echo $weatherfile;?>.csv",
I think this is the cause in all the today|month...previous.php chart modules. It will be rectify itself by February but it will need you to fix it to make it work in January.
Regards
Re: Weather34 Aurora Version(english supported only)
Posted: Sat Jan 01, 2022 5:49 pm
by andredebruijn
hello brian, I am using your app for al long time, found a small bug in the baromater almanac -> 2020 (history)
(AFTER LAST UPDATE 31/12) ALSO NOW IN 2021 AND ALSO NOW THE UV INDEX LAST YEAR IS NOT CORRECT.)
it should show 2 variables, the sea level pressure high / low. (THIS IS FOR THE BAROMETER)
now it shows 9-average temp out / and 10-sea level pressure high
it should I think take 10 + 11
although with my data.
hope you can fix this.
bye bye
andre
Re: Weather34 Aurora Version(english supported only)
Posted: Sat Jan 01, 2022 7:55 pm
by weatherist34
andredebruijn wrote: ↑Sat Jan 01, 2022 5:49 pm
hello brian, I am using your app for al long time, found a small bug in the baromater almanac -> 2020 (history)
(AFTER LAST UPDATE 31/12) ALSO NOW IN 2021 AND ALSO NOW THE UV INDEX LAST YEAR IS NOT CORRECT.)
it should show 2 variables, the sea level pressure high / low. (THIS IS FOR THE BAROMETER)
now it shows 9-average temp out / and 10-sea level pressure high
it should I think take 10 + 11
although with my data.
hope you can fix this.
bye bye
andre
Hello Andre thanks always something I miss but was expecting some year rollover issues , Number 1 todo list this year better way of handling charts for rollover of year in advance ..(theoretically).
Change Log 1st January 2022
* (20:43) * Contains all features/fixes from December 4th to January 1st
* (20:43) * Fix last year(2021) chart barometer,uv,solar Ref Andre
* (20:43) * PHP 8.1.1 verified 22nd December
** 28th December 2021 Important please run the setup to clear existing
UTC setting screenshot shown below.
Clear UTC Screenshot
** Please always do a backup before applying updates.
* Doing backups will preserve your chart data and settings in the event of
any problems.
* When new setup options are added ensure the settings file
(console-settings) is not locked with file permissions on your server.
@JasonFarrow last month for January needs some thought to handle year in year out as its driven by the year folder i.e December is in 2021 folder January is in 2022 folder so needs some reorganizing at some newer code .if I don't do it it will correct itself on Feb(1ST) ,yesterdays should correct itself tomorrow (2nd Jan) see
https://singaporeweather.info 8 hours in front of UK ..
also some more work required to produce air quality for last year etc but will look at this sometime this month ..
Brian
Re: Weather34 Aurora Version(english supported only)
Posted: Sat Jan 01, 2022 8:36 pm
by jasonmfarrow
weatherist34 wrote: ↑Sat Jan 01, 2022 7:55 pm
@JasonFarrow last month for January needs some thought to handle year in year out as its driven by the year folder i.e December is in 2021 folder January is in 2022 folder so needs some reorganizing at some newer code .if I don't do it it will correct itself on Feb(1ST) ,yesterdays should correct itself tomorrow (2nd Jan) see
https://singaporeweather.info 8 hours in front of UK ..
Brian
I think it's the case of an if statement along this logical thought -->
Code: Select all
if current_Month = 1 then {chart_year = current_year-1} else {chart_year = current_year}
It's only needed for year|month...previous.php charts. There's just so many to patch...as your time allows.
Hope you had a good New Year. Cheers. J.
Re: Weather34 Aurora Version(english supported only)
Posted: Sat Jan 01, 2022 9:53 pm
by weatherist34
Hello Jason
ive pushed a solution to GITHUB for now , I will make a simple update release tomorrow ... see
https://singaporeweather.info for outcome.
basically if January do its thing
code is
$weatherfile = date('F', strtotime("-1 months"));
$year = date('Y');
if (date('F')=="January"){$year=date('Y', strtotime("-1 year"));};
then
url: "<?php echo $year?>/<?php echo $weatherfile;?>.csv",.........
have a good evening ..Brian
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 10:42 am
by jmontamat
Hi Brian, the previous month was bad solar.
Good Sunday.
Thank you.
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 5:28 pm
by jasonmfarrow
weatherist34 wrote: ↑Sat Jan 01, 2022 9:53 pm
Hello Jason, code is
$weatherfile = date('F', strtotime("-1 months"));
$year = date('Y');
if (date('F')=="January"){$year=date('Y', strtotime("-1 year"));};
then
url: "<?php echo $year?>/<?php echo $weatherfile;?>.csv",.........
All working as stated. Not certain whether there is a missing semi-colon after
echo $year or not. Seems to be present in some code, absent in others.
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 6:16 pm
by woolfg
Hi Brian
Happy New Year
There appears to be a problem with rainfall extra data chart

- rainfall.jpg (30.37 KiB) Viewed 6409 times
http://ringwoodweather.ddns.net:86/Aurora2/index.php
Regards
Graham
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 6:25 pm
by weatherist34
hello Graham
80 mm less than last month(december)
876mm less than last year (2021)
equals 4mm accumulated so far this year..
the blue values will always be the current difference between last month and last year
ps your url dont work hasnt for many months .
jason I wouldnt worry i use an aggressive PHP sniffer when compiling it doesn’t flag anything .
josep fix was pushed to github earlier today
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 7:16 pm
by lorenz1982
Hello,
I have a problem: why the monthly average is always 0 km/h?
Thanks.
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 8:52 pm
by weatherist34
Hello Lorenzo correct my mistake its not in the API output and neither is year average speed . corrected or replaced with 15 min average will release simple update tomorrow . Brian

- Screenshot at Jan 02 21-52-03.png (16.04 KiB) Viewed 6371 times
Re: Weather34 Aurora Version(english supported only)
Posted: Sun Jan 02, 2022 9:11 pm
by lorenz1982
Really thanks for your fast answer.
Re: Weather34 Aurora Version(english supported only)
Posted: Mon Jan 03, 2022 1:23 am
by lorenz1982
I still have some problems with connecting to the charts of the previous year. The UV chart starts November 13 and the solar radiation chart is empty.
Thanks.
Re: Weather34 Aurora Version(english supported only)
Posted: Mon Jan 03, 2022 8:13 am
by weatherist34
good morning Lorenzo
see update just added addresses some of those but I can't reproduce the UVI shortfall of days....
Change Log 3rd January 2022
* (18:40) * Contains all features/fixes from December 4th to January 3rd
* (18:40) * Solar chart and dewpoint previous year phrase Ref Lorenzo
* (18:40) * Wind month/year average Ref Lorenzo
* (18:40) * PHP 8.1.1 verified 22nd December
** 28th December 2021 Important please run the setup to clear existing
UTC setting screenshot shown below.
Clear UTC Screenshot
** Please always do a backup before applying updates.
* Doing backups will preserve your chart data and settings in the event of
any problems.
* When new setup options are added ensure the settings file
(console-settings) is not locked with file permissions on your server.
Re: Weather34 Aurora Version(english supported only)
Posted: Mon Jan 03, 2022 9:14 am
by ToTo
Sun moon Text is currently moved off centre.

- 0BF02A70-F921-409A-904E-CA0B1F03F6A9.jpeg (96.66 KiB) Viewed 6324 times