Hello Matt,

Things seem to go ok for a few min but then the tcpdump stops going. It 
just holds and displays nothing more... It probably gets 50 or 60 of the 
"success": 1, "checkversion": "126" messages... We are getting really 
close. Still havnt seen the rain show up in the graphed plots but the logs 
for the 5N1 have rain entries in the POST statement.



sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | 
./combine-lines.pl | xargs -n 1 curl http://192.168.1.7:8080 -s -d
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 
262144 bytes
{ "success": 1, "checkversion": "126" }{ "success": 1, "checkversion": 
"126" }{ "success": 1, "checkversion": "126" }{ "success": 1, 
"checkversion": "126" }{ "success": 1, "checkversion": "126" }{ "success": 
1, "checkversion": "126" }{ "success": 1, "checkversion": "126" }{ 
"success": 1, "checkversion": "126" }{ "success": 1, "checkversion": "126" 
}{ "success": 1, "checkversion": "126" }{ "success": 1, "checkversion": 
"126" }{ "success": 1, "checkversion": "126" }{ "success": 1, 
"checkversion": "126" }{ "success": 1, "checkversion": "126" }{ "success": 
1, "checkversion": "126" }{ "success": 1, "checkversion": "126" }{ 
"success": 1, "checkversion": "126" }


tail -f /var/log/syslog |grep POST

pi@weather:/home/weewx $ tail -f /var/log/syslog |grep POST
Nov  5 18:56:31 weather weewx[2574]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=0&humidity=86&tempf=59.0&baromin=29.28&battery=normal&rssi=3
Nov  5 18:56:40 weather weewx[2574]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=48&tempf=71.9&baromin=29.28&battery=normal&rssi=3
Nov  5 18:56:44 weather weewx[2574]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00008384&humidity=31&tempf=81.4&baromin=29.28&battery=normal&rssi=2
Nov  5 18:57:01 weather weewx[2574]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=0&winddir=90&rainin=0.00&dailyrainin=0.20&humidity=86&tempf=59.0&dewptf=54&baromin=29.28&battery=normal&rssi=3
Nov  5 18:57:01 weather weewx[2574]: interceptor: ServerThread: POST: 
ID=KCATHOUS110&PASSWORD=XXXX&dateutc=now&action=updateraw&realtime=1&rtfreq=36&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=0&winddir=90&rainin=0.00&dailyrainin=0.20&humidity=86&tempf=59.0&dewptf=54&baromin=29.28&battery=normal&rssi=3
Nov  5 18:57:09 weather weewx[2574]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=0&humidity=86&tempf=59.0&baromin=29.28&battery=normal&rssi=2


