Weather34 Aurora Version(english supported only)

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Locked
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by jasonmfarrow »

Brian,

See the attached 2020 Year charts. The Temperature chart has a spurious last entry according to the hover pop-up. In the 2020.csv, and all other .csv files for that matter, there is always a blank line at the end of the file. This is usually ignored during the creation of the charts. Except for this particular chart in the year-chart page.
Screenshot 2020-12-09 at 9 December 2020 19.00.00 pm.png
Screenshot 2020-12-09 at 9 December 2020 19.00.00 pm.png (500.73 KiB) Viewed 3774 times
Any idea why it's processing that last empty data point? [my data starts from 4th April so hence only 249 days of good data.]
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
gand
Senior Boarder
Senior Boarder
Posts: 46
Joined: Thu Apr 23, 2015 5:40 pm

Re: Weather34 Aurora Version(english supported only)

Post by gand »

Hi
I have a question about charts-end-of-day.php and how it works.

It seems that the line that will be inserted in December.csv and in 2020.csv is 1 day behind. When the script runs e.g. on December 9 (before each new day) the script inserts the date 8 Dec with data from the 9 Dec. So data is correct but date incorrect.

Any idea. where I start looking. I have checked the date on the server and on Meteobridge and they are correct.

Has upgraded from 9.34 to Aurora with the latest updates

Thanks
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by jasonmfarrow »

The charts-end-of-day.php script should be scheduled by your meteobridge to run at (or before) 23:59. It will take the whole of the current day's data summary (it's technically still the same day at this point) and append it as a line in 2020.csv and december.csv (or whichever it is).

So, at 00:00 (the next day) you will have the previous day's summary in the <month>.csv and <year>.csv. If you think you have something different then you need to check exactly when the script is being run by your meteobridge.

You could post the last few lines of each. The date is at the start of each line....
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 Aurora Version(english supported only)

Post by weatherist34 »

hi Jason I fixed it last night once again too tired to follow up on here but should be fine now.

On a positive note as requests keep coming for additional data like radars , additional localized personal info etc .

So me not being a lover of using iframe or scraping live data from 3rd party services on the main screen and the bottom toolbar does restrict how much you can place in there .
So instead of me saying NOPE :-) I have created a simple sidebar menu just a simple css and two lines of query.

You can customize this menu to your liking using the new file weather34-sidemenu.php and add your own links and localized radars .
Also you can share own menus for other to use by default there is one menu preset but as time goes bye if yourselves want to share the menus and have them selectable in the setup screen I am happy to add those in simply having a setup option to use for example
menu default
menu custom 1 // description
menu custom 2 // description
and so on

each custom menu will acknowledge the creator and have descriptions of what it shows .
the menu is device friendly , desktop friendly tested in most common browsers .
as above if menus are shared these can be added into the download to be used by others .
best solution I can think of for end user to decide instead of me saying NOPE ! :-)

Code: Select all

// original default weather34 menu 
// weather34 side menu you can build your menu to use other links in this file 
// example if you wish to use a pop up always include the string "data-lity" without the commas
// like this <a href="weather34-large-cam.php" data-lity data-title="Webcam"> Webcam </a>
// if you want a tool tip just include the data-title="Webcam" Webcam used for example 
// to use icons use the php echo $nameoficon all icons are SVG !! dont use crappy gif,jpg,png feel free to ask if you need icons to be made 
// to suit your links . Weather34 does not scrape data or pull iframe data from other sites by default it is left to you .scraping is unethical if 
// service not provided or can impact you website if iframe scraped data is unavailable. in short wont scrape dont scrape..
// weather34 is happy to answer any questions if you get stuck..
// you can build your own menu and share with the meteobridge community a new option will appear to choose which custom menu to use
// by default this menu is displayed.
menu1.jpg
menu1.jpg (136.15 KiB) Viewed 3690 times
menu2.jpg
menu2.jpg (180.99 KiB) Viewed 3690 times
Screenshot at Dec 10 13-23-38.jpg
Screenshot at Dec 10 13-23-38.jpg (38.24 KiB) Viewed 3689 times


Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
User avatar
prestwickwx
Platinum Boarder
Platinum Boarder
Posts: 510
Joined: Sat Aug 23, 2014 3:28 pm
Location: Myrtle Beach, SC USA
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by prestwickwx »

