Code Monkey home page Code Monkey logo

resnap's Introduction

Hi there, I'm Fabi

Favourite Languages

  • Rust
  • Golang
  • Python
  • Kotlin

resnap's People

Contributors

attie-argentum avatar cloudsftp avatar erlingrj avatar folcon avatar gambhiro avatar spartacus04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

resnap's Issues

Workaround for 3.x users

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

Windows support

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.

FR Mac support for -x

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)

Screenshots too dark

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.

Installation or execution problem

Procedure:

  • Usb connection to remarkable 2
  • ssh connection to remarkable 2 on 10.11.99.1 (all ok)
  • Cloned the repo and send lz4 and head to rm2
  • scp lz4.arm [email protected]:~/lz4
  • ssh [email protected] 'chmod +x ~/lz4
  • scp head.arm [email protected]:~/head
  • ssh [email protected] 'chmod +x ~/head
  • Connected to rm2 and checked the files lz4 and head are in the folder (all ok)
  • Install all on my machine
  • apt install liblz4-tool (all ok)
  • apt install ffmpeg (all ok)
  • apt install feh (all ok)
  • Run sh script chmod +x reSnap.sh and ./reSnap.sh
  • SSH password request, I insert the correct password and the script loop on the password request

What can I do to make it work?

sh: line 2: /home/root/head: No such file or directory

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.