tail -f /var/log/syslog
Nov  5 18:45:15 weather weewx[2331]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1*&id=24C86E06B15C&mt=tower&sensor=00008384*&humidity=31&tempf=81.1*&baromin=29.28&battery=normal&rssi=2*
Nov  5 18:45:15 weather rsyslogd-2007: action 'action 17' suspended, next 
retry is Sat Nov  5 18:46:45 2016 [try http://www.rsyslog.com/e/2007 ]
Nov  5 18:45:15 weather weewx[2331]: interceptor: MainThread: raw data: 
dateutc=now&action=updateraw&realtime=1*&id=24C86E06B15C&mt=tower&sensor=00008384*&humidity=31&tempf=81.1*&baromin=29.28&battery=normal&rssi=2*
Nov  5 18:45:15 weather weewx[2331]: interceptor: MainThread: parse failed 
for 
dateutc=now&action=updateraw&realtime=1*&id=24C86E06B15C&mt=tower&sensor=00008384*&humidity=31&tempf=81.1*&baromin=29.28&battery=normal&rssi=2*:
 
invalid literal for float(): 81.1*
Nov  5 18:45:15 weather weewx[2331]: interceptor: MainThread: raw packet: 
{'usUnits..': 1, 'dateTime..': 1478396715, 'usUnits': 1, 'dateTime': 
1478396715}
Nov  5 18:45:15 weather weewx[2331]: interceptor: MainThread: mapped 
packet: {'usUnits': 1, 'dateTime': 1478396715}
Nov  5 18:45:15 weather weewx[2331]: reportengine: Running reports for 
latest time in the database.
Nov  5 18:45:15 weather weewx[2331]: reportengine: Running report 
StandardReport
Nov  5 18:45:15 weather weewx[2331]: reportengine: Found configuration file 
/home/weewx/skins/Sofaskin/skin.conf for report StandardReport
Nov  5 18:45:16 weather weewx[2331]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1+&id=24C86E06B15C&mt=5N1x38&sensor=00002179+&windspeedmph=0&humidity=85+&tempf=59.9+&baromin=29.28&battery=normal&rssi=3+
Nov  5 18:45:16 weather weewx[2331]: interceptor: MainThread: raw data: 
dateutc=now&action=updateraw&realtime=1+&id=24C86E06B15C&mt=5N1x38&sensor=00002179+&windspeedmph=0&humidity=85+&tempf=59.9+&baromin=29.28&battery=normal&rssi=3+
Nov  5 18:45:16 weather weewx[2331]: interceptor: MainThread: parse failed 
for 
dateutc=now&action=updateraw&realtime=1+&id=24C86E06B15C&mt=5N1x38&sensor=00002179+&windspeedmph=0&humidity=85+&tempf=59.9+&baromin=29.28&battery=normal&rssi=3+:
 
invalid literal for float(): 59.9+
Nov  5 18:45:16 weather weewx[2331]: interceptor: MainThread: raw packet: 
{'usUnits..': 1, 'dateTime..': 1478396716, 'usUnits': 1, 'dateTime': 
1478396716}
Nov  5 18:45:16 weather weewx[2331]: interceptor: MainThread: mapped 
packet: {'usUnits': 1, 'dateTime': 1478396716}
Nov  5 18:45:16 weather weewx[2331]: cheetahgenerator: using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
'weewx.cheetahgenerator.Extras']
Nov  5 18:45:25 weather weewx[2331]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=14&id=24C86E06B15C&mt=tower&sensor=000126944&humidity=48&tempf=71.94&baromin=29.28&battery=normal&rssi=34
Nov  5 18:45:25 weather weewx[2331]: interceptor: MainThread: raw data: 
dateutc=now&action=updateraw&realtime=14&id=24C86E06B15C&mt=tower&sensor=000126944&humidity=48&tempf=71.94&baromin=29.28&battery=normal&rssi=34
Nov  5 18:45:25 weather weewx[2331]: interceptor: MainThread: ignored 
parameter realtime=14
Nov  5 18:45:25 weather weewx[2331]: interceptor: MainThread: ignored 
parameter action=updateraw
Nov  5 18:45:25 weather weewx[2331]: interceptor: MainThread: raw packet: 
{'barometer.000126944.24C86E06B15C': 29.28, 
'sensor_id.000126944.24C86E06B15C': '000126944', 
'dateTime.000126944.24C86E06B15C': 1478396725, 
'usUnits.000126944.24C86E06B15C': 1, 'rssi.000126944.24C86E06B15C': 8.5, 
'bridge_id.000126944.24C86E06B15C': '24C86E06B15C', 'dateTime': 1478396725, 
'humidity.000126944.24C86E06B15C': 48.0, 
'sensor_type.000126944.24C86E06B15C': 'tower', 
'battery.000126944.24C86E06B15C': 0, 'usUnits': 1, 
'temperature.000126944.24C86E06B15C': 71.94}
Nov  5 18:45:25 weather weewx[2331]: interceptor: MainThread: mapped 
packet: {'barometer': 29.28, 'usUnits': 1, 'dateTime': 1478396725}
Nov  5 18:45:32 weather weewx[2331]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1;&id=24C86E06B15C&mt=tower&sensor=00008384;&humidity=31&tempf=81.1<&baromin=29.28&battery=normal&rssi=2<
Nov  5 18:45:32 weather weewx[2331]: interceptor: MainThread: raw data: 
dateutc=now&action=updateraw&realtime=1;&id=24C86E06B15C&mt=tower&sensor=00008384;&humidity=31&tempf=81.1<&baromin=29.28&battery=normal&rssi=2<
Nov  5 18:45:32 weather weewx[2331]: interceptor: MainThread: parse failed 
for 
dateutc=now&action=updateraw&realtime=1;&id=24C86E06B15C&mt=tower&sensor=00008384;&humidity=31&tempf=81.1<&baromin=29.28&battery=normal&rssi=2<:
 