Hi Brian,

The side Menu is a nice addition. :D I can see lots of possibilities. One option might be a default, with the original Menu system intact and the sidebar with the Lock at top and the rest custom entries. I like having my most used icons (pages) on the main screen. I suspect others may want to pick and choose. Could be :shock: .

Nevertheless, thanks for a great addition!

Chuck
Image
https://myrtleweather.com/
Myrtle Beach WX @ Prestwick
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by woolfg »

Hi Brian

I love the idea of the custom menu, its an elegant solution

I would like to add the Metar for our local airport

How would I go about creating the link to incorporate my CheckWX Metar API KEY and would it be updated throughout the day

If not how would I get it to update

Regards

Graham
gand
Senior Boarder
Senior Boarder
Posts: 46
Joined: Thu Apr 23, 2015 5:40 pm

Re: Weather34 Aurora Version(english supported only)

Post by gand »

Hi Jason

Thanks for taking the time to look into this.

Some more details.

Files before pressing Testbutton in Meteobridge with the line: charts-end-of-day.php
2020.csv
4 Dec,6.4,2.3,5.0,-0.3,0.0,5.8,0.3,6.3,999.6,996.0,--,--
5 Dec,8.9,1.6,6.8,0.7,0.0,5.4,0.3,2.7,1006.7,997.1,1.0,--
6 Dec,9.0,0.9,7.7,-0.2,0.0,6.7,0.9,7.4,1006.7,1004.2,0.0,--,,0.0
7 Dec,7.4,5.6,6.1,3.6,0.2,8.5,1.3,5.9,1007.5,1003.2,0.0,--,,0.0
8 Dec,5.8,3.8,4.2,2.2,0.0,6.3,0.4,4.1,1012.0,1007.1,0.0,--,,0.0
9 Dec,4.4,2.3,2.8,0.8,0.0,6.7,0.9,2.4,1013.7,1011.9,1.0,--,,0.0
and
December.csv
4 Dec,6.4,2.3,5.0,-0.3,0.0,5.8,0.3,6.3,999.6,996.0,--,--
5 Dec,8.9,1.6,6.8,0.7,0.0,5.4,0.3,2.7,1006.7,997.1,1.0,--
6 Dec,9.0,0.9,7.7,-0.2,0.0,6.7,0.9,7.4,1006.7,1004.2,0.0,--,,0.0
7 Dec,7.4,5.6,6.1,3.6,0.2,8.5,1.3,5.9,1007.5,1003.2,0.0,--,,0.0
8 Dec,5.8,3.8,4.2,2.2,0.0,6.3,0.4,4.1,1012.0,1007.1,0.0,--,,0.0
9 Dec,4.4,2.3,2.8,0.8,0.0,6.7,0.9,2.4,1013.7,1011.9,1.0,--,,0.0
And after pressing the Test button:
2020.csv
File timestamp:10-12-2020 14:46:51
4 Dec,6.4,2.3,5.0,-0.3,0.0,5.8,0.3,6.3,999.6,996.0,--,--
5 Dec,8.9,1.6,6.8,0.7,0.0,5.4,0.3,2.7,1006.7,997.1,1.0,--
6 Dec,9.0,0.9,7.7,-0.2,0.0,6.7,0.9,7.4,1006.7,1004.2,0.0,--,,0.0
7 Dec,7.4,5.6,6.1,3.6,0.2,8.5,1.3,5.9,1007.5,1003.2,0.0,--,,0.0
8 Dec,5.8,3.8,4.2,2.2,0.0,6.3,0.4,4.1,1012.0,1007.1,0.0,--,,0.0
9 Dec,4.4,2.3,2.8,0.8,0.0,6.7,0.9,2.4,1013.7,1011.9,1.0,--,,0.0
9 Dec,2.5,0.7,1.4,-0.2,0.0,4.0,0.2,0.9,1013.5,1009.1,0.0,--,,0.0
and
December.csv
File timestamp: 10-12-2020 14:46:51
4 Dec,6.4,2.3,5.0,-0.3,0.0,5.8,0.3,6.3,999.6,996.0,--,--
5 Dec,8.9,1.6,6.8,0.7,0.0,5.4,0.3,2.7,1006.7,997.1,1.0,--
6 Dec,9.0,0.9,7.7,-0.2,0.0,6.7,0.9,7.4,1006.7,1004.2,0.0,--,,0.0
7 Dec,7.4,5.6,6.1,3.6,0.2,8.5,1.3,5.9,1007.5,1003.2,0.0,--,,0.0
8 Dec,5.8,3.8,4.2,2.2,0.0,6.3,0.4,4.1,1012.0,1007.1,0.0,--,,0.0
9 Dec,4.4,2.3,2.8,0.8,0.0,6.7,0.9,2.4,1013.7,1011.9,1.0,--,,0.0
9 Dec,2.5,0.7,1.4,-0.2,0.0,4.0,0.2,0.9,1013.5,1009.1,0.0,--,,0.0
Now I have 2 lines with the same date. The last should be 10 Dec.

