Code Monkey home page Code Monkey logo

morningpaper2remarkable's Introduction

morningpaper2remarkable

make-all make-image 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)
  --pages      number of pages of papers to download (default: 1)

Commands:

  version  Show the version information.

Hidden Command

I use the bot on my server but sometimes I just want a way to get a paper from a URL to my remarkable from the command line.

I added a hidden command for that download.

You can use it like the following:

$ morningpaper2remarkable download http://nickm.com/trope_tank/10_PRINT_121114.pdf "10 PRINT"

This will download the PDF from the URL at arg[0] put it in a folder, default named papers and name the PDF in that folder arg[1], which above is "10 PRINT".

You can change the folder name with the --dataDir flag.

morningpaper2remarkable's People

Contributors

crossi36 avatar csmith avatar github-actions[bot] avatar jessfraz avatar toc-me[bot] avatar

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.