Weather34 TEMPLATE

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

Moderator: Mattk

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

Re: Weather34 TEMPLATE

Post by weatherist34 »

Something different and if there is interest ...

1.Do you own a Apple Watch ?
2.Would you like notifications sent from your weather station ?
3.What notifications would you deem as worthy ?
a.Rain ?
b.High Temp i.e what would you deem as exceptional ?
b1.Freezing Temp i.e what would you deem as exceptional ?
c.Air Quality i.e 100 +
d.Wind Speed again an exceptional value
e. Lightning Strike nearby ?
f. Heat Index/Humidity etc

im running two of these Lightning and Rain the notification is hourly not minutes simply strikes can get too frequent when intense, rain tip can be too frequent if intense.

these notifications come direct from the template script and simply interacts with IFTTT .notifications can be disabled in setup screen.

so food for thought but preferably if there is interest I can implement and you need to be familiar with IFTTT setup which is not something I can do from this end .

I have not had any rain for 40 days now so I only have a screenshot of lightning its straightforward no frills just a simple notification.


li.jpg
li.jpg (70.33 KiB) Viewed 4597 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
ToTo
Gold Boarder
Gold Boarder
Posts: 243
Joined: Wed Apr 03, 2019 9:24 am
Location: Magdeburg, Germany
Contact:

Re: Weather34 TEMPLATE

Post by ToTo »

weatherist34 wrote: Wed Aug 05, 2020 9:49 am one day there will be a balance between safari/firefox etc never can fathom why they render things so differently .anyway ive just updated the update file so download it again and run it .many thanks and added language translate value for heat index..screenshot

in firefox(ps your GitHub name you sent/gave does not exist so I cant add you to private access privialege )
Wow, thanks for the fast fix :o

Gitname "TurboDuke77" you can not add?

NanoSD sends me push messages during heavy rain to my iPhone/watch, I use the service pushover.net
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 TEMPLATE

Post by weatherist34 »

ToTo wrote: Wed Aug 05, 2020 11:14 am
weatherist34 wrote: Wed Aug 05, 2020 9:49 am one day there will be a balance between safari/firefox etc never can fathom why they render things so differently .anyway ive just updated the update file so download it again and run it .many thanks and added language translate value for heat index..screenshot

in firefox(ps your GitHub name you sent/gave does not exist so I cant add you to private access privialege )
Wow, thanks for the fast fix :o

Gitname "TurboDuke77" you can not add?

NanoSD sends me push messages during heavy rain to my iPhone/watch, I use the service pushover.net
Ok sent you invite for some reason I had TurboDuke ..

Also other users please note and its not a personal thing but this template does not support Ecowitt or other similar brands , simple reason is I don't own one and simply no understanding of how it or they work , I see many different variations of sensor arrays, combinations that is just is way beyond me to actually compile anything reliably without actually having it in front of me . I have been down that road before supporting multiple hardware, software and so on and its very time consuming , often lots of errors , lots of hanging around waiting for input and so on .

My advice to anyone with Ecowitt or similar brands is to use some other template that supports the various configurations .Im not interested in popularity or financial gain, donations and all other means just trying to design something that I can manage and be responsive in terms of fixing things, supporting and simply give users with some basic understanding to contribute ideas so slowly add those ideas on but start throwing multiple sensor configurations at me then I'll hide and go into hibernation :-) .

To me this is just an hobby nothing else I just happen to have been using CSS using in web design since late 1999 and continued following CSS changes monthly and often introduce those in this template when browsers play catch up and support the newer variables.

for example css variable like using a color base hsla

--dark-caption: hsla(200, 4%, 27%, 0.429);

I can use the string --dark-caption anywhere in the css file without having to remember color formats, numbers etc
it would be like

background:--dark-caption;
text-background:--dark-caption;

couldn't do that 3 years ago with all browser support ! it saves hours and hours ..Brian
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 TEMPLATE

Post by prestwickwx »

