pragmatically-dev / PNG2Rm-System

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
MIT License
2 stars 0 forks source link
remarkable-tablet

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:

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: