NOTE: LWC is no longer actively developed or supported. We recommend WeatherSnoop - which is actively being developed and supported and Indigo 5 ships with a plugin for it. We'll leave this post up for legacy purposes but I'm no longer supporting this plugin.
---------------------------------------
All,
I just uploaded a new plug-in to the file library that will accept the Custom CGI post from Lightsoft Weather Center (LWC) and put that data into Indigo variables. I chose LWC because it was the only commercial Mac product (that I could find) that supports my LaCrosse 2308.
Here's the full readme:
LWC Indigo Web Server (IWS) Plug-in (requires 4.0.2 or later)
This plug-in is a little different than most IWS plug-ins - it doesn't generate a viewable page. Rather, it's a way to get data IN to Indigo. The Lightsoft Weather Center (LWC) is software that connects your Mac to hardware weather stations (Davis Vantage & Envoy, Monitor, Wizard and La Crosse WS23xx currently) as well as Internet based weather sources. Read more about it here:
http://www.lightsoft.co.uk/LWC/index.html
As far as I know, it's the only commercial Mac-based solution that supports the LaCrosse station, which happens to be the one I have. I wanted to get data into Indigo similar to the NOAA scripts so I could use it primarily to determine if/when to run the sprinklers, but also because, well, it's COOL.
Installation
To install this plugin drag the "lwc" folder to the following location:
/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/
Usage
To use this plugin, just configure LWC's On-Line->Custom CGI with the following URL:
http://host:port/lwc/importData?
I also think it's useful to check the "Send Time As Local" checkbox so you can see the date/timestamp in local time. The plug-in will do the rest. Because there's quite a few variables in LWC that aren't sent to this custom cgi yet, I wanted to take an approach that would not require me to update the plug-in whenever LWC was revised to send more data. So, I decided to just automagically create variables for ALL passed in data. The plugin will update/create the following variables as of 5/13/09 (will create if they don't exist, or just update them if they do):
LWC_windgustmph
LWC_tempf
LWC_raininch
LWC_windgustmph_10m
LWC_windspeedmph
LWC_windgustdir_10m
LWC_humidity
LWC_winddir
LWC_date
LWC_windspeedmphav_10m
LWC_baroinch
LWC_dewptf
LWC_rain24hinch
LWC_windgustdir
When you first tell LWC to start sending the data, you may notice a slight delay between when you click the "Start" button in LWC and an update in Indigo - I think it's just taking a little time for the server to process the multiple requests for each new variable. You'll also notice an Error line in the log when it first creates the variables - that's normal so don't worry about it. As Lightsoft adds more data to the GET url line, you may occasionally see that error for each new element.
Known Issues
None
EDIT - Matt figured out a little hacklet that removed the unsightly entries in the Event Log for each var update - I need to learn more Python. YAY!