• brumm

    @cvp When you use smb.SMBConnection it is a synchronous connection and you can send only one command after another. So it shouldn't be necessary to flush the buffer, but there could be a small gap until the cache of the router is empty. However I'm not an expert, so I would still recommend to use an USB key with a LED.

    posted in Pythonista read more
  • brumm

    @cvp I guess that your internet router has no (or a small) read/write buffer. Before you lose data I would recommend to use a USB key with a LED, to get sure that your router has enough time to write all data.

    posted in Pythonista read more
  • brumm

    So you are recording ~10GB data each day!? 10ms * 40bytes * 3 sensors * 100 = 117kB/s * 86400s = 9,66GB/d => Sorry I'm curious, what will you do with this huge amount of data? For processing you probably like to switch to another platform...

    posted in Pythonista read more
  • brumm

    @cvp Please feel free to upload it to your own github site, if you like. It's okay for me.

    posted in Pythonista read more
  • brumm

    I'm very happy that the code was useable.

    posted in Pythonista read more
  • brumm

    @cvp oh yes, this is my first try. I think it should be a good start. Let me know when I can support you. And I saw there's another dependency - pyasn1, but it is also python3 ready.

    posted in Pythonista read more
  • brumm

    @cvp: My first library was pysmb, but then I switched to impacket, because of this issue. However it is fixed and pysmb is Python 3 ready. Of course you have to change the smb calls... Do you like to try it?

    posted in Pythonista read more
  • brumm

    Don't know if it is a good idea to convert the image from ui to pil, so you can use Image.getpixel(xy). However if you like to try it, here is ui2pil. Haven't used set_blend_mode so far, but when I have time, I will read this

    posted in Pythonista read more
  • brumm

    @cvp: Sounds good, but at the moment I'm thinking about writing an ObjC tutorial. I need a basic knowledge to write ObjC code, because currently I'm just trying until it works...

    posted in Pythonista read more
  • brumm

    I would recommend to use Image.getpixel(xy) and change the color.
    Path.hit_test(x,y) checks only the object bounds, not if a line is hit.
    So if you are working only with the coordinates, you have to do a lot of calculations to check for a real hit.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!