virtual weather station plugin

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

Post Reply
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

virtual weather station plugin

Post 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
pleaseask
Member
Member
Posts: 84
Joined: Fri May 23, 2008 9:33 pm
Location: Netherlands

Re: virtual weather station plugin

Post 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"
Homeseer 3 Pro on Windows 10 / Zwave

Edwin.
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: virtual weather station plugin

Post 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..) ?
Post Reply

Return to “Homeseer Scripts Forum”