invalid literal for float(): 81.1<
Nov  5 18:45:32 weather weewx[2331]: interceptor: MainThread: raw packet: 
{'usUnits..': 1, 'dateTime..': 1478396732, 'usUnits': 1, 'dateTime': 
1478396732}
Nov  5 18:45:32 weather weewx[2331]: interceptor: MainThread: mapped 
packet: {'usUnits': 1, 'dateTime': 1478396732}
Nov  5 18:45:35 weather weewx[2331]: interceptor: ServerThread: POST: 
dateutc=now&action=updateraw&realtime=1>&id=24C86E06B15C&mt=5N1x31&sensor=00002179>&windspeedmph=0&winddir=45>&rainin=0.00&dailyrainin=0.20&humidity=85&tempf=59.9&dewptf=55>&baromin=29.28&battery=normal&rssi=3>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: raw data: 
dateutc=now&action=updateraw&realtime=1>&id=24C86E06B15C&mt=5N1x31&sensor=00002179>&windspeedmph=0&winddir=45>&rainin=0.00&dailyrainin=0.20&humidity=85&tempf=59.9&dewptf=55>&baromin=29.28&battery=normal&rssi=3>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: ignored 
parameter realtime=1>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: unrecognized 
parameter dewptf=55>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: ignored 
parameter rainin=0.00
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: parse failed 
for 
dateutc=now&action=updateraw&realtime=1>&id=24C86E06B15C&mt=5N1x31&sensor=00002179>&windspeedmph=0&winddir=45>&rainin=0.00&dailyrainin=0.20&humidity=85&tempf=59.9&dewptf=55>&baromin=29.28&battery=normal&rssi=3>:
 
invalid literal for float(): 45>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: skipping rain 
measurement of 0.2: no last rain
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: raw packet: 
{'dateTime': 1478396735, 'usUnits..': 1, 'temperature..': 59.9, 
'windspeed..': 0.0, 'dateTime..': 1478396735, 'usUnits': 1, 'rainfall..': 
None, 'barometer..': 29.28}
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: mapped 
packet: {'barometer': 29.28, 'inTemp': 59.9, 'usUnits': 1, 'dateTime': 
1478396735}
Nov  5 18:45:35 weather weewx[2331]: interceptor: ServerThread: POST: 
ID=KCATHOUS110&PASSWORD=XXXX&dateutc=now&action=updateraw&realtime=1>&rtfreq=36>&id=24C86E06B15C&mt=5N1x31&sensor=00002179>&windspeedmph=0&winddir=45>&rainin=0.00&dailyrainin=0.20&humidity=85&tempf=59.9&dewptf=55>&baromin=29.28&battery=normal&rssi=3>
Nov  5 18:45:35 weather weewx[2331]: interceptor: MainThread: raw data: 
ID=KCATHOUS110&PASSWORD=00000000&dateutc=now&action=updateraw&realtime=1>&rtfreq=36>&id=24C86E06B15C&mt=5N1x31&sensor=00002179>&windspeedmph=0&winddir=45>&rainin=0.00&dailyrainin=0.20&humidity=85&tempf=59.9&dewptf=55>&baromin=29.28&battery=normal&rssi=3>

I did notice some of the posts that have the Weather Underground PASSWORD 
have XXXX in them. I wrote out the one that had the password with 00000000. 
Not sure if you where hiding it in the logs or if something else is going 
on...


Thanks,
Brad






On Saturday, November 5, 2016 at 5:21:00 PM UTC-7, mwall wrote:
>
> On Saturday, November 5, 2016 at 8:06:26 PM UTC-4, Brad Tucker wrote:
>>
>> Unfortunately once I add curl into the mix nothing happens:
>>
>
> so close!  i'll bet the perl script is buffering.
>
> try putting this after the 'use strict' line in the perl script:
>
> $| = 1;
>
> (that is supposed to be the 'less cryptic' way of doing it!  gotta love 
> perl :)
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to