Page 1 of 1

virtual weather station plugin

Posted: Mon Mar 29, 2010 1:18 am
by drmacchi
Hi all , i found this FREE script http://site.ambientweatherstore.com/homeseer/vwswx.zip that collects data from virtual weather station and displys them in homeseer. i don't know how i must use this script to see the data in homeseer devices status. thanks

TODAY UPDATE: i found that i have basic version of VWS, so the output file used in the script does not exist so i modified it (see BOLD)
then a created a recurring event that launch the script and some virtual devices with same identification used in script (w11, w12.....)

Now another issue, i see in the code something about a GIF, is this something with the icon used in STATUS page ? where can i get some icons like that (free , please :D )

sub main ()
'Get Data from VWS for use with Homeseer
dim f, fs
dim data1, day,month,year,hour,minute,temperature,humidity,tempvalue
Set fs=CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile("C:\vws\data\dbase.csv")
Do While NOT f.AtEndOfStream
data1 = f.ReadLine
Loop
f.close


temperature=hs.StringItem(data1,13,",")
humidity=hs.StringItem(data1,11,",")
tempvalue=hs.devicevalue ("w11")
hs.setdevicestring "W11",temperature & " degrees fahrenheit",true
hs.setdevicevalue "W11",temperature
'hs.SetDeviceString "W11","<img src='/icons/thermostats/"& tempvalue &".gif'>" & " " & temperature + " degrees fahrenheit"
hs.setdevicestring "W12",humidity & " %",true
hs.setdevicevalue "W12",humidity

end sub

Re: virtual weather station plugin

Posted: Mon Mar 29, 2010 10:05 pm
by pleaseask
Hi drmacchi,

Are you using a weather station that puts a csv file in the given directory?
If not, then it will never work.

If you want weahter gif , you can do a search on the internet with google. search for "weather icons"

Re: virtual weather station plugin

Posted: Mon Mar 29, 2010 11:02 pm
by drmacchi
That's it i have an Oregon that sends data to VWS and then Hs takes data from this csv file. Some icons ready to use with HS (size etc..) ?