Re: Weather34 MB-SMART NANOSD TEMPLATE
Posted: Thu Oct 03, 2019 8:37 am
so is the cloudbase from METAR or your own calculations?
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; }
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>
as above its based on your station data , never used metar .ConligWX wrote: Thu Oct 03, 2019 8:37 am so is the cloudbase from METAR or your own calculations?
Capture.JPG
$weather34["cloudbase"]=round(($weather["temp"] - $weather["dewpoint"])*400,1);
Code: Select all
<div class="weather34darkbrowser" url="Turkey & Regional Recent Earthquakes "></div>Sorry to rant, but I still don't get it.admin wrote: Thu Oct 03, 2019 10:18 pm 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?
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.admin wrote: Thu Oct 03, 2019 10:18 pm 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?![]()
![]()
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.
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.htmlConligWX wrote: Fri Oct 04, 2019 5:21 pm 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.
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 .
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.