Author Topic: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100  (Read 139302 times)

0 Members and 1 Guest are viewing this topic.

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #350 on: July 17, 2014, 03:23:51 PM »
On the subject of rainfall, how are you guys detecting bucket tips from sensor and/or history data packets? I think the data available from the gateway is:
1-hour amount, 24-hour amount, total since reset, last reset time, and rainfall during last history period.
Ideally, I'd like to save a timestamp for each tip of the bucket, but that doesn't seem to be easily done. Any ideas?

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #351 on: July 18, 2014, 04:11:51 PM »
how are you guys detecting bucket tips from sensor and/or history data packets?

I just use the difference between the current rain since reset value from the last packet.  Sounds simple, but my code must take account of the possibility that a reset occurred between packets.  I also use this data to calculate running weekly and 30 day rain totals, since the given definition of weekly and monthly data doesn't work for me.  I can show you my code, if you're interested.
« Last Edit: July 18, 2014, 04:14:59 PM by KennKong »

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #352 on: July 19, 2014, 03:14:12 PM »
I just use the difference between the current rain since reset value from the last packet.  Sounds simple, but my code must take account of the possibility that a reset occurred between packets.  I also use this data to calculate running weekly and 30 day rain totals, since the given definition of weekly and monthly data doesn't work for me.
Thanks for the input. The user reset does add complexity. I keep thinking there might be a way to remotely reset things via one of the packets sent to the gateway.

