Author Topic: Weather34 template(non meteobridge versions)  (Read 117913 times)

0 Members and 3 Guests are viewing this topic.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #475 on: April 20, 2018, 01:53:28 AM »
ok not much i can do to help with hidden servers . perhaps install template on public server send meteobridge data to public server and then on private server installation use the public url for MBrealtimeupload.txt . your private server should be able to see the public url of MBrealtimeupload.txt thats exactly what i do I develop on local server on desktop or laptop then using the live data url for MBrealtimeupload.txt on a public hosted server . 

https://somethingweather.com/mbridge/MBrealtimeupload.txt in both easyweathersetup screens .


Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #476 on: April 20, 2018, 02:11:15 AM »
Thanks for the tip! I think that will work great.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #477 on: April 23, 2018, 02:45:02 AM »
good morning

AIR QUALITY for Purple Air and AQICN ..as promised i would get it done and test it out over a the weekend , looked at best way to make it appealing to all without just plopping
numbers in there hopefully enthusiasts and non enthusiast will be able to get some idea from the data.

icons I made in SVG inspired by some design ideas at https://dribbble.com best place to really get some design inspiration , i simply downloaded a SVG face the just added simple elements to the face to reflect a mask and happy/unhappy face from https://icons8.com/icon/42445/user-male. svg icons scale up and down without loss or distortion,pixelating and allow direct editing and you can insert css styles in any code editor.

there are a few other fixes in the downloads for cumulus and meteobridge reference to rainfall display in non metric with two decimal places as opposed to one.

meteobridge has some new API values added to reflect some Almanac data so to use those values a reboot of meteobridge is required if you are not already on VERSION 3.6 (12181).

screenshot below and as always available via https://weather34.com/homeweatherstation/

brian...

« Last Edit: April 23, 2018, 02:47:36 AM by weatherist34 »

Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #478 on: April 23, 2018, 09:51:09 PM »
I finally got it all configured. I made a few changes to the template. Mainly, I simplified some stuff on the desktop version and added a few things to the mobile version:
https://kirkmanweather.com

« Last Edit: April 23, 2018, 11:54:47 PM by doubleohwhatever »

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #479 on: April 24, 2018, 02:56:46 AM »
looks good couple points

info page

meteor showers are calculated locally in livedata.php initial info to build the scripts came from IMO .

where did you get that visits graph html css chart ive been working on i never released it did you scrape my site ? source code reveals my lightning data chart. 

earthquake data is provided by earthquake-report.com what is SOS ?

other than that well done however you will struggle for updates just be aware .

purple air and aqicn scripts were updated this morning some users found some anomalies in using multiple station id and icons and css ,code script were updated . purple air also displays 5 digit info when 100 or more so had to adjust css to cater for the longer number value






« Last Edit: April 24, 2018, 03:08:20 AM by weatherist34 »

Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #480 on: April 24, 2018, 03:31:29 AM »
meteor showers are calculated locally in livedata.php initial info to build the scripts came from IMO .
Ah, I'll update that.

where did you get that visits graph html css chart ive been working on i never released it did you scrape my site ?
Yes, I grabbed the code from your site. I noticed the lightning icon in this and several other images:
https://weather34.com/homeweatherstation/img1/mbc.png

Since it was in the images, I thought this was something that was available in older versions but removed. I didn't know it was an unreleased feature. I can switch to using a chart from CanvasJS if you'd prefer.

earthquake data is provided by earthquake-report.com what is SOS ?
"SOS Earthquakes" is the organization that runs earthquake-report.com

other than that well done however you will struggle for updates just be aware .
Nah, it takes just a few minutes to merge changes.

purple air and aqicn scripts were updated this morning some users found some anomalies in using multiple station id and icons and css ,code script were updated .
Thanks for the heads up. I've merged the changes.


Btw, there are two changes I made to the purple air integration:
1) I'm averaging the pm25 values from both the Purple Air "A" and "B" sensors. This is what Purple Air appears to be doing when they display the data.
2) I added a function to convert the Purple Air pm25 values to the AQI scale used by aqicn.org

For example, in purpleair.php, I've changed line 164 to:
Code: [Select]
$aqiweather["aqi"]       = number_format(pm25_to_aqi(($parsed_json->{'results'}[0]->{'PM2_5Value'} + $parsed_json->{'results'}[1]->{'PM2_5Value'}) / 2),1);

