RRinTetons
IS-IT--Management
I have weather instruments on six towers on our aerial tramway. I can get the data from those instruments by opening a connection from HyperTerminal via Winsock to an IPAddressortnumber and sending the string STX,T,ETX (HEX 02 2C 54 2C 03). The data comes back in a delimited block of text that can be parsed into wind speed & direction, temp, barometric pressure, etc. New data is available every 3 seconds. The goal is to collect he data for access by anyone who wants to use it.
One data block looks like:
The data is:
Label: A - F for the six towers
WindDirection: in degrees
WindSpeed:
WindSpeedUnits: M = m/s,
SpeedOfSound: Used to correct wind speed measurement
Temp: in Celsius
Staus: (60 = 'good')
I want that data in a table in SQL Server 2005 or 2008. What opinions are there on the best way to open the connection, get the data and put it in a var or ?? in SQL Server ready for parsing?
-
Richard Ray
Jackson Hole Mountain Resort
One data block looks like:
Code:
A,292,000.46,M,+343.18,+019.23,60,07
B,157,000.71,M,+344.38,+021.28,62,0D
C,344,003.24,M,+338.64,+011.55,60,06
D,032,003.33,M,+338.14,+010.71,60,05
E,032,006.45,M,+337.05,+008.89,60,01
F,351,003.32,M,+338.18,+010.78,60,05
The data is:
Label: A - F for the six towers
WindDirection: in degrees
WindSpeed:
WindSpeedUnits: M = m/s,
SpeedOfSound: Used to correct wind speed measurement
Temp: in Celsius
Staus: (60 = 'good')
I want that data in a table in SQL Server 2005 or 2008. What opinions are there on the best way to open the connection, get the data and put it in a var or ?? in SQL Server ready for parsing?
-
Richard Ray
Jackson Hole Mountain Resort