yep its in the script i like to watch it on the console

here is what it looks like if you want to see


On Sunday, October 16, 2016 at 12:51:43 AM UTC-5, Radar wrote:
>
> i have tried ngrep too but the only way i have got it on a single line is 
> to out put to a file. don't know why it won't put that to the console out 
> put.
> i think i read that the latest version of ngrep would work but haven't 
> tried it
>
> On Sunday, October 16, 2016 at 12:40:14 AM UTC-5, Jerome Helbert wrote:
>>
>> ok, I see what radar is doing... Most of the "magic" is going to happen 
>> in a perl script that he is piping the stream into. His tcpdump and stdbuf 
>> all pretty much give the same stuff as the ngrep/sed stuff I have been 
>> trying to use (spread across multiple lines still) and then he has a perl 
>> script that glues them all together.
>>
>> I already wasn't super thrilled about having to run the helper script 
>> outside the driver to sniff the data, and I really want to avoid a third 
>> step...
>>
>> I am brushing up on my iptables... hoping that some combination of a TEE 
>> and a DNAT or REDIRECT can sniff off the relevant stream and change the 
>> dest ip/port. That then feeds into the interceptor driver as normal. If I 
>> cant get that to work, I am thinking about bringing in the libpcap stuff I 
>> had added to my hackulink driver and eliminating the helper script all 
>> together.
>>
>> If I got the libpcap working, is that something we'd be interesting in 
>> bringing into the driver itself?
>>
>> On Saturday, October 15, 2016 at 3:04:22 PM UTC-5, mwall wrote:
>>>
>>> On Saturday, October 15, 2016 at 12:21:13 PM UTC-4, Jerome Helbert wrote:
>>>  
>>>
>>>> Two things here...
>>>>
>>>>    1. I need some way to get ngrep or tcpdump to piece together the 
>>>>    http stream properly... I tried to use sed, but since sed operates on a 
>>>>    line by line basis - it is not very easy (if possible) for it to remove 
>>>>    newlines...
>>>>    
>>>> have you tried radar's approach with stdbuf and strings? once the 
>>> fragments are reassembled, you should be able to send the data along using 
>>> curl.
>>>  
>>>
>>>>
>>>>    1. I seem to have found a bug with the version reporting... since 
>>>>    it reported a different version than what was in it the bridge went 
>>>> into 
>>>>    reprogramming mode and would *not* leave until it updated firmware 
>>>>    (undid the DNS Hijack, etc and let it re-update to 224 even though it 
>>>> was 
>>>>    already at that version)
>>>>
>>>> there is an (untested) fix for this at commit b27acc1 (interceptor 
>>> driver 0.13a)
>>>
>>> [Interceptor]
>>>     ...
>>>     firmware_version = 224
>>>
>>> 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.
Start Time: Sat, 15 Oct 2016 01:32:28 AM -0500

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|    Current Sensor Type: tower    |      Sensor Number: 00006045       |     
Sensor Location: Front Yard     |      Sensor Time: Sun, 16 Oct 2016 01:01:10 
AM -0500       |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Current Obs:                            
&id=24C86E01765D&mt=tower&sensor=00006045&humidity=68&tempf=42.7&baromin=28.51&battery=normal&rssi=3
                             |
|##########################################################################################################################################################################|
|    Pressure    :     28.51      |   Temperature  :      ----      |       UV  
     :        0        |   Visibility   :      10.0      |    Radiation   :     
 ----      |
|##########################################################################################################################################################################|
|    Location    : On Back Garage | On Back Fence  |   Front Yard   |    
Basement    | In Front Garage | In Back Garage |   Main Floor   | Basement Pump 
 | West, HouseOut |
|      Model     :     5N1x38     |     5N1x38     |     tower      |     tower 
     |      tower      |     tower      |     tower      |     ProIn      |     
ProOut     |
|    Sensor ID   :    00002273    |    00002094    |    00006045    |    
00009909    |    00009686     |    00007411    |    00000882    |    00005179   
 |    00003896    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Temp/Humid   :  44.4 °f/61%   |  43.4 °f/81%   |  42.7 °f/68%   |  70.1 
°f/43%   |   66.5 °f/45%   |  59.5 °f/50%   |  73.7 °f/15%   |  67.6 °f/54%   | 
 42.9 °f/75%   |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|    Dew Point   :    38.6 °f     |    37.1 °f     |    36.9 °f     |    61.5 
°f     |     58.3 °f     |    51.9 °f     |    69.3 °f     |    58.5 °f     |   
 36.9 °f     |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Wind Speed   :   3 180° (S)   |   2 180° (S)   |                |           
     |                 |                |                |                |     
           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Gust Speed   :     5 mph      |     3 mph      |                |           
     |                 |                |                |                |     
           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Rain/Daily   :  0.00 in/0.00  |  0.00 in/0.00  |                |           
     |                 |                |                |                |     
           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Probe/Check  :      0.00      |      0.00      |                |           
     |                 |                |                | Water Det(1)/0 |  
Liquid (2)/0  |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  Probe Reading :                |                |                |           
     |                 |                |                |    Dry (0)     |    
52.8 °f     |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  BAttery/RSSI  :   normal/75%   |   normal/50%   |   normal/75%   |   
normal/50%   |   normal/75%    |   normal/25%   |  normal/100%   |   normal/75% 
  |   normal/75%   |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|     Time 31    : 16 12:55:19 AM | 16 12:58:05 AM | 16 01:01:10 AM | 16 
12:59:41 AM | 16 12:59:39 AM  | 16 01:00:16 AM | 16 01:00:42 AM | 16 01:01:09 
AM | 16 01:00:37 AM |
|     Time 38    : 16 12:59:16 AM | 16 01:00:14 AM |                |           
     |                 |                |                |                |     
           |
|##########################################################################################################################################################################|
|    Location    :   Back Yard    |  Back Bedroom  |                |           
     |                 |                |                |   Mikes 3n1    |     
 n/a       |
|      Model     :    rain899     |     tower      |                |           
     |                 |                |                |      ----      |     
 ----      |
|    Sensor ID   :    00011488    |    00001626    |                |           
     |                 |                |                |      ----      |     
 ----      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Temp/Humid   :                |  69.6 °f/126%  |                |           
     |                 |                |                |   ----/----    |   
----/----    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|    Dew Point   :                |      ----      |                |           
     |                 |                |                |      ----      |     
 ----      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Wind Speed   :                :                |                |           
     |                 |                |                |      ----      |   
---- ----    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Rain/Daily   :   0.00/0.00    :                :                |           
     |                 |                |                |                |   
----/----    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   Probe/Check  :      0.00      :                :                |           
     |                 |                |                |                |   
----/----    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  Probe Reading :                :                :                |           
     |                 |                |                |                |     
 ----      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  Battery/RSSI  :   normal/50%   :   normal/75%   :                |           
     |                 |                |                |   ----/----    |   
----/----    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|     Time 31    : 16 01:00:08 AM : 16 12:39:28 AM :                |           
     |                 |                |                |      ----      |     
 ----      |
|     Time 38    :                :                :                |           
     |                 |                |                |                |     
 ----      |
|##########################################################################################################################################################################|
|                                                                               
                                                                                
           |
|##########################################################################################################################################################################|

Reply via email to