Something I might try is to use the rainfall value from the history records to tally rainfall. The php code could monitor the 1-hour rain value in the SDP, and when it first registers rain shorten the history interval to 5 minutes or even 1 minute. Maybe even adjust the history interval according to how hard it's raining. When the 24-hour rain in the SDP goes to zero, set the history interval back to its normal value.
« Last Edit: July 19, 2014, 03:16:25 PM by keckec »

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #353 on: July 19, 2014, 05:06:36 PM »
Something I might try is to use the rainfall value from the history records to tally rainfall.
I have a problem with the rainfall data in the history packets, in that it doesn't agree with the value from the SDPs.  For example, this morning we had a brief light rain.  The SDP reported 0.25 mm, but the history reported 0.125 mm.  Because I'm currently using data from both in my rainfall graphs, it introduces noise.  Look at the rainfall graph today on my weather page, page removed.  (Please don't sit on that page, it refreshes every 5 minutes and really whacks the database for about 15 seconds.)
« Last Edit: August 01, 2014, 09:18:51 PM by KennKong »

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #354 on: July 21, 2014, 11:01:17 AM »
I have a problem with the rainfall data in the history packets, in that it doesn't agree with the value from the SDPs.  For example, this morning we had a brief light rain.  The SDP reported 0.25 mm, but the history reported 0.125 mm.  Because I'm currently using data from both in my rainfall graphs, it introduces noise.
Are you sure about the history scaling? I think the history rainfall field is in bucket tips, with each tip being about 0.01", or 0.25mm.

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #355 on: July 21, 2014, 03:23:17 PM »
I came across a way to change the interval for sending SDP packets, from the 14:01 packet sent in response to the 0100 packet. In reply 322 of this thread, I wrote that bytes 0x14 and 0x1f should both be set to the same values. That was wrong. It turns out that byte 0x14 controls the SDP interval and 0x1f controls the history record interval. The description of the history interval in reply 322 still holds for byte 0x1f.
Byte 0x14 sets the approximate maximum interval between SDPs to one minute greater than the value of the byte. So the default value of 3 sets the SDP interval to 4 minutes, and a value of 0 sets a 1-minute interval. If this value is set more than about 15 minutes, the GW often sends additional SDPs in between. It also appears that a history packet is not sent unless an SDP is sent first. So for long SDP intervals and short history intervals, history packets will contain more than one history record. There's probably more interaction with other things yet to be discovered.
« Last Edit: July 21, 2014, 04:13:54 PM by keckec »

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #356 on: July 21, 2014, 06:59:20 PM »
I came across a way to change the interval for sending SDP packets, from the 14:01 packet sent in response to the 0100 packet.
I've been controlling the SDP frequency by specifying the number of seconds  between packets (currently using 300) in the last two bytes of the 18-byte 70:00 reply to the 00:70 packets.  I've been setting 0x3 in both bytes 0x14 and 0x1f of the 14:01 packets.

Therefore, according to your analysis, I'm telling the gateway to send SDP packets every 4 minutes "your" way, and every 5 minutes "my" way (which was your way, since I copied your code to start with).  And I'm getting SDPs every five minutes, and history every 15.  So apparently, the 70:00 reply is controlling?

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #357 on: July 21, 2014, 07:24:28 PM »
Are you sure about the history scaling? I think the history rainfall field is in bucket tips, with each tip being about 0.01", or 0.25mm.
It's been raining here for an half-hour or so:  These are my data
Code: [Select]
Time  Ptype Stype Value
19:09 2 10 6.19
19:05 2 10 4.9
19:01 2 10 4.38
19:00 9 10 0
18:58 2 10 4.12
18:57 2 10 3.87
18:53 2 10 3.35
18:49 2 10 2.58
18:45 2 10 2.32
18:45 9 10 0
18:42 2 10 2.32
18:41 2 10 2.06
18:30 9 10 0.01
18:21 2 10 0
18:17 2 10 0
18:15 9 10 0.01
18:13 2 10 0
18:09 2 10 0
18:05 2 10 0
18:01 2 10 0
17:49 2 10 0
17:45 2 10 0
Packet type 2 are SDPs, and type 9 are history values.  All the sensor types are current rain hour on my system.  The values are as reported by the weather station, no scaling except for the decimal points (i.e. whatever units they are, I not converting them to anything).
As you can see, the history packets were reporting something before the SDPs did.  And while the SDP values continued to rise, the history values were 0's.  I only see history values of 0, 1, 2 and 3 in my data, so clearly these are not bucket tips.

Update: until we can figure these out, I'm removing them from my datasets.
Update 2: I only see values 0, 1, and 2.  There may have been history packets before I started saving them that had values of 3, but I can't prove that now.

Update 3: Based upon a review of the rainfall values I'm getting vs. the readings from a standard rain guage, I think a much closer interpretation of the rainfall values is that they are in thousandths of an inch.

Update 4: Based upon a comparison of the current rain since reset value of 15.996 in the SDP vs. 0.62 in. on the display, it seems that that the rain values are indeed in units of 0.01mm.
« Last Edit: July 21, 2014, 11:35:11 PM by KennKong »

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #358 on: July 21, 2014, 11:49:18 PM »
Very interesting reading.

Thanks to your hard work I was able to tweek my system into sending data to WU via the a Gateway-sending-to-a-Proxy which is my Oracle Linux VM running the PHP Request code from: https://github.com/lowerpower/LaCrosse
and it works very well.

Based on your recent posts, I tried playing with the settings for the interval it sends in Weather data...not much luck.  Still runs around 5 minute intervals.

I am very interested in testing new settings, if you need someone to try them out.

Dave

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #359 on: July 22, 2014, 01:49:12 AM »
Based on your recent posts, I tried playing with the settings for the interval it sends in Weather data...not much luck.  Still runs around 5 minute intervals.

I am very interested in testing new settings, if you need someone to try them out.
If you want to try something, set byte 0x14 of the 14:01 reply packet to 0. On mine, that changes the interval of the sensor data packet to 1 minute. For reference, the history interval setting in byte 0x1f of the same packet is 0x03 (15 minutes), and byte 0x11 of the 70:00 packet is 0xf0 (240 seconds). I believe this value sets the interval of the 00:70 "ping" packet, which I think is used as a keep-alive to maintain the connection.

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #360 on: July 22, 2014, 09:52:58 AM »
I have changed these settings, again this morning.  Do you have to reset the Gateway after changing these to get the 1 minute interval to work?

I noticed that the access.log shows the change of the 240 seconds.  I played with [byte 0x11 of the 70:00] and moved it to 20 seconds, the log changed, then 30 seconds and the logging reflected that change to.  Log keep alive length is 18.  The 38 byte log entry is the Weather data packet.

This below is a sample of the size...not the time changes.

Code: [Select]
192.168.2.206 - - [22/Jul/2014:09:34:41 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:34:42 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:34:44 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:36:05 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:37:26 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:38:34 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:09:38:43 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:38:46 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:38:47 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:38:49 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"

So the changes are in place in the PHP code, and I will post later what the results are.

Dave

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #361 on: July 22, 2014, 10:06:17 AM »
Intervals are more frequent but seems like some duplication maybe, access log and php log below:

Code: [Select]
192.168.2.206 - - [22/Jul/2014:09:49:51 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:09:49:59 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:50:02 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:50:03 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:50:05 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:53:56 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:09:54:04 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:54:07 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:54:08 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:54:10 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:55:03 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:09:55:12 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:55:15 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:55:16 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:55:18 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:58:10 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:09:58:18 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:58:21 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:58:22 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:09:58:24 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:10:02:15 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:10:02:23 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:10:02:26 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:10:02:27 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:10:02:29 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"


PHP log below:
Code: [Select]
write weather underground : 2014-07-22 09:49:51 : &tempf=74.12&humidity=83&dewptf=69.77&windspeedmph=5.34&windgustmph=6.89&winddir=154&baromin=28.12&rainin=0.00&dailyrainin=0.03&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 09:53:56 : &tempf=74.12&humidity=83&dewptf=69.77&windspeedmph=2.45&windgustmph=6.89&winddir=115&baromin=28.12&rainin=0.00&dailyrainin=0.03&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 09:55:03 : &tempf=74.30&humidity=83&dewptf=69.95&windspeedmph=1.56&windgustmph=2.67&winddir=187&baromin=28.12&rainin=0.00&dailyrainin=0.03&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 09:58:10 : &tempf=74.48&humidity=82&dewptf=69.84&windspeedmph=3.34&windgustmph=8.23&winddir=127&baromin=28.11&rainin=0.00&dailyrainin=0.03&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 10:02:15 : &tempf=74.30&humidity=82&dewptf=69.67&windspeedmph=4.00&windgustmph=6.89&winddir=153&baromin=28.12&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #362 on: July 22, 2014, 10:59:22 AM »
Interesting. Here is my log with byte 0x14 set to 0. Doesn't look like duplicates, the data is different in each SDP.

Code: [Select]
192.168.1.16 - - [22/Jul/2014:07:49:17 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:49:20 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 0 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:49:29 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:49:30 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:50:38 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 0 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:50:47 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:50:48 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:51:56 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 0 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:52:05 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:52:06 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:53:14 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 0 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:53:23 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:53:24 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:54:32 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 0 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:54:41 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.1.16 - - [22/Jul/2014:07:54:42 -0700] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"

I wonder if it could be different firmware versions in the station. I think there is a way to get the version, but don't remember.

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #363 on: July 22, 2014, 11:09:58 AM »
Maybe my PHP code is old?  I downloaded it from the GITHUB lowerpower and the code is about a month old.

https://github.com/lowerpower/LaCrosse

Are there updates available?


Dave

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #364 on: July 22, 2014, 01:00:30 PM »
Could this be resources related on the host executing the PHP code?
 - I could add another virtual CPU if you think it would help.

The latest access log:
Code: [Select]
192.168.2.206 - - [22/Jul/2014:12:30:27 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:30:35 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:30:38 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:30:39 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:30:41 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:34:32 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:34:40 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:34:43 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:34:44 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:34:46 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:38:37 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:38:45 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:38:48 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:38:49 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:38:51 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:42:42 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:42:50 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:42:53 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:42:54 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:42:56 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:45:48 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:45:56 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:45:59 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:46:00 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:46:02 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:46:56 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:47:04 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:47:07 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:47:08 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:47:10 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:50:02 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:50:10 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:50:13 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:50:14 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:50:16 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:54:07 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 - "-" "-"
192.168.2.206 - - [22/Jul/2014:12:54:15 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:54:18 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:54:19 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 38 "-" "-"
192.168.2.206 - - [22/Jul/2014:12:54:21 -0400] "PUT http://box.weatherdirect.com/request.breq HTTP/1.1" 200 18 "-" "-"

Here is the PHP Log:

Code: [Select]
write weather underground : 2014-07-22 11:42:26 : &tempf=75.92&humidity=79&dewptf=70.38&windspeedmph=1.78&windgustmph=4.00&winddir=97&baromin=28.11&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 11:45:32 : &tempf=75.92&humidity=81&dewptf=70.96&windspeedmph=1.78&windgustmph=4.00&winddir=217&baromin=28.11&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 11:50:35 : &tempf=76.28&humidity=81&dewptf=71.3&windspeedmph=2.45&windgustmph=4.00&winddir=148&baromin=28.11&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 11:54:41 : &tempf=76.64&humidity=81&dewptf=71.65&windspeedmph=0.89&windgustmph=5.34&winddir=205&baromin=28.11&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 11:57:47 : &tempf=77.36&humidity=77&dewptf=71.17&windspeedmph=4.22&windgustmph=5.34&winddir=232&baromin=28.11&rainin=0.00&dailyrainin=0.01&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:01:52 : &tempf=77.54&humidity=78&dewptf=71.64&windspeedmph=3.34&windgustmph=5.34&winddir=176&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:05:57 : &tempf=77.72&humidity=78&dewptf=71.82&windspeedmph=0.67&windgustmph=1.33&winddir=165&baromin=28.11&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:10:02 : &tempf=78.26&humidity=79&dewptf=72.63&windspeedmph=1.56&windgustmph=2.67&winddir=183&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:14:07 : &tempf=78.44&humidity=78&dewptf=72.51&windspeedmph=0.89&windgustmph=1.33&winddir=226&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:18:12 : &tempf=78.44&humidity=78&dewptf=72.51&windspeedmph=1.33&windgustmph=1.33&winddir=308&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:22:17 : &tempf=78.62&humidity=79&dewptf=72.98&windspeedmph=3.11&windgustmph=4.00&winddir=222&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:26:22 : &tempf=78.80&humidity=78&dewptf=72.86&windspeedmph=3.34&windgustmph=5.34&winddir=247&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:30:27 : &tempf=78.80&humidity=78&dewptf=72.86&windspeedmph=1.33&windgustmph=1.33&winddir=180&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:34:32 : &tempf=78.98&humidity=77&dewptf=72.73&windspeedmph=3.11&windgustmph=4.00&winddir=105&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:38:37 : &tempf=79.16&humidity=77&dewptf=72.9&windspeedmph=0.67&windgustmph=1.33&winddir=253&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:42:42 : &tempf=79.34&humidity=75&dewptf=72.45&windspeedmph=0.67&windgustmph=1.33&winddir=95&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:45:48 : &tempf=79.16&humidity=76&dewptf=72.59&windspeedmph=0.44&windgustmph=1.33&winddir=211&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:46:56 : &tempf=79.16&humidity=76&dewptf=72.59&windspeedmph=2.45&windgustmph=4.00&winddir=207&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:50:02 : &tempf=79.16&humidity=76&dewptf=72.59&windspeedmph=1.33&windgustmph=2.67&winddir=281&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success
write weather underground : 2014-07-22 12:54:07 : &tempf=78.62&humidity=75&dewptf=71.77&windspeedmph=2.45&windgustmph=6.89&winddir=97&baromin=28.10&rainin=0.00&dailyrainin=0.00&softwaretype=phpLaxWeatherBro : returned:success

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #365 on: July 22, 2014, 03:29:07 PM »
Hmmm. I hadn't seen the GITHUB page. The code is older than what I'm using. I just posted a newer version of my request.breq at
http://www.keckec.com/weather/request.breq

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #366 on: July 22, 2014, 04:09:23 PM »
If you want to try something, set byte 0x14 of the 14:01 reply packet to 0. On mine, that changes the interval of the sensor data packet to 1 minute. For reference, the history interval setting in byte 0x1f of the same packet is 0x03 (15 minutes), and byte 0x11 of the 70:00 packet is 0xf0 (240 seconds). I believe this value sets the interval of the 00:70 "ping" packet, which I think is used as a keep-alive to maintain the connection.
I can confirm the meaning of byte 0x14 in the 14:01 packet.  I set mine to 1, 3 and 4 and got sensor data packets approximately every 2, 4 and 5 minutes.
Now I'm going to test bytes 0x10-0x11 in the 70:00 packets.

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #367 on: July 22, 2014, 05:20:20 PM »
I've decided to make my versions of the various files I'm using available for inspection. DO NOT USE THESE ON YOUR SYSTEM WITHOUT SCRUTINIZING THEM CAREFULLY
weather.tgz

Also, I've been experimenting with the bytes at the end of the 70:00 packet, and they don't seem to have any effect on any of the incoming packets, so far.

Offline mycal

  • Member
  • *
  • Posts: 24
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #368 on: July 22, 2014, 11:00:52 PM »

The Lowerpower github is my archive, I have not added the history stuff that the others have been doing,
I just took the modifications that keckec did and added them and the weather underground push code.

At some point I will update it, but I've got pay projects I need to get done first....

From what I know the 70:00 Packet only controls the gateway ping, not the weather station data flow.  So you will get more packets, but not any more SDP packets with this setting.

I think kennkong is right about the SDP flow is based on the 14:01 packet.

-M




Maybe my PHP code is old?  I downloaded it from the GITHUB lowerpower and the code is about a month old.

https://github.com/lowerpower/LaCrosse

Are there updates available?


Dave

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #369 on: July 23, 2014, 12:43:48 AM »
From what I know the 70:00 Packet only controls the gateway ping, not the weather station data flow.  So you will get more packets, but not any more SDP packets with this setting.

I think kennkong is right about the SDP flow is based on the 14:01 packet.
First, give credit where credit is due; keckec discovered that the 14:01 packet byte 0x14 controls the SDP flow.

I can now confirm that the last two bytes of the 70:00 packet control the frequency of the 00:70 packets, except that other packets seem to trigger them, too.  So setting my value to 900 (15 minutes) meant I was still getting one after every 01:00 packet, which seem to happen after every SDP.  So you can speed them up some, but there's a lower limit to how few you get.

Offline KennKong

  • Member
  • *
  • Posts: 30
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #370 on: July 23, 2014, 12:53:03 AM »
I'm refactoring my code to handle multiple stations.  Why am I doing this when I have just one?  Maybe I'm a masochist, but probably just a perfectionist.  Whatever!

Would someone care to arrange to send their data my way for a limited time?  At first, I'd like to test getting data from an unsolicited station, to make sure that my code rejects it.  Then I'd need to get some information (like the MAC address and serial number data that Lacrosse sends) so that I could set it up to accept data.

I can forward the packets back to you, so that you don't lose any data.  Any such test would only be for an hour or so, anyway.  Any volunteers?

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #371 on: July 23, 2014, 02:53:19 PM »
Hmmm. I hadn't seen the GITHUB page. The code is older than what I'm using. I just posted a newer version of my request.breq at
http://www.keckec.com/weather/request.breq

Excellent, I downloaded it and looked it over in the few free minutes I had this afternoon.

-- Wish I could start testing with it now.  Unfortunately, I need to focus on my billable work for a while.

Dave

Offline skydvrz

  • Senior Contributor
  • ****
  • Posts: 224
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #372 on: July 25, 2014, 07:22:44 PM »
I need some brave souls to download, install and test the next version of SkySpy.  Feedback is welcome!

Make sure you back up any existing installation and data before installing the new version.

Here is a link to the users manual.  I recommend reading it prior to starting the installation.  As usual, the installer will put another copy in your installation folder.

https://www.dropbox.com/s/6htjoyuxkgezia9/ReadMe2.pdf

Here is a link to the installer:

https://www.dropbox.com/s/4qpv7destypx726/SkySpyInstall.exe

Offline keckec

  • Senior Member
  • **
  • Posts: 62
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #373 on: July 26, 2014, 12:48:29 AM »
Would someone care to arrange to send their data my way for a limited time?  At first, I'd like to test getting data from an unsolicited station, to make sure that my code rejects it.  Then I'd need to get some information (like the MAC address and serial number data that Lacrosse sends) so that I could set it up to accept data.

I can forward the packets back to you, so that you don't lose any data.  Any such test would only be for an hour or so, anyway.  Any volunteers?
OK, I'll bite. I sent you a PM.

Offline dld121

  • Member
  • *
  • Posts: 9
Re: LaCrosse Wireless Internet Gateway Model GW1000U ERF-100
« Reply #374 on: July 29, 2014, 02:15:10 PM »
I need some brave souls to download, install and test the next version of SkySpy.  Feedback is welcome!

Make sure you back up any existing installation and data before installing the new version.

Here is a link to the users manual.  I recommend reading it prior to starting the installation.  As usual, the installer will put another copy in your installation folder.

https://www.dropbox.com/s/6htjoyuxkgezia9/ReadMe2.pdf

Here is a link to the installer:

https://www.dropbox.com/s/4qpv7destypx726/SkySpyInstall.exe

I downloaded it (never used it before)  installed MYSQL DB first...

Not enough info provided in the Readme to get it to work.

Found the utility from a few months ago.  ran it, didn't work.

Found the SQL statements in the install directory, didn't work.

uninstalled.