You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
103
103
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.**
105
115
106
116
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.
107
117
@@ -133,7 +143,7 @@ The UUID values are the internal identifiers for each document. The files within
133
143
134
144
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.
135
145
136
-
### Download one or more documents to PDF files
146
+
### Download documents to PDF files
137
147
138
148
To download one or more individual documents as PDF files, first `cd` into the directory where you want to download the files.
139
149
@@ -142,7 +152,7 @@ $ mkdir ~/rm2-backup
142
152
$ cd ~/rm2-backup/
143
153
```
144
154
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 ...
Downloading 'Quick sheets-1.pdf' ... 2577411 ... ok
157
167
```
158
168
169
+
Notes about patterns:
159
170
171
+
* If multiple patterns are specified, all files which match *any* of the patterns will be downloaded.
160
172
173
+
* If you need to specify a pattern containing spaces, you should quote it. For example ...
161
174
162
-
### Download ALL documents to PDF files
175
+
```
176
+
$ rmweb download quick brown fox
177
+
```
163
178
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.
165
180
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.
170
186
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.
172
207
173
208
```
174
-
$ rmweb backup
209
+
$ rmweb download
175
210
Creating 'Amateur Radio' ... ok
176
211
Downloading 'Amateur Radio/D-STAR.pdf' ... 1792627 ... ok
177
212
Downloading 'Amateur Radio/RTL-SDR.pdf' ... 120895 ... ok
Downloading 'Work/2023-12 Daily.pdf' ... 2464473 ... ok
189
224
```
190
225
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`".
0 commit comments