On Tuesday, November 6, 2018 at 9:06:36 PM UTC-6, mwall wrote:
>
>
>
> apparently there are two different pcap implementations for python.
>
>
> https://stackoverflow.com/questions/2501138/module-object-has-no-attribute-pcapobject
>
> they are pypcap:
>
> https://pypi.org/project/pypcap/
>
> and pylibpcap:
>
> https://sourceforge.net/projects/pylibpcap/
>
> one of them has a pcapObject attribute, the other does not.  they both 
> import as pcap.
>
> this came up at least once before, so if you want to hack the interceptor 
> code a bit to make it work with either pcap implementation, a merge request 
> would be quite welcome :)
>
> btw, there is a weewx-sdr driver that will take the output from rtl_433.  
> works great with those $20 usb sdr dongles.
>
> m
>
 
I neglected to include in detail what I had specifically tried.

I did a  "pip uninstall pypcap" and "pip uninstall pylibpcap"
Then I installed one at a time and tested. I also tried with both installed.
I also tried with both but installed in the opposite order.

Then I changed pcap.pcapObject()  to pcap.pcap()  {interceptor.py line 305} 
and tried each one of the 6 combinations again.
As in, I ran just interceptor.py from the command line.
I didn't dig too deep in the interceptor code as my hole was rather wide at 
the time.

What version of pcap are you using?
I have, according to pip,
libpcap          1.0.0b14
pypcap           1.2.2

I'll re-repeat the whole weewx install again and retest changing only one 
variable at a time now that I know listen mode works fine.
My first pass with interceptor.py I stopped 1/2 way and flashed DD-WRT on a 
router, suspecting incorrectly that host iptables was funky with my newly 
compiled 4.19 kernel config. 
I did run wireshark with host iptables but results did not sink in or 
something. Every fun tangent deserves it's own fun tangent!
I can install Slackware 14.2 without any 'upgrades', in a VM, and retest 
but no promise on when...


Re: rtl_433
Yes yes yes and thank you for weewx-sdr.
Prolly everyone here with email option selected has access to proof of my 
ignorance.
It was not until after I posted earlier that I clicked on your name on 
github and noticed it was done.
In my deleted post earlier I asked for exactly what was already available.
I had not updated rtl_433 in a while and was still xlating old garbled 
output in my head when I dabbled with that aspect of it.
Now it's awesome. But I still need high 2.5e6 samplerate for indoor sensor. 
(it's too close to RX antenna)
I suspect you had a hand in filling in the gaps regarding WX sensor packets.
I may have even posted here long ago mentioning that possibility.
I do what I say, even in deleted posts, soooooo..........
I'm off to petition the 'internet' to make you "king of the internet for a 
day!"
;-)


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to