Blue Iris Tools - Weather Overlay, Watchdog & more!

Blue Iris Tools - Weather Overlay, Watchdog & more! 1.6.0

eeeeesh

BIT Beta Team
Joined
Jan 5, 2017
Messages
127
Reaction score
71
I don't know if this is of any help, but my cron job that copies my Weather Underground data over to PWS appears to be still working fine. It looks like you can't currently access the webpage at wufyi.com, but here is the format that is used to copy the data over (this is from my notes when I set it up)

1579018847636.png
 

dirk6665

BIT Beta Team
Joined
Feb 13, 2015
Messages
12
Reaction score
3
Location
Pennsylvania
I had a thought ... I know BI allows you to add image overlays ... WU offers 'widgets' that contain basic weather data (although not all). I used to see "image scraping" software back in the day - but don't see too many of these now -- mostly software that allows you to grab an entire page. If someone could find a way to grab the image (from the IMG SRC specified in the widget) - this could be saved to a drive accessible to BI and simply added as an image overlay. Not the best fix, but would temporarily offer a solution.
For example, my weather widget URL is:
This is what it looks like:
wxBanner.gif


If I can find a way to save just this image as a .jpg file, I could use it as an overlay image in BI
Most of the software I have looked at / tried has not been satisfactory - producing images that were unacceptable as they included borders and anomalous imagery.
I am also looking for a weather program that allows saving the data pulled as a "text" file - this could also be included into BI's overlay function and product similar results.
I'll circle back here if I make any progress - if anyone finds a viable image ripper / scraper to use in my first scenario - please share!
 

johndball

