Skip to content

Collects and displays data from a Lacrosse Technology C84612 Wireless Professional Weather Center

Notifications You must be signed in to change notification settings

benmargolin/Weather-ERF-Gateway-1000U

 
 

Repository files navigation

Weather-ERF-Gateway-1000U

Collects and displays data from a Lacrosse Technology C84612 Wireless Professional Weather Center

These are the files I use to capture data from my Lacross Technologies C84612 Weather Station using the GW1000U ERF-100 Gateway I'm running my webserver on a Synology Diskstation DS410j. Some of the PHP in request.breq may need to be modified to work on yours. I had to modify keckec's original code to get mine working.

You can see a discussion about how this was created here: http://www.wxforum.net/index.php?topic=14299

Much of the database design comes from SkyDvr. Much of the request.breq comes from keckec. Much of the weather.html and wsdata.php comes from Scott_A.

I have not tested the registration functionality, which comes from keckec's original work. I highly recommend that you register the weather station through Lacrosse Technologies first.

Use the Advanced Gateway Setup program from Lacrosse to redirect the data to your webserver.

Near the top of the request.breq file are important configuration options:

OF_RTG: send replies to gateway. You almost always want this set. OF_WDB: store data to database. Until you get the station serial information from Lacrosse, you want to leave this off OF_DBG: if this flag is not set, there will be no debug information sent to wstation.log at all. See DBG_LVL below. OF_WUG: send data to Weather Underground. You must have the account information set in the database first. OF_LAC: relay the data to box.weatherdirect.com. This can be very useful at first in getting the serial number, and later for comparing your responses with theirs. OF_RES: send the responses from above instead of your own. This effectively makes your webserver a proxy DBG_LVL: OF_DBG must be set for this to send ouput to the wstation.log file 0: only critical errors 1: packet activity, useful to confirm that it's working 2: detail, useful for debugging but fills the log fast

You will need to get the station serial number by sniffing packets coming from Lacrosse. You can use the output flags to help with this. You will then need to add this information to the stations table. Note that for some reason the MAC address has its second octet zeroed out, e.g. my MAC ends with 8C09913D but the gateway sends 8009913D.

Note on the records table: you must populate it yourself with a query of your own. The request.breq script only updates records that exist in that table, it won't fill in missing ones. This is so that only meaningful records are kept. For example, minimum rainfall and wind are pretty useless, so there are no records for those.

Please send comments to the forum topic above, so that everyone can benefit from the discussion.

weather.htm displays data from your database. current.html, temperature.html, humidity.html, wind.html, rainfall.html, rainlong.html, and pressure.html display just parts, helpful when modifying the charts to suit your tastes. weather.htm whacks the database pretty hard, and reloads every 5 minutes, so you might not want to sit on it all the time.

About

Collects and displays data from a Lacrosse Technology C84612 Wireless Professional Weather Center

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 55.4%
  • JavaScript 44.6%