weatherist34 wrote: Wed Aug 05, 2020 10:09 am Something different and if there is interest ...

1.Do you own a Apple Watch ?
2.Would you like notifications sent from your weather station ?
3.What notifications would you deem as worthy ?
a.Rain ?
b.High Temp i.e what would you deem as exceptional ?
b1.Freezing Temp i.e what would you deem as exceptional ?
c.Air Quality i.e 100 +
d.Wind Speed again an exceptional value
e. Lightning Strike nearby ?
f. Heat Index/Humidity etc

im running two of these Lightning and Rain the notification is hourly not minutes simply strikes can get too frequent when intense, rain tip can be too frequent if intense.

these notifications come direct from the template script and simply interacts with IFTTT .notifications can be disabled in setup screen.

so food for thought but preferably if there is interest I can implement and you need to be familiar with IFTTT setup which is not something I can do from this end .

I have not had any rain for 40 days now so I only have a screenshot of lightning its straightforward no frills just a simple notification.



li.jpg
Brian,

I would be interested in the Apple Watch notifications. As you know, the Lightning alerts will come through via WeatherFlow, but they do not limit the number of notifications. So, having the alerts come from the template script sounds great.

High Temperature, Heat Index, Wind and Freeze would be good. I think, we would have to be able to adjust some of the extreme values, manually, based on location. For instance, heat index values of 103 F are common, in out area this time of the year. It would probably be a lot of trouble for you to build that in to a setup, but I would be fine with just editing a script.

Best wishes!

Chuck
Image
https://myrtleweather.com/
Myrtle Beach WX @ Prestwick
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 TEMPLATE

Post by weatherist34 »

ok chuck i can add simple upper lower threshold limits in the setup screen along with a simple yes or no to use watch notifications.wont be anytime soon though im off again i think there is an imminent lockdown coming ,daily cases are rising again here we were sub 950 for quite a while ,quite an unexpected hike came we are up at 1090 last 24 hours and seeing reports of increased hospital fill. so im travelling probably this weekend to avoid the bureaucracy again.

toto i looked at pushover a while ago for some reason i thought it was paid service ?
Last edited by weatherist34 on Wed Aug 05, 2020 4:04 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
ToTo
Gold Boarder
Gold Boarder
Posts: 243
Joined: Wed Apr 03, 2019 9:24 am
Location: Magdeburg, Germany
Contact:

Re: Weather34 TEMPLATE

Post by ToTo »

weatherist34 wrote: Wed Aug 05, 2020 3:48 pm toto i looked at pushover a while ago for some reason i thought it was paid service ?
yes, are $5 USD one-time purchase. I thought it was fair, for me.
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 TEMPLATE

Post by prestwickwx »

Hi Brian,

Apple Watch notifications sounds good. Sorry to hear about the spike. Our area was a Hotspot for a couple of months, but it is slowing down now.

I think, Pushover is just a one-time purchase of the app - $5.00 US.

Take care.

Chuck
Image
https://myrtleweather.com/
Myrtle Beach WX @ Prestwick
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 TEMPLATE

Post by weatherist34 »

ok well something for the near future to dive into . will need to look at the pushover api and try it out .

best way forward see how much interest there is .. one good thing about a apple watch cant remember last time i used my phone to answer a call.. :D .

sorry i mistyped the spike new cases went above 1k 1090 not 1900 . misinformation is dangerous..have a great day .
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
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 TEMPLATE

Post by weatherist34 »

adds new simple redesigned notifications to allow use of translations to be added and easier to maintain.

(447kb) Standalone-update-08-08-2020.zip

(Updated 8th August 09:12 GMT)
* New notification style to allow easier translations use
* Lightning added which is already in the Weather34 Meteobridge API
* Ecowitt Air Quality which is already in the Weather34 Meteobridge API
* Pushed to Version 8.34
* Danish Language updated (Ref Bjarne Riis)
* German Language updated (Ref Torsten)
* Adds new Wind Compass design
* Adds Barometer color balance to Wind Compass