n3wb
Joined
Jan 9, 2020
Messages
5
Reaction score
3
Location
Mineral, VA
I was able to get a working solution with the Weather Underground API (listed under my member settings). Thanks to a long-time developer friend of mine, Blaize (https://www.blaize.net), I used this batch file placed in the Blue Iris Tools "txt" folder, combined with JQ and CURL for Windows (placed in the Windows Directory), and a task scheduler to call the batch file, I now have weather updates every 15 minutes. I used Blue Iris Tools to do the overlay for me.

curl "YOURSTATION&format=json&units=e&apiKey=YOURAPIKEY" > "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt"
jq ".observations[0].imperial.temp" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\temp.txt"
jq ".observations[0].imperial.windSpeed" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\windSpeed.txt"
jq ".observations[0].imperial.windGust" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\windGust.txt"
jq ".observations[0].winddir" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\winddir.txt"
jq ".observations[0].humidity" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\humidity.txt"
jq ".observations[0].obsTimeLocal" "C:\Program Files (x86)\Blue Iris Tools\txt\conditions.txt" > "C:\Program Files (x86)\Blue Iris Tools\txt\observations.txt"

You can see it in action here:
 
Last edited:

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
142
Reaction score
22
Location
PA
I think for the average lay person, the easiest way is for Mike to reconfigure BIT on the next update with an input field so we can use our personal API keys and let BIT do the same thing its been doing, just making sure the # of calls per minute and per day are within the new limits set by WU which are 30 per minute and 1500 per day. I have confirmed with WU that the free personal API keys are here to stay for the foreseeable future.
 

CapeData

BIT Beta Team
Joined
Jul 27, 2016
Messages
55
Reaction score
10
Location
Florida
I think for the average lay person, the easiest way is for Mike to reconfigure BIT on the next update with an input field so we can use our personal API keys and let BIT do the same thing its been doing, just making sure the # of calls per minute and per day are within the new limits set by WU which are 30 per minute and 1500 per day. I have confirmed with WU that the free personal API keys are here to stay for the foreseeable future.
This method excludes those (me) that do not have a PWS :(
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
142
Reaction score
22
Location
PA
This method excludes those (me) that do not have a PWS :(
I think you can sign up for a free Wunderground account and acquire a free API key and pull the weather data from any other PWS or station that has an ID. Or if that is not possible, I am sure Mike is working on other options as well.

Edit: scratch that, I just confirmed you can't get a free API unless you have a PWS :(
 
Last edited:

dshehane

BIT Beta Team
Joined
Nov 1, 2015
Messages
17
Reaction score
5
Location
Auburn, CA
OK, reading through all this great material has jogged my old brain....before we had BIT we used the personal API Key to directly interface Blue Iris to WeatherUnderground to get the data for weather overlays. That is the good news. The bad news is that I am much older now and cannot remember how we did that! Is anyone old like me and used to do that and kept better notes? That probably still works and can at least get a few of us up and going while Mike figures something out for the long run.
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
142
Reaction score
22
Location
PA
I posted a project on Upwork.com and hired a developer to make me a custom app with a front end GUI that is going to use the API key and web link to write what I want to a text file the same as BIT does. Cost me forty bucks, I'll post it when its done.
 

TL1096r

IPCT Contributor
Joined
Jan 28, 2017
Messages
1,106
Reaction score
352
OK, reading through all this great material has jogged my old brain....before we had BIT we used the personal API Key to directly interface Blue Iris to WeatherUnderground to get the data for weather overlays. That is the good news. The bad news is that I am much older now and cannot remember how we did that! Is anyone old like me and used to do that and kept better notes? That probably still works and can at least get a few of us up and going while Mike figures something out for the long run.
yeah i hear you. over my head and at this point in life i just want that easy setup BIT provided! go mike go :)
 

th182

BIT Beta Team
Joined
Sep 11, 2018
Messages
255
Reaction score
213
Location
Minnesota
When it's time for testers send it my way!


Sent from my iPhone using Tapatalk
 

Edcfish

Getting the hang of it
Joined
May 31, 2019
Messages
56
Reaction score
43
Location
USA
dirk6665 maybe something like SiteShoter to save the image.
It can save images at an interval and crop them too if needed.
I gave it a real quick test and it seemed to work fairly well.
 

dirk6665

BIT Beta Team
Joined
Feb 13, 2015
Messages
12
Reaction score
3
Location
Pennsylvania
dirk6665 maybe something like SiteShoter to save the image.
It can save images at an interval and crop them too if needed.
I gave it a real quick test and it seemed to work fairly well.
Hi Edcfish,

I did try using SiteShoter (that was one of the image parsing apps I tried first) ... because it captures a web page using IE (basically a web screen shot) - it had a lot of erroneous extra padding (see sample below)

weather.jpg


As you can see, a whole lot of extra padding. I did instruct it to remove the toolbars - and I know you can crop the image... but like a lot of other people on this board - I am looking for the semi-easy route. I don't want to have to figure out all the X,Y coordinates. After 30+ years of being in the computer hobby, I once would have grabbed this by the horns and wrote my own code to parse the page and grab the .jpg -- but I have a honey do list that takes priority these days... seems like when you have too many high-tech toys you spend your entire free time updating / upgrading and performing general maintenance (on top of the other real-world activities) and just when you think you're done -- it's time to start all over again :banghead:;)

I really appreciate your response however, and if a simple solution doesn't manifest in the near future - maybe I'll get ambitious and start pixel counting lol.

Cheers!
 
Joined
Apr 3, 2017
Messages
2
Reaction score
3
Hi Edcfish,

I did try using SiteShoter (that was one of the image parsing apps I tried first) ... because it captures a web page using IE (basically a web screen shot) - it had a lot of erroneous extra padding (see sample below)

View attachment 53991

As you can see, a whole lot of extra padding. I did instruct it to remove the toolbars - and I know you can crop the image... but like a lot of other people on this board - I am looking for the semi-easy route. I don't want to have to figure out all the X,Y coordinates. After 30+ years of being in the computer hobby, I once would have grabbed this by the horns and wrote my own code to parse the page and grab the .jpg -- but I have a honey do list that takes priority these days... seems like when you have too many high-tech toys you spend your entire free time updating / upgrading and performing general maintenance (on top of the other real-world activities) and just when you think you're done -- it's time to start all over again :banghead:;)

I really appreciate your response however, and if a simple solution doesn't manifest in the near future - maybe I'll get ambitious and start pixel counting lol.

Cheers!
just set capture area to 180 x 180 and it is easy. I am still deciding on whether it really updates properly though
 

dirk6665

BIT Beta Team
Joined
Feb 13, 2015
Messages
12
Reaction score
3
Location
Pennsylvania
I was able to get a working solution with the Weather Underground API (listed under my member settings). Thanks to a long-time developer friend of mine, Blaize (https://www.blaize.net), I used this batch file placed in the Blue Iris Tools "txt" folder, combined with JQ and CURL for Windows (placed in the Windows Directory), and a task scheduler to call the batch file, I now have weather updates every 15 minutes. I used Blue Iris Tools to do the overlay for me.
Hi johndball,

So I took your programming example, downloaded CURL and JQ for Windows 64 and executed per your example. Works pretty well. Thank you for the idea and programming example. I've included a sample of my output in the image below. Still needs some fine-tuning on the alignment, but at least it's reflecting some of my weather data from my PWS.

security_screencap.JPG


73's
 

Mike

Staff member
Joined
Mar 9, 2014
Messages
2,726
Reaction score
2,035
Location
New York
No need to look for other weather solutions, there is an update coming out real soon. Everyone make sure you have auto-update enabled.

I'm deploying BIT with two weather options, one requiring WU station ID only, and another that allows you to input an API key along with the station ID.

Stay tuned, more info and update coming soon.
 

dirk6665

BIT Beta Team
Joined
Feb 13, 2015
Messages
12
Reaction score
3
Location
Pennsylvania
No need to look for other weather solutions, there is an update coming out real soon. Everyone make sure you have auto-update enabled.

I'm deploying BIT with two weather options, one requiring WU station ID only, and another that allows you to input an API key along with the station ID.

Stay tuned, more info and update coming soon.
WOOHOO!!!! :ipct:
 

Mike

Staff member
Joined
Mar 9, 2014
Messages
2,726
Reaction score
2,035
Location
New York
BIT is back in business! I just need a few people to test the main weather functionality as it's completely re-written and obviously pushed out faster than I would like. I will be posting the beta version in the BIT Beta section shortly. If you would like to be a beta tester, PM me.

I also added Dew Point, Solar Radiation & Precipitation Rate. I'll post everything new to the change log when I release.

1579371557942.png
 
Top