Blue Iris Tools - Weather Overlay, Watchdog & more!

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

Jeff Elzy

n3wb
Joined
Sep 9, 2019
Messages
10
Reaction score
3
Location
Sullivan, IL
It'd be nice if this just could grab data from the PWS. WeatherCloud might work well.
 

pupsik22

n3wb
Joined
Jan 8, 2020
Messages
5
Reaction score
2
Location
Canada
BIT is not going anywhere, I will release another version that uses a different weather provider.

Let's hear some suggestions regarding free weather API solutions that are readily available for the masses. WU was perfect for this because you didn't even need an API key.
Hi Mike
Appreciate BIT very much, thank you for the tool. In regards to weather integration I use AcuRite PC Connect. Would be nice to have a option to use that. See screenshot.
Thank you
 

Attachments

dshehane

BIT Beta Team
Joined
Nov 1, 2015
Messages
17
Reaction score
5
Location
Auburn, CA
Following....
Hope we have a pws weather overlay solution. I am removing my "dead" overlays for now. I really like the idea of getting data from our own PWS but that may too complicated without a neutral interface. It was nice while it lasted....
 

pupsik22

n3wb
Joined
Jan 8, 2020
Messages
5
Reaction score
2
Location
Canada
Following....
Hope we have a pws weather overlay solution. I am removing my "dead" overlays for now. I really like the idea of getting data from our own PWS but that may too complicated without a neutral interface. It was nice while it lasted....
Agreed....
 

johndball

n3wb
Joined
Jan 9, 2020
Messages
5
Reaction score
3
Location
Mineral, VA
BIT is not going anywhere, I will release another version that uses a different weather provider. Let's hear some suggestions regarding free weather API solutions that are readily available for the masses. WU was perfect for this because you didn't even need an API key.
For those of us using Davis Instruments equipment, via Weatherlink.com, we have the option to use their API. Not sure if this helps:
Another option would be to scrape a page, or something similar, that displays summary weather data (like here: Weather Conditions - Mineral, VA - Southside - 900 Mineral AV).

Not sure if those ideas help. I'm not a developer... I work in INFOSEC. ;-)
 

Mike

Staff member
Joined
Mar 9, 2014
Messages
2,726
Reaction score
2,035
Location
New York
I am thinking of using wunderground or weather.com and scraping the page for the data. Been researching it and it seems like it should work, be stable and not require any API key or anything like that. I plan on diving into testing this weekend.

Anyone care to share a link to their town / city's current weather (particularly outside of the US)? Similar to this


Code:
https://weather.com/weather/today/l/10001
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
145
Reaction score
22
Location
PA
If you mean pull forecast data from a weather.com city's official report, that's a no go for me and I am sure for others as we want the data from our own stations where the cameras and stations are located.
 

marklyn

Getting the hang of it
Joined
Jun 13, 2015
Messages
203
Reaction score
44
Someone mentioned getting the data from weatherlink (Davis Instruments)... is there some documentation I find use to do that ?
 

crw030

Known around here
Joined
Apr 26, 2016
Messages
764
Reaction score
429
Location
Colorado
I don't have a weather station, but if there was a low end model that could do temp, wind, humidity I'd consider putting one up just so Blue Iris had accurate and timely updates. WUnderground has been hit of miss with me, with certain "stations" going offline and having to switch to others.
 

Mike

Staff member
Joined
Mar 9, 2014
Messages
2,726
Reaction score
2,035
Location
New York
It is nice having information from our own weather stations, but the best bet to get BIT's weather system working right away is to use a centralized weather system, like weather.com or wunderground. Something that can take the traffic, is global and reliable. I will however add options to use different weather stations afterward.
 

Ssayer

BIT Beta Team
Joined
Jan 5, 2016
Messages
443
Reaction score
225
Location
SE Michigan USA
I don't have a weather station, but if there was a low end model that could do temp, wind, humidity I'd consider putting one up just so Blue Iris had accurate and timely updates. WUnderground has been hit of miss with me, with certain "stations" going offline and having to switch to others.
There is a program called, "Weather Display". The plus is that it will save info from a large number of possible PWS including some cheaper ones in a format that you can easily macro into BI. The negative is that it would be an added program always running on your computer.

It was what I used before Mike and BIT.
 

XativaDavid

BIT Beta Team
Joined
Oct 2, 2019
Messages
4
Reaction score
2
Location
Spain
I am thinking of using weather.com and scraping the page for the data. Been researching it and it seems like it should work, be stable and not require any API key or anything like that. I plan on diving into testing this weekend.

Anyone care to share a link to their town / city's current weather (particularly outside of the US)? Similar to this


Code:
https://weather.com/weather/today/l/10001
From a village in Spain: Barxeta, Valencia Province, Spain Weather Forecast and Conditions - The Weather Channel | Weather.com
But it doesn't tally with my Davis station's observations, located only 700 metres from the village.
 

Mike

