Skip to content

Commit 7720280

Browse files
committed
v0.06
1 parent 0e57b82 commit 7720280

4 files changed

Lines changed: 63 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# CHANGELOG
22

3+
## v0.06 - 2023-12-22
4+
5+
* Added `download` command
6+
* by UUID or by substring match in "VissibleName"
7+
* handles multiple substring match patterns
8+
* same "-1" handling for duplicate output files
9+
* Added `-c` option to "flatten" folder structure
10+
* Added "pattern searching" (UUID or filename substring) to `list` command
11+
* Deprecated `backup` command, use `download` with no pattern instead
12+
* Updated `list` command to do the same UUID/filename search as `download`
13+
* Added `-I` option to set tablet IP address
14+
* only useful for tablets which have been "hacked" to make the web
15+
interface available over wifi or other interfaces
16+
317
## v0.05 - 2023-12-19
418

519
* Set things up to automate "publishing" new binaries to Keybase

README.md

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,19 @@ https://github.com/kg4zow/rmweb/
9999
100100
**Connect the tablet via USB cable.**
101101
102-
The program has the `10.11.99.1` IP address hard-coded into it. I wrote it with the expectation that the IP *could* be change-able in the future, but reMarkable makes it difficult to access the web interface over anything *other than* the USB cable (which is actually a GOOD THING™ from a security standpoint), it didn't make sense to add a command line option to change the IP it connects to.
102+
The program uses the web interface to talk to the tablet, and reMarkable sets things up so that the web interface is only available over the USB interface.
103103
104-
**Make sure the tablet is not sleeping, and that the web interface is enabled.**
104+
> ℹ️ If your tablet is "hacked" and the web interface is available over some other IP, you can use the "`-I`" (uppercase "i") option to specify that IP, like so:
105+
>
106+
> ```
107+
> $ rmweb -I 192.0.2.7 list
108+
> ```
109+
110+
**Make sure the tablet is not sleeping.**
111+
112+
Fairly obvious.
113+
114+
**Make sure the web interface is enabled.**
105115
106116
See "Settings → Storage" on the tablet. Note that you won't be able to turn the web interface on unless the tablet is connected to a computer via the USB cable.
107117
@@ -133,7 +143,7 @@ The UUID values are the internal identifiers for each document. The files within
133143
134144
The size of each document is calculated by the tablet itself. It *looks like* it's the total of the sizes of all files which make up that document, including pen strokes and page thumbnail images. This is not the size you can expect the PDF to be if you download the file, from what I've seen the downloaded PDFs end up being anywhere from half to five times this size.
135145
136-
### Download one or more documents to PDF files
146+
### Download documents to PDF files
137147
138148
To download one or more individual documents as PDF files, first `cd` into the directory where you want to download the files.
139149
@@ -142,7 +152,7 @@ $ mkdir ~/rm2-backup
142152
$ cd ~/rm2-backup/
143153
```
144154
145-
Then, run "`rmweb download xxx`", where "`xxx`" is either a UUID ...
155+
Then, run "`rmweb download PATTERN`". The pattern can be either a UUID ...
146156
147157
```
148158
$ rmweb download 9e6891eb-2558-4e70-b6fc-d03b2d75614b
@@ -152,26 +162,51 @@ Downloading 'Quick sheets.pdf' ... 2577411 ... ok
152162
... or a portion of the filename.
153163
154164
```
155-
$ rmweb download 'quick sheets'
165+
$ rmweb download quick
156166
Downloading 'Quick sheets-1.pdf' ... 2577411 ... ok
157167
```
158168
169+
Notes about patterns:
159170
171+
* If multiple patterns are specified, all files which match *any* of the patterns will be downloaded.
160172
173+
* If you need to specify a pattern containing spaces, you should quote it. For example ...
161174
162-
### Download ALL documents to PDF files
175+
```
176+
$ rmweb download quick brown fox
177+
```
163178
164-
To download the documents as PDF files, first `cd` into the directory where you want to download the files.
179+
This command would download any documents with "quick" in the name, OR with "brown" in the name, OR with "fox" in the name.
165180
166-
```
167-
$ mkdir ~/rm2-backup
168-
$ cd ~/rm2-backup/
169-
```
181+
```
182+
$ rmweb download "quick brown fox"
183+
```
184+
185+
This command would only download documents with the string "quick brown fox" in their name.
170186
171-
Then, run "`rmweb backup`".
187+
* Filename searches are case-*in*sensitive, i.e. "`test`", "`Test`", "`TEST`", and "`tEsT`" all match each other.
188+
189+
* If a pattern *looks like* a UUID (i.e. has the "8-4-4-4-12 hex digits" structure), the program will look it up by UUID rather than searching for it by filename.
190+
191+
* If no patterns are specified (i.e. just "`rmweb download`" by itself), the program will download ALL documents.
192+
193+
Other notes:
194+
195+
* As each file downloads, the program shows a counter of how many bytes have been read from the tablet. For larger files you'll notice a time delay before this counter starts. This is because the program uses the same API used by the [`http://10.11.99.1/`](http://10.11.99.1) web interface, and this delay is when the tablet is building the PDF file.
196+
197+
* If an output file already exists, the program will add "`-1`", "`-2`", etc. to the filename until it finds a name which doesn't already exist. If you want to *overwrite* existing files, use the "`-f`" option.
198+
199+
```
200+
$ rmweb -f download quick
201+
Downloading 'Quick sheets.pdf' ... 2577411 ... ok
202+
```
203+
204+
### Download ALL documents to PDF files
205+
206+
To download ALL documents as PDF files, use the "`download`" command without a pattern.
172207
173208
```
174-
$ rmweb backup
209+
$ rmweb download
175210
Creating 'Amateur Radio' ... ok
176211
Downloading 'Amateur Radio/D-STAR.pdf' ... 1792627 ... ok
177212
Downloading 'Amateur Radio/RTL-SDR.pdf' ... 120895 ... ok
@@ -188,6 +223,3 @@ Downloading 'Work/2023-11 Daily.pdf' ... 5114386 ... ok
188223
Downloading 'Work/2023-12 Daily.pdf' ... 2464473 ... ok
189224
```
190225
191-
As each file downloads, the program shows a counter of how many bytes have been read from the tablet. For larger files you'll notice a time delay before this counter starts. This is because the program uses the same API used by the [`http://10.11.99.1/`](http://10.11.99.1) web interface, and this is when the tablet is building the PDF file.
192-
193-
**By default**, if an output file already exists, the program will add "`-1`", "`-2`", etc. to the filename until it finds a name which doesn't already exist. If you want to *overwrite* any existing files, use "`rmweb -f backup`".

TODO.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# TODO
22

3-
* Add a new `download` command which can ...
4-
* download a single file by UUID
5-
* "`-o`" option to specify output PDF filename
6-
* download only files whose names match a pattern
7-
* create filenames using "visible" names from tablet
8-
* option to duplicate or "flatten" folder structure
9-
* same duplicate output file handling
10-
113
* Upload PDF/EPUB files
124
* option to specify parent folder (by UUID or name)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.05
1+
0.06
22

33
The first line of this file is used as the "version number" in the resulting
44
executable. The rest of the file (such as this comment) is ignored.

0 commit comments

Comments
 (0)