I just need the outside temperature. Is there a plugin that'll do that for free?
Announcement
Collapse
No announcement yet.
Is there a free weather plugin?
Collapse
X
-
Yeah, that's overkill for me. I ended up writing a little script to do the job. Here it is in case anyone else wants a free quick way to pull in weather info (I only need outside temperature right now, but this can easily be modified to pull in other info as well) -
If anyone's interested, I'll provide more information, but you basically create a Virtual Device with a single status and note down its Reference ID. Then, create an Event to run as often as you want to execute the below script (update the first few lines to suit your needs) -
Code:Imports System.Diagnostics Sub Main(parm as object) Dim DevRef AS Integer = 338 'Virtual Device Reference ID Dim sLocation AS String = "91423,us" 'Your location Dim sAPPID AS String = "xxxxxxxxxxxxxxx" 'Get this API key from http://openweathermap.org/api Dim sTempUnit AS String = "F" Dim oProcess As New Process() Dim oStartInfo As New ProcessStartInfo("PowerShell.exe", "-Command ""(Invoke-WebRequest -usebasicparsing 'api.openweathermap.org/data/2.5/weather?q=" + sLocation + "&APPID=" + sAPPID + "&mode=json&units=imperial' | ConvertFrom-Json).main | select temp | ft -hide""") oStartInfo.UseShellExecute = False oStartInfo.RedirectStandardOutput = True oProcess.StartInfo = oStartInfo oProcess.Start() Dim sOutput As String Using oStreamReader As System.IO.StreamReader = oProcess.StandardOutput sOutput = oStreamReader.ReadToEnd() End Using hs.writelog("Temperature", sOutput) hs.SetDeviceValueByRef(DevRef,CDbl(sOutput),true) hs.SetDeviceString(DevRef,sOutput + " º" + sTempUnit,true) End Sub
Comment
-
I am looking for some weather plugin as well but want a bit more out of it... current conditions, couples days in advance weather and weather alerts. I'd like to use an existing plugin but no way I am paying $20 a month for an API key. (I think that's how it works anyway).
Nice script. I see it's pulling from http://openweathermap.org/api Would I be able to get what I want from Open Weather for free you think?
I am evaluating Homeseer at the moment. Only just got it up and running so still playing around with it. Hoping it can replace my Smartthings hub.
Comment
-
Actually, I found this PowerShell script here
http://michaelhalpin.azurewebsites.n...-co-ordinates/
Now I have to figure out how to get the data into Homeseer
Comment
-
You don't need a $0/month subscription for Weat.herXML. It can be used with free sources. Since you are in Canada, there's also ChrisGo's Environment Canada plugin. See here: https://forums.homeseer.com/showthread.php?t=169462 and here: https://sites.google.com/site/b123cdd/.
Cheers
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Originally posted by sparkman View PostYou don't need a $0/month subscription for Weat.herXML. It can be used with free sources. Since you are in Canada, there's also ChrisGo's Environment Canada plugin. See here: https://forums.homeseer.com/showthread.php?t=169462 and here: https://sites.google.com/site/b123cdd/.
Cheers
Al
It is also mostly a set and forget plugin that seems quite stable most of the time.
It does not hurt that the Author is closely tied to Homeseer (the company), and is quite responsive to issues._______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
Originally posted by aWanderer View PostActually, I found this PowerShell script here
http://michaelhalpin.azurewebsites.n...-co-ordinates/
Now I have to figure out how to get the data into Homeseer
Even though I use WeatherXML, I find this script more accurate. Very simple to setup...
https://board.homeseer.com/showthread.php?t=151302
RobertHS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.
Comment
Comment