Staff member
Joined
Mar 9, 2014
Messages
2,726
Reaction score
2,035
Location
New York
Post some URL's to wunderground weather data for your PWS that are outside of the US.
 

pupsik22

n3wb
Joined
Jan 8, 2020
Messages
5
Reaction score
2
Location
Canada
There is a program called, "Weather Display". The plus is that it will save info from a large number of possible PWS including some cheaper ones in a format that you can easily macro into BI. The negative is that it would be an added program always running on your computer.

It was what I used before Mike and BIT.
Hi.
How would you macro it into BI. Any instructions would be appreciated.

Thank you
 

Ssayer

BIT Beta Team
Joined
Jan 5, 2016
Messages
443
Reaction score
225
Location
SE Michigan USA
Hi.
How would you macro it into BI. Any instructions would be appreciated.

Thank you
It makes text files (aka "temp.txt", "wind.txt" etc.) much like BIT does and you macro them in exactly the same way. The program costs $60 though and it has a learning curve. Knowing how good Mike is with this stuff, I'd think it best to hold off and give him a chance. ;)
 

CapeData

BIT Beta Team
Joined
Jul 27, 2016
Messages
55
Reaction score
10
Location
Florida
Following - hope something can be worked-out.
Before BIT, I was using the script below. Of course WU won't work now but I'm getting an error on line 66 using METAR source (used to work). Can anyone help?

EDIT:

Fixed the script: line 66 64 should be:
Code:
Set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")
I created three separate .vbs scripts for temperature, humidity, and wind, and had them generate (using windows task scheduler) three .txt files which are linked to BI Macros.
See the resulting display @ gatorcam.sunandshore.com

Code:
'This file pulls XML data from a source, extracts info and writes it to a file.

'METAR example - Vero Beach Airport (KVRB)
strStationID = "KVRB"

'**** If you are using a METAR weather station instead of Weather Underground set METAR = True
'**** METAR weather stations are aviation stations and a 4 characters long
'METAR = False
METAR = True

'choice of values:

'temp_c sample: 10.1
'strValuetoExtract = "/current_observation/temp_c"

'temp_f sample: 50.2
'strValuetoExtract = "/current_observation/temp_f"

'relative_humidity sample: 73
'strValuetoExtract = "/current_observation/relative_humidity"

'wind_string sample: calm
'strValuetoExtract = "/current_observation/wind_string"

'temperature_string sample: 50.2 F (10.1 C)
strValuetoExtract = "/current_observation/temperature_string"

'wind_mph  sample: 0.0
'strValuetoExtract = "/current_observation/wind_mph"

'precip_today_in sample: 0.0
'strValuetoExtract = "/current_observation/precip_today_in"

'precip_today_metic sample: 0.0 cm
'strValuetoExtract = "/current_observation/precip_today_metric"

'windchill_string sample: don't know
'strValuetoExtract = "/current_observation/windchill_string"

'windchill_f sample: don't know
'strValuetoExtract = "/current_observation/windchill_f"

'windchill_c sample: don't know
'strValuetoExtract = "/current_observation/windchill_c"

strFolderName = "c:\"
strFilename = "temperature.txt"

If METAR then
     URL = "http://w1.weather.gov/xml/current_obs/" & strStationID & ".xml"
Else
     URL = "http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=" & strStationID
End If

'You probably do not want to mess with the stuff below this line

Set WshShell = WScript.CreateObject("WScript.Shell")
Set http = CreateObject("Microsoft.XmlHttp")
http.open "GET", URL , FALSE
http.send ""
'WScript.Echo http.responseText

Set objXmlDoc = CreateObject("MSXML2.DomDocument")
objXmlDoc.async = True
objXmlDoc.loadXML http.responseText
If (objXmlDoc.parseError.errorCode <> 0) Then
   Dim myErr
   Set myErr = objXmlDoc.parseError
   MsgBox("You have error " & myErr.reason)
Else
   'MsgBox objXmlDoc.xml
End If

set objNode = objXmlDoc.selectSingleNode(strValuetoExtract)
set myFSO=CreateObject("Scripting.FileSystemObject")
set WriteStuff = myFSO.CreateTextFile(strFoldername + strFilename,true)
WriteStuff.WriteLine(objNode.Text)
WriteStuff.Close

Const ForReading = 1
Const ForWriting = 2

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\temperature.txt", ForReading)
strFile = objFile.ReadAll
objFile.Close

intLength = Len(strFile)
strEnd = Right(strFile, 2)

If strEnd = vbCrLf Then
    strFile = Left(strFile, intLength - 2)
    Set objFile = objFSO.OpenTextFile("C:\temperature.txt", ForWriting)
    objFile.Write strFile
    objFile.Close
End If

set WriteStuff = Nothing
Set myFSO = Nothing
set WshShell = nothing
set http = nothing
set objXmlDoc = Nothing
set objNode = Nothing
 
Last edited:
Top