KindleCalendar icon indicating copy to clipboard operation
KindleCalendar copied to clipboard

Screenshots streaming

Open StarNumber12046 opened this issue 3 years ago • 6 comments
trafficstars

The screenshot.png file should be a screenshot sent from a device. If the device is not the host, the screenshot should be streamed to the raspberry (maybe over HTTP?)

StarNumber12046 avatar Oct 09 '22 11:10 StarNumber12046

As of now, the screenshot to be "pinned" on the Kindle is copied over the Pi via scp right after taking the screenshot, like so: scp -i ~/.ssh/id_rsa_raspi ~/screenshot.png [email protected]:KindleCalendar/

On the Pi is a file watcher looking for changes so it will notice the new screenshot and pin it to the Kindle.

A perhaps better way to do this is to send the screenshot to the Pi via HTTP upload or something like this, feel free to implement this if you can and want.

morrolinux avatar Oct 09 '22 12:10 morrolinux

I used a python script to upload it and allowed me to take custom regions for the screenshot

StarNumber12046 avatar Oct 13 '22 06:10 StarNumber12046

I will make it more prod-ready and open a PR

StarNumber12046 avatar Oct 13 '22 06:10 StarNumber12046

Taking a custom region and uploading it doesn't require a custom program, a custom launcher or key binding is more than enough for that. What I'm more interested in seeing is an http upload method implemented on the node web server, so we can get rid of the scp upload

morrolinux avatar Oct 13 '22 07:10 morrolinux

Yes, it should be useful. Also, my implementation is cross os-compatible

StarNumber12046 avatar Oct 13 '22 07:10 StarNumber12046

Close this issues

LightYagami28 avatar Oct 17 '23 17:10 LightYagami28