Weather34 TEMPLATE
Moderator: Mattk
- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Weather34 MB-SMART NANOSD TEMPLATE
so is the cloudbase from METAR or your own calculations?
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
looking at your code no need to edit the live data simply add the formula into the file windspeeddirection.phpsvampen wrote: ↑Wed Oct 02, 2019 1:23 pm I can send you the translation-file, but I am still tinkering with it. Some words are not suitable etc. Hard to see all places they might go and choose the right nomenclature.
But I fixed the wind run issue as follows:
in Windspeeddirection.php, at the very end:And in Livedata.php, approx line 105, I added a factor of 3,6 as such:Code: Select all
<div class=weather34windruntoday1> <?php echo ' <windaveragevalue>',number_format($weather["windrun34"],1)."</windaveragevalue><weather34windrunspan>"?> <?php if (($weather["wind_units"]=='km/h') || ($weather["wind_units"]=='m/s')){echo 'km';}else echo 'mi';?></weather34windrunspan></div> <div class=windruntoday1><?php echo $lang['Wind Run']." ".$lang['Today'];?></div>
Code: Select all
//weather34 windrun based on daily average $windrunhr=date('G');$windrunmin=(($windrunmin=date('i')/60));$windrunformula=$windrunhr=date('G')+$windrunmin; $weather["windrun34"]=$weather['wind_speed_avg30']*number_format($windrunformula,1); //Fix for correct m/s format by RM if ($weather["wind_units"]=="m/s") { $weather["windrun34"]=$weather["windrun34"]*3.6; }
like this
so I added it into windspeeddirection.php , I will upload sometime today with a few other additional tweaks . also changed the formula to a simple *400(ref Simon-conligwx) for cloud base however results are the same but ill use *400 for familiarity .<?php
if ($weather["wind_units"]=='m/s'){echo ' <windaveragevalue>',number_format($weather["windrun34"]*3.6,1)."</windaveragevalue><weather34windrunspan>";}
else echo ' <windaveragevalue>',number_format($weather["windrun34"],1)."</windaveragevalue><weather34windrunspan>";
;?><?php if (($weather["wind_units"]=='km/h') || ($weather["wind_units"]=='m/s')){echo 'km';}else echo 'mi';?></weather34windrunspan></div>
<div class=windruntoday1><?php echo $lang['Wind Run']." ".$lang['Today'];?></div>
some other minor additions (wind direction icon for average) nothing significant probably won't be anything significant . next significant change will be css but thats a job for when I have some personal time for a week ..
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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
as above its based on your station data , never used metar .
$weather34["cloudbase"]=round(($weather["temp"] - $weather["dewpoint"])*400,1);
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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
language file Swedish was added many thanks to Robert Magnusson for taking the time and checking for alignments , its important when submitting languages .
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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
Re: Weather34 MB-SMART NANOSD TEMPLATE
lang['Awesome'] = 'Grymt bra!'

// Robert


// Robert
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
Re: Weather34 MB-SMART NANOSD TEMPLATE
A small problem I have found.
This "max wind speed per 10min" in the current conds is stuck. It does not alter. It change when units are changed, but the speed is always the same. The other values in the current conds do follow what is happening.
I cannot find what the problem is or really understand how the livedata is parsed.
Did a restart of the meteobridge, did a complete update of all templatefiles, but no change.
Right now it is completely still outside and has been a few hours. But still the same 4,5m/s or equivalent mph or km/h, regardless.
This "max wind speed per 10min" in the current conds is stuck. It does not alter. It change when units are changed, but the speed is always the same. The other values in the current conds do follow what is happening.
I cannot find what the problem is or really understand how the livedata is parsed.
Did a restart of the meteobridge, did a complete update of all templatefiles, but no change.
Right now it is completely still outside and has been a few hours. But still the same 4,5m/s or equivalent mph or km/h, regardless.


PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
Re: Weather34 MB-SMART NANOSD TEMPLATE
Please keep in mind that gust speed of last 10 minutes will not change within 10 minutes when no higher gust is recorded in that time. Logical, isn't it?
- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Weather34 MB-SMART NANOSD TEMPLATE
Brian.
the eqlist.php has hardcoding in it, which is not for most weather stations.
line 211
sorry but I dont like in Turkey:)
the eqlist.php has hardcoding in it, which is not for most weather stations.
line 211
Code: Select all
<div class="weather34darkbrowser" url="Turkey & Regional Recent Earthquakes "></div>
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
sorry overlooked 

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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
Re: Weather34 MB-SMART NANOSD TEMPLATE
Sorry to rant, but I still don't get it.


The $weather["wind_speed_max"] that the value comes from; is that not the highest average wind speed of the day that reset at midnight? It does certainly not indicate gust speeds, nor what happened the last 10 minutes. Or maybe I have misunderstood ... (which is probably quite likely

I tried alter to use $weather["wind_gust_speed_max"] instead, and I then get the highest gust of the day that reset at midnight, ie the same as top-left corner of the big winddirection box.
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
don't worry I don't it call it ranting I call it resolving try the livedata.php just updated the string was using incorrect number now changed to position 40 .svampen wrote: ↑Fri Oct 04, 2019 7:38 amSorry to rant, but I still don't get it.![]()
![]()
The $weather["wind_speed_max"] that the value comes from; is that not the highest average wind speed of the day that reset at midnight? It does certainly not indicate gust speeds, nor what happened the last 10 minutes. Or maybe I have misunderstood ... (which is probably quite likely)
I tried alter to use $weather["wind_gust_speed_max"] instead, and I then get the highest gust of the day that reset at midnight, ie the same as top-left corner of the big winddirection box.
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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Weather34 MB-SMART NANOSD TEMPLATE
Brian does past history records get populated when you install MB-SMART or only data going forward from the time the scripts are run?
I've not setup this fully as yet.
I've not setup this fully as yet.
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
no unfortunately unless you have records from previous meteobridge version which uses mysql and is upto date the structure is almost identical apart from the solar i think cant remember without looking.if you have those just send me that 2019.csv file and i can simply do a quick test , it is generally is ok see for example https://myrtleweather.com/shwst/ that is using a data from the original version which only needed a slight adjustment but the or my original aim of releasing for january 2020 was this reason .the new chart method requires zero knowledge of mysql at all just run the two simple chart files outlined here https://weather34.com/homeweatherstatio ... setup.html
it doesnt get any easier than this and is suited for those without any previous mysql experience makes life easier for all and reduces the support overhead.
when i get time i will publish a page how to actually run a export in same structure,format from nanosd so that would allow past years of data to be used .unlikely in the near future at the moment.
for now it runs from the day you install and no before anyone asks will it support weather underground history..

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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
Re: Weather34 MB-SMART NANOSD TEMPLATE
And now it works perfectly!weatherist34 wrote: ↑Fri Oct 04, 2019 11:34 am ... try the livedata.php just updated the string was using incorrect number now changed to position 40 .


Brian, you have a cold beer waiting for you here!
// R.
PWS Villshärad/Halmstad, Sweden: vader.fishmoose.se DavisVPro + MB NanoSD.
-
- Platinum Boarder
- Posts: 1693
- Joined: Tue Mar 28, 2017 6:57 am
Re: Weather34 MB-SMART NANOSD TEMPLATE
svampen wrote: ↑Fri Oct 04, 2019 8:32 pmAnd now it works perfectly!weatherist34 wrote: ↑Fri Oct 04, 2019 11:34 am ... try the livedata.php just updated the string was using incorrect number now changed to position 40 .![]()
![]()
Brian, you have a cold beer waiting for you here!
// R.
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
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file
Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip