reMarkable service to automatically download and replace your suspend screen. No cloud needed.
This was originallly a part of a larger project to control and update the suspend screen on the reMarkable 2 tablet from a web browser via a SAAS offering.
The idea was as followed.
- You downloaded the installer and plug in your reMarkable.
- You would run the installer and create an account (via a webframe) which would link your device to that account.
- The installer would install the necessary binaries (this repo) on your device.
- You would use the web interface to upload images you wanted for you Suspend Screen, or select from the many premade ones.
- Your device would periodically download one of your uploaded images and set it as the Suspend Screen.
I started working on the whole thing but decided it wasn't fully worth the effort since the general idea garnered lukewarm support.
If you want any of the code for the other pieces, let me know and I'll dig the code out for you.
Special thanks to remarkable_news for the springboard.
Every time you connect to WiFi, it will try to grab the image specified by the IMAGE_REFERENCE_URL
; which is currently pointed to a relay that grabs the latest front page of the New York Times.
Whatever address IMAGE_REFERENCE_URL
points to needs to return a url string to an image. In the flow explained above, this endpoint was used to allow for multiple users to hit the same URL and have the backend process which user received which image url.
Plug in you reMarkable and run the following. make sure to have your reMarkable's ssh password handy
git clone git remote add origin https://github.com/tremayne-stewart/remarkable_css.git && cd remarkable_css
make install
This will install the remarkable_css service onto your reMarkable.
I don't have a windows computer to test this on but I assume however you can run this with whatever setup you normally use to execute shell commands on your computer and on your reMarkable.
To stop service running on your reMarkable run
# Run in the remarkable_css directory
make stop
Run the following commmand which executes the program and saves the image would become the new suspend screen on the tablet to downloaded_image.png
.
# Run in the remarkable_css directory
go run . -logtostderr=true -debug
With the remarkable connected to the local network or via USB, execute the following command on the host machine (your computer). This will pull up a stream of the logs produced by the remarkable change suspend screen service.
# Run in the remarkable_css directory
make debug
Then disconnect and reconnect WiFi to trigger a download.
There was an update to the mainline that blocks hot swapping the suspended.png. To get around this you can either
- Use
ddvk-hacks
which re-enables the hotswapping - Run
systemctl restart xochitl
when you want to pull in the new image - Restart the device.
Without ddvk-hacks
, xochitl
needs to be relaunched in order for the new suspended.png to be loaded. Some folks have sprung up ideas about somehow tieing the relaunch to the pressing the sleep/wake button but ... eh..
Dictated, not read.