This is the pm25_to_aqi function:
Code: [Select]
function pm25_to_aqi($pm25){
if ($pm25 > 500.5) {
  $aqi = 500;
} else if ($pm25 > 350.5 && $pm25 <= 500.5 ) {
  $aqi = map($pm25, 350.5, 500.5, 400, 500);
} else if ($pm25 > 250.5 && $pm25 <= 350.5 ) {
  $aqi = map($pm25, 250.5, 350.5, 300, 400);
} else if ($pm25 > 150.5 && $pm25 <= 250.5 ) {
  $aqi = map($pm25, 150.5, 250.5, 200, 300);
} else if ($pm25 > 55.5 && $pm25 <= 150.5 ) {
  $aqi = map($pm25, 55.5, 150.5, 150, 200);
} else if ($pm25 > 35.5 && $pm25 <= 55.5 ) {
  $aqi = map($pm25, 35.5, 55.5, 100, 150);
} else if ($pm25 > 12 && $pm25 <= 35.5 ) {
  $aqi = map($pm25, 12, 35.5, 50, 100);
} else if ($pm25 > 0 && $pm25 <= 12 ) {
  $aqi = map($pm25, 0, 12, 0, 50);
}
return $aqi;
}
function map($value, $fromLow, $fromHigh, $toLow, $toHigh){
    $fromRange = $fromHigh - $fromLow;
    $toRange = $toHigh - $toLow;
    $scaleFactor = $toRange / $fromRange;

    // Re-zero the value within the from range
    $tmpValue = $value - $fromLow;
    // Rescale the value to the to range
    $tmpValue *= $scaleFactor;
    // Re-zero back to the to range
    return $tmpValue + $toLow;
}

The "PM2.5 AQI scale" scale used is found here:
https://aqicn.org/calculator/

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #481 on: April 24, 2018, 03:46:15 AM »
hello

if the charts suits you then use it its unfinished needs to be added to use mysql just not had the time to do it .


is this your original modification to the purple air script ? if not where did you get it so as to give credit where it is due .

perhaps send the file along if it of benefit to purple air users

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #482 on: April 24, 2018, 03:49:44 AM »
inserted like this


Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #483 on: April 24, 2018, 03:57:34 AM »
if the charts suits you then use it its unfinished needs to be added to use mysql just not had the time to do it .
Thanks.

is this your original modification to the purple air script ?
The pm25_to_aqi function is mine. The map function is one I've been using for years. I have no idea where I originally got it.

perhaps send the file along if it of benefit to purple air users
I added the functions in shared.php (I think). There were two places I had to call the pm25_to_aqi function. One in purpleair.php and another in aqi.php. I'll upload the files tomorrow. I just left the office and am on typing this on my phone.
« Last Edit: April 24, 2018, 03:59:33 AM by doubleohwhatever »

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #484 on: April 24, 2018, 04:01:38 AM »
OK NO PROBLEM...ill add in a credit , dont use shared.php that would cause all non use purple air users to try and load the script unless you put if($purpleair=='yes') do something ...

just add the scripts into the appropiate modules then only purple air users will load up .

ive added the script into two modules . purpleair.php and aqi.php works ok from what im seeing using your ID .

brian

Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #485 on: April 24, 2018, 04:04:30 AM »
Good point. I forgot some people aren't using purple air.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #486 on: April 24, 2018, 04:07:06 AM »
oh yes never forget what suits one wont work for the other ... you can design to perfection then release it and all your hard work goes to nothing if you didnt take into consideration of the various hardware where one has everyhting the other has limited.. anyway what is your first name i went through emails and cant find the one you sent last week ..

Offline doubleohwhatever

  • Senior Contributor
  • ****
  • Posts: 252
Re: HOMEWEATHERSTATION Dashboard template
« Reply #487 on: April 24, 2018, 04:10:32 AM »
It doesn't matter how much you perfect a design. As soon as you release it, people will find things you missed!

My name is Andrew Billits.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #488 on: April 24, 2018, 04:15:17 AM »
ok all done added in your name and tested on two different stations .

will update download shortly .. many many thanks for your input and code

