Author Topic: WEATHER34 TEMPLATE with meteobridge options  (Read 88531 times)

0 Members and 2 Guests are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #350 on: February 26, 2019, 12:39:38 AM »
They are still testing the API issuance and only the invited folks (via an email from Victoria) will be able to get keys at this time.
The page to request/issue the page has deep problems.. only works (for the invited) with some browsers.  It wouldn't work with Firefox for me at all, finally worked with Edge.  Crome also wouldn't work.

Be patient.. they will finish testing and do a general release soon.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #351 on: February 26, 2019, 01:34:42 AM »
Brian,

OK. Got it - I updated all of your recent changes. The forecast time updated.

The thunder data is a nice addon. Will be interesting to see if WU uses it regularly.

Great new addition!

Chuck

good morning chuck

little addition to outlookwu.php added color coding for uvindex and also has a low,moderate,high etc description alongside. will add to forecast3wu.php later ..


lightmaster think ken explained that for you and yes it is a dummy key ..brian

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #352 on: February 26, 2019, 05:56:37 AM »
files updated via https://github.com/weather34/Meteobridge-Weather34-Template

1.airquality.php
2.indoortemperature.php
3. css files dark/light
4.forecast3wu.php
5.outlookwu.php
6.barometer.php
7.weather34uvsloar.php

additional stuff was added

barometer.php requested for metric users now displays in two decimals places for refined observations of changes
forecast3wu/outlookwu.php both files color coded for uvindex/temperature and additional thunderstorms if present in the forecast
airquality additional phrase added
indoortemperature additional phrase
weather34uvsloar  additional phrase

css files dark/light updated to reflect colour values and phrases


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #353 on: February 26, 2019, 06:52:29 AM »
yes Gand :-) all added ...

two files updated https://github.com/weather34/Meteobridge-Weather34-Template

metarnearby.php metar34get.php now includes additional m/s readings in wind area




« Last Edit: February 26, 2019, 06:58:11 AM by weather34 »

Offline gand

  • Senior Member
  • **
  • Posts: 61
    • Lynghuzed
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #354 on: February 26, 2019, 07:27:13 AM »
Hi Brian

That was prompt.

Working perfect.

Thanks again.

Gand

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #355 on: February 26, 2019, 12:54:12 PM »
Also confirmed, looks good.
I have a WU API key, and updated my site a couple minutes ago.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #356 on: February 27, 2019, 09:01:56 AM »
Brian,

The WU "fine tuning" looks great! I suspect more interest in WU - Victoria has now sent out the official email directing PWS members to the new API.

Chuck

Offline alexeysailman

  • Member
  • *
  • Posts: 24
    • MORSKAYA10 WEATHER STATION
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #357 on: February 27, 2019, 01:31:20 PM »
  Hello, Brian.
Recently started using Your template. It's very thoughtful. Are satisfied, and setting the template and instructions for the meterbridge is simple and straightforward.
  Although there are a couple of small questions:
- do you plan to add more language packs? I am particularly interested in Russian. I am ready to assist in translation and testing.
- for the metric system, which is often used on the territory of Russia, is more characteristic of mercury column millimeters for atmospheric pressure,
can we count on their appearance in the future?
  Thanks.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #358 on: February 27, 2019, 01:55:13 PM »
Hello Alexey

Firstly i apologise for not responding to your emails/pm in a timely manner i only allocate myself an hour each morning to do little things with the template.

adding Russian is not a problem , sometime ago it did support Russian however I'm not sure it was translated by a native Russian speaker as i recall one user many months ago emailing me to say there are some wrong phrases so i had a feeling it done by google translate or something .
I only speak Turkish or english(native) so i cant help or have the ability to spot any mis translated words.
also I find designing for other languages other than english quite time consuming as the template is primarily designed in english.
so send along a translated file from the languages folder you will see a file called lang.blank.php simply translate that file however be aware I have focused at all on languages for at least a year so not all things will appear translated..though i think darksky supports RU and also the newer WU api ..

