Page 1 of 1

xAP

Posted: Thu 13 Oct 2011 4:04 pm
by pete_c
Great application and great forum!

For years now I've been using 1-wire for my weather sensors; specficially the AAG anemometer. I never really was happy though with the wind speeds I would see (even after modifications). It seemed to be an inertia thing or debounce on the sensors thing. I continued though to use it over the years purchasing a second one and swapping them out every 3-4 years. That said I have extensive 1-wire networks configured. (3 9097's and 3 Temp08's). I use both direct connects and XAP to get data. (IE: using HB counters today for rain tipping bucket, two water meters, lightning sensor, etc). Outside I have multiple combo (temp/light/humidity) sensors that I utilize.

Been posting on WUnderground for a few years now.

http://icons.wunderground.com/webcamram ... 1318521566

Recently getting ready (already started) testing the "Open Offset" and the "Davis Vantage Vue" weather stations. I mounted the "Open Offset" in a place to test yesterday about 4 meters off the ground. The permanent location is kind of difficult to get to so I want to wait a bit. (its on the roof and easy to climb up; but I have to slide down the pitch of the roof to the ladder to climb down - no fun).

I have enabled XAP on the Cumulus application and getting data from the "Fine Offset" to USB to Server to Cumulus. I see the data fine.

I am just wondering if I can change the way I get the data in the XAP package? Maybe get outdoor humidity? And maybe get the Rain counts in inches versus cm?

Re: xAP

Posted: Thu 13 Oct 2011 4:15 pm
by steve
Unfortunately, the xAP format is 'hard coded' into Cumulus. Originally, I thought I was following some sort of standard, and then I was asked to add rainfall, but the "standard" didn't seem to cover this, and I was basically told to make something up. I could do the same for humidity at some point - but perhaps the way to go would be to allow the format of the message to be overridden using a text file containing web tags (in the same way that the default Twitter message can currently be overridden).

Re: xAP

Posted: Thu 13 Oct 2011 6:00 pm
by pete_c
Steve,

Thank-you for the information.

Yeah; as far as I know the XAP standards have been kind of "loose". I like that I get all of the data (most of it) from one XAP message versus one device one sentence (or xap message). I can do the conversion live from metric to decimal as I do that today before inserting it into the database.

Here's just one device and one sensor on the one device. Its gets a bit hectic with multiple devices.
xap-header
{
v=13
hop=1
uid=FF.0005:0028
class=xAPBSC.info
source=mcs.OneWire.ICS-HS-2:xapmcs1Wire_Combo Basement Humidity.DC000000F1D35C26.Humidity
}
input.state
{
State=OFF
DisplayText=<table><td><img alt='Humidity' src='/images/sensors/humidity.gif' height='16' width='16'><img alt=' ' src='/images/sensors/blank3.gif'></td><td valign='middle' align='left'>42%</td></table>
Text=42
}


I also utilize XPL which is kind of similiar to XAP only less rules and not used as much. I do two way communications with it though; building "events" which either poll or control hardware. IE: I run a python script / xpl/xap hub on a touch screen which run hardware stuff via the network "mothership" events.

I'm looking to "offload" the weather station / software from the mothership server to your application as I am kind of pushing it with 18 serial / 3 USB devices, about 700 or so variables and like maybe 400 events. IE: I have temperature and humidity sensors in every room in the house - just I guess because I could do it and its nice to see the differences in the temps, etc.

Thank-you for such a great application there Steve!

Attached is a snapshot of one of the touchscreens. I also do weather alerts; when one comes up from NOAA the screens go to a combo weather alert page, cam pictures and scrolls the NOAA weather alert on the bottom of the page. The screen is kind of a hodgepodge of flash and elements which are defined variables (like from Cumulus). The WUnderground cam shot is a composite made every 5 minutes or so encompassing web snapshots, radar, graph creation and variable weather instrument variables put together with a script which builds it. Works well and is fast.