- Rust
- Golang
- Python
- Kotlin
cloudsftp / resnap Goto Github PK
View Code? Open in Web Editor NEWTake screnshots of your reMarkable tablet over SSH
License: MIT License
Take screnshots of your reMarkable tablet over SSH
License: MIT License
I have a remarkable 3.4 and I need to absolutely take screenshots from it.
Since this project looks kinda dead because it's not receiving updates anymore and to work it requires
lz4
installed on the remarkable (which requires Toltec -> requires a remarkable <= v2.15.1.1189), I just made a PR to reStream that doesn't need lz4
installed on the remarkable that allows users to screenshot the device.
You can find the PR here, it's not merged yet (probably because reStream is kinda dead too) but it allows 3.x users to take screenshots and record their screen without installing toltec
Is there any way to use run this product in windows from a shortcut or executable. I have WSL installed but I want to use reSnap as part of obsidian-remarkable so I need an executable to point the plugin at.
Thought for some mac support, to get -x (copying the pngs to clipboard) using a function like this:
#function test
clip_img() {
osascript -e 'on run argv' \
-e 'set currentDir to do shell script "pwd"' \
-e 'set the clipboard to (read POSIX file (POSIX path of (currentDir as text & (first item of argv) )) as JPEG picture)' \
-e 'end run' "/$1"
# osascript -e 'clipboard info'
}
and changing the snap file to this:
244 # Copy to clipboard
245 if [ "$copy_to_clipboard" = "true" ]; then
246 echo "Copying to clipboard"
247 clip_img $realpath "${output_file}"
248 fi
(Note this will only work if you specify a file with -o)
I see error feh ERROR: Can't open X display. It *is* running, yeah?
Any help?
Hi There, Great tool you have here and I'm finding some solid value with it.
One quick request would be to give the option via a flag to prepend the name of the Remarkable Notebook onto the filename for easier automation down the line.
Thanks.
This was brought to my attention first in #12
At the time it did not happen for me. Now the picture is too dark for me too.
Procedure:
scp lz4.arm [email protected]:~/lz4
ssh [email protected] 'chmod +x ~/lz4
scp head.arm [email protected]:~/head
ssh [email protected] 'chmod +x ~/head
apt install liblz4-tool
(all ok)apt install ffmpeg
(all ok)apt install feh
(all ok)chmod +x reSnap.sh
and ./reSnap.sh
What can I do to make it work?
I am on ubuntu. i scp the head and lz4 to /home/root of my device and i have lz4, ffmpeg, and feh installed on my laptop.
~/p/reSnap ./reSnap.sh
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
configuration: --prefix=/usr --extra-version=4ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
sh: line 2: /home/root/head: No such file or directory
Input #0, rawvideo, from 'pipe:':
Duration: N/A, bitrate: 525657 kb/s
Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 1872x1404, 525657 kb/s, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> png (native))
Output #0, image2, to '/tmp/reSnap/snapshot_2021-06-30_20-11-42.png':
Metadata:
encoder : Lavf58.45.100
Stream #0:0: Video: png, gray, 1404x1872, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc58.91.100 png
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
feh WARNING: /tmp/reSnap/snapshot_2021-06-30_20-11-42.png does not exist - skipping
feh: No loadable images specified.
See 'man feh' for detailed usage information
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.