www.homeseer.com    
 

Go Back   HomeSeer Message Board > 3rd Party Plug-Ins/Scripts > Plug-ins by Author > Click Here for List of Author Forums > HiTec Homes Plug-Ins > VWS

VWS Discussion area for the VWS (Virtual Weather Station) plug-in by Hi-Tec Home

Reply
 
Thread Tools Display Modes
  #1  
Old January 13th, 2018, 05:24 PM
williamwyoung williamwyoung is offline
Seer
 
Join Date: Nov 2006
Location: Seattle
Posts: 58
VWS info Data is older than 15 minutes

There are fewer weather stations that work with the Virtual Weather Station software and print out a vws file that works with your program so I wrote a little perl program that takes my Acurite weather station data and outputs it into a VWS file in the same order as my old Oregon Scientific WMR200 did. The weather data come across fine and Homeseer picks up all the information correctly.

My issue is that your software prints the following in the homeseer log every second:

Jan-13 1:10:28 PM VWS Info Data is older than 15 minutes, Check VWS


Is there a software switch (or script switch) in your program to stop this error message from being written to the log?

Or could you tell me how it is determining if the data is older than 15 minutes so I can have my perl program write the file more often with the update time information?

Thanks
Reply With Quote
  #2  
Old January 15th, 2018, 12:01 PM
lpitman's Avatar
lpitman lpitman is offline
Seer Master
 
Join Date: Jan 2003
Location: Colorado Springs
Posts: 936
Quote:
Originally Posted by williamwyoung View Post
There are fewer weather stations that work with the Virtual Weather Station software and print out a vws file that works with your program so I wrote a little perl program that takes my Acurite weather station data and outputs it into a VWS file in the same order as my old Oregon Scientific WMR200 did. The weather data come across fine and Homeseer picks up all the information correctly.

My issue is that your software prints the following in the homeseer log every second:

Jan-13 1:10:28 PM VWS Info Data is older than 15 minutes, Check VWS


Is there a software switch (or script switch) in your program to stop this error message from being written to the log?

Or could you tell me how it is determining if the data is older than 15 minutes so I can have my perl program write the file more often with the update time information?

Thanks
I will look at my code, it's been awhile since I've worked on it. Should be easy to determine though. I am out of town at the moment, but have my laptop with me.
__________________
-Larry

A member of "The HA Pioneer Group", MyWebSite

WHS 2011 Server - SageTV, HS 2.2.29 with 9TB Shared Hard Disk.

Plugins:
Ocelot, MitsubishiTV, DenonAVR, DirecTV, DVDMovies, HAI-Thermostat, HAI, Hauppauge, lrpSpeak, MediaPlayer, Rain8Net, Sprinklers, UIRT, VWS.

Hardware:
Intel 3.0Ghz CPU with 12Gb. Ram and 2Tb SATA HD. Davis Inst. VantagePro II, AB8SS, Rain8Net, RC80 Thermostat, OmniProII, Ocelot, X10, UPB, HD-200 Extenders.
Reply With Quote
  #3  
Old January 15th, 2018, 02:51 PM
lpitman's Avatar
lpitman lpitman is offline
Seer Master
 
Join Date: Jan 2003
Location: Colorado Springs
Posts: 936
The first few coma delimited entries in the CSV file are as follows:

Code:
  ' The following represents the data order
            ' in the realtime CSV delimited file
            CSVVersion = CSng(Fields(0))
            DataYear = CShort(Fields(1))
            DataMonth = CShort(Fields(2))
            DataDay = CShort(Fields(3))
            DataHour = CShort(Fields(4))
            DataMinute = CShort(Fields(5))
            DataSecond = CShort(Fields(6))
and my code checks for this freshness of data.

Code:
Try
            ' Determine the freshness of the data
            WxDate = New DateTime(DataYear, DataMonth, DataDay, DataHour, DataMinute, DataSecond)

            If WxDate < DateAdd("n", -15, Now()) Then  ' If the data is over 15 minutes old

                ' A value of 2 means that our data is old
                clsHelper.UpdateHSDevice(gZoneNames(0), "Wx Date: **CSV Data OLD** " & WxDate.ToString(), 2, False)

                If Not gDevelop Then
                    clsHelper.OutputHSLog("Data is older than 15 minutes, Check VWS", NORMAL_LOGGING, "Info", COLOR_BLACK)
                End If

            Else
                ' A value of 1 means that we have reasonably current data
                clsHelper.UpdateHSDevice(gZoneNames(0), "Wx Date: " & WxDate.ToString(), 1, False)
            End If

        Catch ex As Exception
            clsHelper.OutputHSLog("Exception Error in ProcessCSVData()---DataAge: " & ex.Message, MANDATORY_LOGGING, "Error", COLOR_RED)
        End Try
Hope this helps you.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Works for 6 minutes... then nothing for 6 minutes... repeat HaveADay UltraECM HSPI 6 October 27th, 2015 03:53 PM
Repeating HS Log Msg - Data is older than 15 minutes, Check VWS Jerry S VWS 2 June 18th, 2015 11:07 PM
X minutes after sunset, Y minutes before sunrise Madcodger HomeSeer General Discussion Area 17 November 29th, 2011 03:33 PM
minutes before sunrise and minutes after sunset not working? purezerg HS2 / HSPRO 4 January 27th, 2009 05:14 AM
Data sorce for weatherPlug info? W4ZOO WeatherPLUG (3P) 3 July 5th, 2005 05:19 PM


All times are GMT -4. The time now is 01:56 PM.


Copyright HomeSeer Technologies, LLC