Giter Site home page Giter Site logo

pragmatically-dev / png2rm-system Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 40.31 MB

This repository implements a gRPC service for converting PNG files to Remarkable tablet documents. Clients can stream PNG images, which are processed and converted to .rmdoc format. The service, written in Go, receives PNG files in chunks, saves them, converts them with the drawj2d tool, and streams the resulting document back to the client

License: MIT License

Makefile 0.61% Go 89.60% Shell 9.13% Batchfile 0.65%
remarkable-tablet

png2rm-system's Introduction

PNG2RM CONVERSION SYSTEM

rm1 rm2 Discord rM Hacks Discord

Overview

The System is implemented using Go and leverages gRPC for communication. It provides a server that can receive PNG files in chunks, save them, convert them using an external tool (drawj2d) the PoC-drawj2d-port-go, and stream the resulting Remarkable document back to the client.

Special Acknowledgment to:

This wouldn't have been possible without your help and incredible developments.

Eeems A.Vontobel reMiss mb1986 atngames


How it works (Now the server is in charge of the conversion using the PoC):

alt text

Preview

https://youtube.com/shorts/NGzp8g97Z1Y?si=tWxixrLJTe--_qKd

Requirements:

Server side:

Client side (tablet):

How to setup (locally):

Server:

  1. Install Go and necessary dependencies:

    • Ensure you have Go installed on your system. You can download and install it from golang.org.
    • Set up your development environment to work with Go. Configure $GOPATH and add $GOPATH/bin to your $PATH.
  2. Create the server-config.yaml file:

    • This file should contain the necessary configuration for the server. Create a file named server-config.yaml in the same directory as the main.go file with the following content:

      image_folder: "/path/to/image/folder"
      run_path: "/path/to/run/path"
      server_address: "localhost:4040"
    • Adjust the values of image_folder, run_path, and server_address according to your needs.


Client (tablet):

⚠️ Please be sure to have rm-hacks and webinterface-onboot Installed⚠️

  1. Transfrer the client installer tar to the remarkable:

    then:

    $remarkable: ~/ tar -xvf png2rm_arm.tar
    $remarkable: ~/ cd png2rm_arm-installer
    $remarkable: ~/ ./install.sh
    

Now you should be able to convert your screenshots to rmlines in 3 sec


Knowloadge base:

png2rm-system's People

Contributors

pragmatically-dev avatar

Stargazers

Pedro Villar avatar  avatar

Watchers

 avatar

png2rm-system's Issues

Running server

Do I understand correctly that for the transfer to work, the PC where the server will run must be turned on?
You can use raspberryPi or others but without the server running it is not possible to do the conversion?

Thank you for the 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.