your other question having pressure displayed in  mmHg again this can be done but its not a quick add-on ..need to convert in different areas (files)
max/min/trends/charts/metar/easyweathersetup/shared.php/livedata.php  the easy way for you would be just hard code using a simple conversion from the default hPa *0.75006156130264 in for your own use ive never had any request for it in the past..unlikely i can do this as Im pretty much handing everything over including this meteobridge version(hence the switch to github) by mid april Im finished so between now and then ill just add on the simple things or things that are relatively easy to achieve in a short time..

sorry its not a positive answer but I have been wanting to really move away (literally) for a long long time..




Offline alexeysailman

  • Member
  • *
  • Posts: 24
    • MORSKAYA10 WEATHER STATION
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #359 on: February 27, 2019, 03:52:14 PM »
Thanks for your reply. If you still decide to implement a Russian language pack, keep me in mind (I am Russian, so I can translate correctly without Google). Unfortunately my knowledge of coding leaves much to be desired. In this regard, if you tell me, "specific location" (file), where I can use the conversion factor for mmHg column - I will be very grateful.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #360 on: February 27, 2019, 04:16:05 PM »
ok well lets start at livedata.php *note charts are NOT converted perhaps look at this next week.important this will mean when you or if anyone switches to non metric it will always show mmHg value!!

$weather["barometer"]          = $meteobridgeapi[10];
$weather["barometer_max"]      = $meteobridgeapi[34];
$weather["barometer_min"]      = $meteobridgeapi[36];
$weather["barometer_units"]    = $meteobridgeapi[15]; // mb or hPa or in
$weather["barometer_trend"]    = $meteobridgeapi[10] - $meteobridgeapi[18];


to


$weather["barometer"]           = number_format($meteobridgeapi[10]*0.75006157584566,2);
$weather["barometer_max"]   = number_format($meteobridgeapi[34]*0.75006157584566,2);
$weather["barometer_min"]    = number_format($meteobridgeapi[36]*0.75006157584566,2);
$weather["barometer_units"]  = 'mmHg'; // just add mmHg
$weather["barometer_trend"]  = number_format($meteobridgeapi[10]*0.75006157584566,2) - number_format($meteobridgeapi[18]*0.75006157584566,2);

not being familiar with mmHg you will have verify this is the correct conversion from hPa..
https://www.convertunits.com/from/mb/to/mm+Hg

1 hPa = 0.75006157584566 mmHg
as you can see trends etc converted just by editing the livedata.php with above

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #361 on: February 27, 2019, 04:25:11 PM »
then you need to edit barometer.php

find


<div class="barometerlimits"><div class='weather34-barometerruler'>
<?php if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa"){echo "<weather34-barometerlimitmin><value>950</weather34-barometerlimitmin><weather34-barometerlimitmax><value>1050</weather34-barometerlimitmax>";}
else echo "<weather34-barometerlimitminf><value>28</barometerlimitminf><weather34-barometerlimitmaxf><value>31</weather34-barometerlimitmaxf>";?></div></div>

and change to so you now see scale from 715 to 815 is that correct scale ??

<div class="barometerlimits"><div class='weather34-barometerruler'>
<?php if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa"){echo "<weather34-barometerlimitmin><value>950</weather34-barometerlimitmin><weather34-barometerlimitmax><value>1050</weather34-barometerlimitmax>";}
else if ($weather["barometer_units"]=='mmHg'){echo "<weather34-barometerlimitminf><value>715</barometerlimitminf><weather34-barometerlimitmaxf><value>815</weather34-barometerlimitmaxf>";}
else echo "<weather34-barometerlimitminf><value>28</barometerlimitminf><weather34-barometerlimitmaxf><value>31</weather34-barometerlimitmaxf>";?></div></div>


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #362 on: February 27, 2019, 04:36:49 PM »
then finally in barometer.php

chang the style to reflect the movement of the needle

