paddycarey / dweepy

A Simple Python client for Dweet.io
MIT License
60 stars 18 forks source link

Flakey listen_for_dweets_from on a RaspberryPi #5

Open mattbrailsford opened 9 years ago

mattbrailsford commented 9 years ago

I'm not sure if dweepy is intended for use on a RaspberryPi or not, but when I've tried to use listen_for_dweets_from, it seems really flakey at receiving dweets with it being a bit hit and miss as to whether they come through or not.

Has this been tested to run on a Pi? Or am I just using it for an unintended purpose?

paddycarey commented 9 years ago

Hrmm, it should work the same on a raspberry pi as it does elsewhere. Have you got a test case or some code I could use to reproduce and investigate?

mattbrailsford commented 9 years ago

It's kind of all intermingled with a bunch of other stuff I'm doing, but the dweepy bit is just bog standard

for dweet in dweepy.listen_for_dweets_from( thingId ):  
    if type(dweet) is not int:  
        processDweet(dweet)

I'll get a couple through, but then it just seems to stall. There also seems to be an issue with keeping it open that after a while of no messages you'll get an OpenSSL.SSL.ZeroResultError thrown (not sure if this is part of the issue, or whether that should be another issue).