I have included the status page from Meteobridge.

Gert
Attachments
MB.jpg
MB.jpg (75.68 KiB) Viewed 3631 times
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 Aurora Version(english supported only)

Post by weatherist34 »

prestwickwx wrote: Thu Dec 10, 2020 4:00 pm Hi Brian,

The side Menu is a nice addition. :D I can see lots of possibilities. One option might be a default, with the original Menu system intact and the sidebar with the Lock at top and the rest custom entries. I like having my most used icons (pages) on the main screen. I suspect others may want to pick and choose. Could be :shock: .

Nevertheless, thanks for a great addition!

Chuck
hi chuck just a solution for those wanting access to other sources i.e radar , tides, synoptic charts etc , i get request some every week so this only way i can offer without it destroying layout balance. that said im leaving it to the end user to compile and choose what they want . in time once i get a feel of what is used and what is reliable then ill simply make the use of slide out menu optional with various preset menus to select or user like yourself can use original tool bar icons in the bottom. but for now id rather encourage ideas instead of doing what i think .we all have different interest .

@graham checkwx is an api driven format which i used to use long time ago but interest in metar data proved not so popular as the majority were not located near airports etc often 60km or more away so i moved away from that approach. myself no longer situatednear an airport i used to live 5km away by line of sight but its now an hospital complex for covid.. so i should really do something has they have been promoting weather34 template , perhaps i can knock up something as we have another 72 hour strict curfew from tomorrow night..ill let you know in due course..
87C2BF2A-9FDB-4020-8EDF-49482D32936A.jpeg
87C2BF2A-9FDB-4020-8EDF-49482D32936A.jpeg (122.41 KiB) Viewed 3626 times
Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by woolfg »

Hi Brian

Thanks -that would be great

I have three or four airports within a 50 mile radius and two less than 15 miles away

Its useful to check that your weather station readings are on a par with the airports

Regards

Graham
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 Aurora Version(english supported only)

Post by weatherist34 »

gand wrote: Thu Dec 10, 2020 4:11 pm Hi Jason

Thanks for taking the time to look into this.

December.csv
File timestamp: 10-12-2020 14:46:51
4 Dec,6.4,2.3,5.0,-0.3,0.0,5.8,0.3,6.3,999.6,996.0,--,--
5 Dec,8.9,1.6,6.8,0.7,0.0,5.4,0.3,2.7,1006.7,997.1,1.0,--
6 Dec,9.0,0.9,7.7,-0.2,0.0,6.7,0.9,7.4,1006.7,1004.2,0.0,--,,0.0
7 Dec,7.4,5.6,6.1,3.6,0.2,8.5,1.3,5.9,1007.5,1003.2,0.0,--,,0.0
8 Dec,5.8,3.8,4.2,2.2,0.0,6.3,0.4,4.1,1012.0,1007.1,0.0,--,,0.0
9 Dec,4.4,2.3,2.8,0.8,0.0,6.7,0.9,2.4,1013.7,1011.9,1.0,--,,0.0
9 Dec,2.5,0.7,1.4,-0.2,0.0,4.0,0.2,0.9,1013.5,1009.1,0.0,--,,0.0
Now I have 2 lines with the same date. The last should be 10 Dec.

