On Sat, Mar 07, 2015 at 12:18:54PM -0500, we recorded a bogon-computron 
collision of the <[email protected]> flavor, containing:
> Good day, all - I have a XASTIR system set up and working well.
> 
> I also have a Rainwise MKIII weather station (see: http://www.rainwise.com/
> ) and the Ethernet interface that sends data to the Weather Underground.
> 
> I would like to add this same data to XASTIR but the Rainwise units are not
> supported.
> 
> I have searched the web for several days and not found anything that seems
> practical.
> 
> The most promising option may be to take the data from my unit which looks
> like this:
> 
> *2015/03/07 12:15:27 7.2 0090C2EE7B0F 192.168.1.19 255.255.255.0
> 192.168.1.1 1 English mph 36.0 37.0 14.0 57 88 55 30.14 30.26 30.13 0.03
> 0.0 247 3.0 202 66.0 67.0 62.0 *
> 
> and parse it with a script or Python program and use one of the existing
> weather station options, Davis, perhaps.
> 
> Unfortunately I have not been able to find the Davis file description and
> how I would enter that into the *Networked WX *option box.
> 
> Any help, guidance or suggestions would be appreciated.

Your best bet is probably to craft a daemon similar to either the Davis or
Lacrosse daemons tucked away in the Xastir source tree.  These listen on 
a network port for connections from clients, then for each connection 
throw a data packet at the listening client.

The LaCrosse daemon is already faking out Xastir by claiming to be a Davis, so
you might as well copy what it's doing.

The LaCrosse daemon (which I use) works by reading a mysql database to get
the weather info.  That database is populated by a different program (one
from the "open2300" suite).  But you needn't really go there.  If your
weather unit provides all the data Xastir needs, all your own daemon need
do is read that data and reformat it.

The data provided by the daemon to Xastir is basically already in APRS
weather report format, but Xastir doesn't just spit it back out --- it
parses the data and stores it internally, then reconstructs it when the time
comes to transmit.

The strings out of the daemon would look like this:

c158s004g...t053r000p000h35b10247xDvs

This is read as "wind course 158, speed 4knts, gust not computed.  Temperature
53 degrees F, no rain last hour, no rain last 24 hrs.  Relative humidity
35%, barometric pressure 1024.7mb, weather station type Davis."  The last
is a lie, because Xastir doesn't grok other station types.

If you can get a program to spit out data in that format to a network port,
you've got the problem solved, and can  connect Xastir to that network port.
The code for listening to the port for connections and maintaining client lists
is present in both the Davis and LaCrosse codes (db2APRS and open2300db2APRS,
respectively).  'twould just be a matter of gutting them to take out the
parts that read the mysql database and changing it to read your own station's
data somehow.

You'll have a fun coding project, for sure.  Especially if your station
doesn't provide some of the information that Xastir is expecting in exactly
the way that Xastir is expecting it.  But you can burn those bridges when
you come to them.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
 echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]
_______________________________________________
Xastir mailing list
[email protected]
http://xastir.org/mailman/listinfo/xastir

Reply via email to