*note all icons are using the dark versions i think the white is a bit messy.
.. brian

« Last Edit: April 24, 2018, 04:29:24 AM by weatherist34 »

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #489 on: April 24, 2018, 08:44:30 AM »
Hi Brian,

The new AQI module looks great!

I noticed an odd data point on my template this morning. My Wind Module is showing the correct value for the MAX Wind Gust, but the MAX Wind is incorrect. The Today Graph shows the correct values. You can see it here:

https://myrtlebeachweather.org/hwst/index.php

Any ideas?

Please disregard my earlier email. I was not sure that you were still messaging here.

Best wishes!

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #490 on: April 24, 2018, 08:53:40 AM »
ok ill have a look shortly dont recall any change to wind data but so many things to check i could have made an error..

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #491 on: April 24, 2018, 09:30:46 AM »
Hi Brian,

The new AQI module looks great!

I noticed an odd data point on my template this morning. My Wind Module is showing the correct value for the MAX Wind Gust, but the MAX Wind is incorrect. The Today Graph shows the correct values. You can see it here:

https://myrtlebeachweather.org/hwst/index.php

Any ideas?

Please disregard my earlier email. I was not sure that you were still messaging here.

Best wishes!

Chuck

what is showing in the livedata screen in meteobridge ?  ms or mph values no problem

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #492 on: April 24, 2018, 09:46:56 AM »
Hi Brian,

The new AQI module looks great!

I noticed an odd data point on my template this morning. My Wind Module is showing the correct value for the MAX Wind Gust, but the MAX Wind is incorrect. The Today Graph shows the correct values. You can see it here:

https://myrtlebeachweather.org/hwst/index.php

Any ideas?

Please disregard my earlier email. I was not sure that you were still messaging here.

Best wishes!

Chuck

what is showing in the livedata screen in meteobridge ?  ms or mph values no problem

Meteo live is showing avgwind max (5.3 m/s and 11.9 mph).

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #493 on: April 24, 2018, 09:51:01 AM »
ok got it ill email you a file just rename your current livedata.php and use the the one in the email.


Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #494 on: April 24, 2018, 09:59:13 AM »
ok got it ill email you a file just rename your current livedata.php and use the the one in the email.

OK. That solved the issue - must have been reading m/s. All is well now.

Looking forward to receiving my Weatherflow units.

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #495 on: April 24, 2018, 10:06:03 AM »
not long now and its looking good i been testing another 3rd unit last 3 weeks and its good , pay attention to sensor location and you will be a happy man ive posted what i do over on the weatherflow community forum and the technology is relatively new so  you will see variances but follow the guideline of installation from the weatherflow forums and you wont be disappointed however ignore those install criterias and your on a path to disappointment.

feel,free to email anytime for any tips .. however the last unit was straight out the box up on the mast pole and job done in 10minutes..

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #496 on: April 24, 2018, 10:21:42 AM »
It looks like a simple setup. I have picked out a location to keep the Air unit in the shade. It appears that your lightning detector is working well.

Best wishes!

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #497 on: April 26, 2018, 06:27:17 AM »
good afternoon

using the improved script courtesy of andrew billits and now with improved css design color coded and slimmed down svg icons also has new option to switch in or out via setup screen,if you are not interested or dont have a requirement / hardware.

*** important many main files updated to reflect the new option so please dont take any shortcuts thats 90% of the problem in every email.  some older files were removed which basically were duplicates.

https://weather34.com/homeweatherstation/


Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #498 on: April 26, 2018, 09:32:48 AM »
good afternoon

using the improved script courtesy of andrew billits and now with improved css design color coded and slimmed down svg icons also has new option to switch in or out via setup screen,if you are not interested or dont have a requirement / hardware.

*** important many main files updated to reflect the new option so please dont take any shortcuts thats 90% of the problem in every email.  some older files were removed which basically were duplicates.

https://weather34.com/homeweatherstation/



Brian,

Does this update prevent you from having the Air Quality link under the Current Conditions and the MoonPhase module - like the previous version?

Thanks,

Chuck
« Last Edit: April 26, 2018, 09:49:24 AM by prestwickwx »

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #499 on: April 26, 2018, 11:52:26 AM »
hello

if you select no for both air quality options then no air quality features are displayed or linked too.


 

anything