pyaarlo icon indicating copy to clipboard operation
pyaarlo copied to clipboard

wrong version in setup.py

Open Zaschii opened this issue 3 years ago • 4 comments

in setup.py the version is still 0.7.0b7....

in cause of that pip --upgrade is not working.

could you please fix that.

Thanks an BR

Zaschii avatar Mar 20 '21 16:03 Zaschii

Sorry my fault, it seems that changes are installed ... only shown version is wrong in cause of this wrong parameter

Zaschii avatar Mar 20 '21 18:03 Zaschii

But btw. iam tryin to implement your snapshot example.... async-snapshot.

If the snapshoot loop is running, i always get "file cannot be written" and nothing happens.

how could i loop a snapshot and store the image file locally on my server?

Thx and BR

Zaschii avatar Mar 20 '21 18:03 Zaschii

I'll take a look at setup.py because I do have a bad habit of neglecting it. I'm going to bring some changes in sometime in the next few days so I'll make the version gets updated this time.

As for async-snapshot I didn't write that it was kindly provided by another contributor and it's been a while since I looked at at. But it should be relatively simple to adapt to write out the snapshot, the value in the callback is a binary array you can just write out to a file. So, inside snapshot_callback you can try:

                    with open("test.jpg", "wb") as img_file:
                        img_file.write(value)

twrecked avatar Mar 21 '21 16:03 twrecked

Another example to try would be examples/monitor-all, it gives you an idea of the callbacks you can get.

twrecked avatar Mar 24 '21 02:03 twrecked