Hi MikeBIT 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: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.
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.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.
From a village in Spain: Barxeta, Valencia Province, Spain Weather Forecast and Conditions - The Weather Channel | Weather.comI 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
Today’s and tonight’s weather forecast, weather conditions and Doppler radar from The Weather Channel and Weather.comweather.com
Hi.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.
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.Hi.
How would you macro it into BI. Any instructions would be appreciated.
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?
Fixed the script: line
6664 should be:
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.Code:
Set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")
See the resulting display @ gatorcam.sunandshore.com
'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