Update papers.go
1 file changed
tree: 1f7f5ba1044ce9207b7a02154a90c8e7a39e2ccc
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. Dockerfile
  5. LICENSE
  6. Makefile
  7. README.md
  8. VERSION.txt
  9. basic.mk
  10. download.go
  11. go.mod
  12. go.sum
  13. main.go
  14. papers.go
  15. remarkable.go
  16. vendor/
  17. version/
README.md

morningpaper2remarkable

Travis CI GoDoc Github All Releases

A bot to sync the morning paper to a remarkable tablet.

This authenticates with your remarkable cloud account via the command line on start. I hope to eventually make it run on my remarkable and not have to deal with the cloud.

Table of Contents

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/jessfraz/morningpaper2remarkable

Running with Docker

Authentication

$ touch ${HOME}/.rmapi

$ docker run --rm -it \
    --name morningpaper2remarkable \
    -v "${HOME}/.rmapi:/home/user/.rmapi:rw" \
    r.j3ss.co/morningpaper2remarkable --once

# Enter your one time auth code.

Run it in daemon mode with our auth code

# You need to have already authed and have a .rmapi api file for this to 
# work in daemon mode.
$ docker run -d --restart always \
    --name morningpaper2remarkable \
    -v "${HOME}/.rmapi:/home/user/.rmapi:rw" \
    r.j3ss.co/morningpaper2remarkable --interval 20h

Usage

$ morningpaper2remarkable -h
morningpaper2remarkable -  A bot to sync the morning paper to a remarkable tablet.

Usage: morningpaper2remarkable <command>

Flags:

  -d, --debug  enable debug logging (default: false)
  --dir        directory to store the downloaded papers in (default: morningpaper)
  --interval   update interval (ex. 5ms, 10s, 1m, 3h) (default: 18h)
  --once       run once and exit, do not run as a daemon (default: false)

Commands:

  version  Show the version information.