<style>
.weather34barometerarrowactual{-webkit-transform:rotate(<?php
if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer"]*50.6;}?>deg);
transform:rotate(<?php if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer"]*50.6;}?>deg);}
.weather34barometerarrowmin{-webkit-transform:rotate(<?php
if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer_min"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer_min"]*50.6;}?>deg);
transform:rotate(<?php if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer_min"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer_min"]*50.6;}?>deg);}
.weather34barometerarrowmax{-webkit-transform:rotate(<?php
if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer_max"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer_max"]*50.6;}?>deg);
transform:rotate(<?php if ($weather["barometer_units"]=='mb' OR $weather["barometer_units"]=="hPa" OR $weather["barometer_units"]=="mmHg"){echo $weather["barometer_max"]*0.02953*50.6;}else if ($weather["barometer_units"]=='inHg'){echo $weather["barometer_max"]*50.6;}?>deg);}
</style>

if you just edit your livedata.php  ive attached a complete modified barometer.php for just to use with mmHg just replace existing barometer.php on your server..

so it should finally resemble something like this



 [ You are not allowed to view attachments ]

Offline alexeysailman

  • Member
  • *
  • Posts: 24
    • MORSKAYA10 WEATHER STATION
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #363 on: February 27, 2019, 05:33:07 PM »
Thank you very much! It's working! My gratitude is boundless!

Offline gand

  • Senior Member
  • **
  • Posts: 61
    • Lynghuzed
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #364 on: February 28, 2019, 04:45:35 AM »
Hi Brian

The very latest update (mostly related to wu conversions on the fly) seems to give wrong numbers about temperature in WU Forecast.

Rgds
gand

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #365 on: February 28, 2019, 04:53:00 AM »
hi gand always provide a url an image doesnt give me anything to,diagnose and as your using ms i would need to see what actually is present the forecast..either pm or here but miminum of url required..

Offline gand

  • Senior Member
  • **
  • Posts: 61
    • Lynghuzed
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #366 on: February 28, 2019, 04:59:32 AM »
Hi Brian

Sorry, here it is:
https://lynghuzed.dk/

gand

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #367 on: February 28, 2019, 05:18:59 AM »
I have just pushed two files updated using your forecast file to test with
forecast3wu.php outlookwu.php

hope it is ok...tnx brian

Offline gand

  • Senior Member
  • **
  • Posts: 61
    • Lynghuzed
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #368 on: February 28, 2019, 05:34:43 AM »
Hi Brian

Looks good.

Thanks

Rgds
gand

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #369 on: February 28, 2019, 05:36:12 AM »
no problem thanks for spotting ...brian

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #370 on: March 01, 2019, 02:37:02 AM »
I've noticed the Cloudbase estimated cloud height metric and non-metric numbers overlap.
http://seamanville.com/pws/purpleair.php
« Last Edit: March 01, 2019, 02:43:45 AM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #371 on: March 01, 2019, 03:00:53 AM »
hi could be a browser thing needing some slight css adjustment ...  could be a browser cache thing ..

here is yours on my ipad pro .

 [ You are not allowed to view attachments ]

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #372 on: March 01, 2019, 03:20:58 AM »
ok i was able to replicate that in Firefox was ok in other -webkit- browsers have pushed an update to fix it. the file is purpleair.php

https://github.com/weather34/Meteobridge-Weather34-Template

 [ You are not allowed to view attachments ]

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #373 on: March 01, 2019, 04:36:09 AM »
Updated purpleair.php, confirmed, looks great now.
You are awesome.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline lightmaster

  • MB-HWS Template Dev
  • Forecaster
  • *****
  • Posts: 324
    • Baxley,GA Weather
Re: WEATHER34 TEMPLATE with meteobridge options
« Reply #374 on: March 01, 2019, 06:53:30 AM »
I read about a growing number of people that now have access to the new Wunderground API so I figured I'd try it again to see. https://www.wunderground.com/member/api-keys is the correct URL, right? Cuz it just keeps taking me to a login page over and over again.

 

anything