I have included the status page from Meteobridge.

Gert
the script is designed to run with the meteobridge setting just before midnight which is a matter of seconds before midnight by the time your server has processed it will theoretically just passed midnight then it produces a date for previous day has you have passed the current day . alternatively there is the original script you can trigger to run at meteobridge time 23:45 that just produces hi lo upto 23:45 therefore any change in data for the last 15 minutes of the day will not be recorded in the csv file.

the 23:45 file is still in the download its called charts-month-year.php but dont run both otherwise the just before night will produce two entries .
setting up guide
https://weather34.com/homeweatherstatio ... alone.html

in an ideal world a meteobridge setting of 1 or 2 minutes before midnight would be better and remove the previous day timestamp as 99% of server configuration could easily process that without limitations trying to compute in a matter of seconds before the end of day midnight has passed .

confused ? :D just use the setup guide and let it run at set times , dont test it will just create duplicate current date rows .

https://weather34.com/homeweatherstatio ... alone.html

the moral of this is simply saying some server configurations are lightning fast and have lots of resources many low cost server configurations are slow , i would simply have no idea of every end user server performance
Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
gand
Senior Boarder
Senior Boarder
Posts: 46
Joined: Thu Apr 23, 2015 5:40 pm

Re: Weather34 Aurora Version(english supported only)

Post by gand »

Hi Brian

Thanks for the detailed explanation.

Tonight I'll try the charts-month-year.php script with time set to 23:45.

BTW, could I use "After each new day" instead?

Gert
gand
Senior Boarder
Senior Boarder
Posts: 46
Joined: Thu Apr 23, 2015 5:40 pm

Re: Weather34 Aurora Version(english supported only)

Post by gand »

Hi Brian

Using
charts-month-year.php script with time set to 23:45
gave same result, date in December.csv and 2020.csv, 1 day before current day.

Now I try to change charts-end-of-day.php from:
$weather34chartdata = date('j M',strtotime("-1 day"))
to:
$weather34chartdata = date('j M',strtotime("now"))
to see how it goes tonight.

Gert
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 Aurora Version(english supported only)

Post by weatherist34 »

woolfg wrote: Thu Dec 10, 2020 5:10 pm Hi Brian

Thanks -that would be great

I have three or four airports within a 50 mile radius and two less than 15 miles away

Its useful to check that your weather station readings are on a par with the airports

Regards

Graham
good morning graham

option was added this morning i was simply able to use original 2018 popup and tweaked the design slightly to match current. you will see three options at the bottom of the setup screen . must have an API key and it obtains current nearby chosen airport according to existing forecast interval scripts. only appears in menu if option for metar is set to yes.
Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
woolfg
Expert Boarder
Expert Boarder
Posts: 157
Joined: Wed Mar 20, 2019 4:01 pm
Contact:

Re: Weather34 Aurora Version(english supported only)

Post by woolfg »

Hi Brian

Thanks for the latest update - awesome!!

Now have the METAR working

Regards

Graham
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 Aurora Version(english supported only)

Post by weatherist34 »

should resemble this with the design alignments.once again this highlights how easy and relatively quick to implement thing’s without the challenge of supporting additional languages.

have a good day

(*Aurora Update File for 11th December)
* Correct typo's in local metar airport option (4:36pm)
* Minor css change to match template in local metar airport option (4:28pm)
* Apply design elements to match template in local metar airport option (2:25pm)
* Apply template design to compass in local metar airport option (1:50pm)
* Adds local metar airport conditions option to menu ref Graham (11:14am)
* Adds additional SVG weather icons for metar option (11:14am)
* Adds setup options for CheckWx Metar reports (11:14am)
* Weather34 Aurora is PHP 8 ready and backwards compatible PHP 7.xx (News)
* Important always do a backup be safe be smart ! (Advice)


airpor.jpg
airpor.jpg (94.18 KiB) Viewed 3542 times
Last edited by weatherist34 on Fri Dec 11, 2020 3:39 pm, edited 1 time in total.
Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
Locked