new-notifications.png
new-notifications.png (54.58 KiB) Viewed 4493 times
new-notif1.jpg
new-notif1.jpg (144.29 KiB) Viewed 4490 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
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 TEMPLATE

Post by jasonmfarrow »

weatherist34 wrote: Wed Aug 05, 2020 10:09 am Something different and if there is interest ...

1.Do you own a Apple Watch ?
2.Would you like notifications sent from your weather station ?
3.What notifications would you deem as worthy ?
a.Rain ?
b.High Temp i.e what would you deem as exceptional ?
b1.Freezing Temp i.e what would you deem as exceptional ?
c.Air Quality i.e 100 +
d.Wind Speed again an exceptional value
e. Lightning Strike nearby ?
f. Heat Index/Humidity etc
Hi Brian,
1) Yes, 2) Yes, and 3) Yes to all.

Cheers.
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 TEMPLATE

Post by jasonmfarrow »

ToTo wrote: Wed Aug 05, 2020 11:14 am NanoSD sends me push messages during heavy rain to my iPhone/watch, I use the service pushover.net
Can you post your code for this, please? It would be good to experiment whilst Brian considers the best way to integrate this or some alternative Apple Watch notification process.

Cheers
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
ToTo
Gold Boarder
Gold Boarder
Posts: 243
Joined: Wed Apr 03, 2019 9:24 am
Location: Magdeburg, Germany
Contact:

Re: Weather34 TEMPLATE

Post by ToTo »

If you have an account with pushover, then you also have your own e-mail address from pushover. In the Meteobridge you can have an email sent to your pushover address when certain events occur and you will receive a push message on your mobile phone or watch.
349978FF-402C-49D2-8859-4AE92B0F9B01.jpeg
349978FF-402C-49D2-8859-4AE92B0F9B01.jpeg (186.95 KiB) Viewed 4404 times
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 TEMPLATE

Post by jasonmfarrow »

ToTo wrote: Wed Aug 12, 2020 12:34 pm If you have an account with pushover, then you also have your own e-mail address from pushover. In the Meteobridge you can have an email sent to your pushover address when certain events occur and you will receive a push message on your mobile phone or watch.

349978FF-402C-49D2-8859-4AE92B0F9B01.jpeg
Excellent. Cheers.
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Weather34 TEMPLATE

Post by jasonmfarrow »

I've got the following working for Pushover using the API. I created a pushoverTemp.php file with this code:

Code: Select all

<?php include('livedata.php');?>
<?php
curl_setopt_array($ch = curl_init(), array(
  CURLOPT_URL => "https://api.pushover.net/1/messages.json",
  CURLOPT_POSTFIELDS => array(
    "token" => "<my_api_app_token>",
    "user" => "<my_user_token>",
    "title" => "JMFweather.uk Alert",
    "message" => "Temperature: ".$weather["temp"].$weather["temp_units"].".",
  ),
  CURLOPT_SAFE_UPLOAD => true,
  CURLOPT_RETURNTRANSFER => true,
));
curl_exec($ch);
curl_close($ch);
?>
This does the job sending the current temperature to my Apple Watch. Now I need to consider how to make it work on alarms!
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Weather34 TEMPLATE

Post by weatherist34 »

good stuff jason , but dont go too far with it i have a one file solution basically if a criteria is met example

if temp> 30 fire pushover api
if windspeed > 50 fire pushover api

and so on basically similar to what posted but compiles all criterias into one file and with a setup option to use pushover or ifttt or none.. the best way is remove the requirements of direct editing and set the options in the setup screen so you simply enter whatever your pushover or ifttt credentials are like other api uses already used. anyway keep up the good work .i will hopefully have it all done early september but august a busy month , its my birthday 26th, my wifes 27th ,wedding anniversary 29th on top of that im doing a 3 week freelance design job for a company though working from home 😁.. so keep an eye out all will come good in time..brian
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
Post Reply