Skip to main content

No project description provided

Project description

supernote-sync

An unofficial tool for Supernote e-Ink notebooks, for syncing files locally and automatically converting notebooks to PDF.

The program uses the Supernote Browse & Access feature to synchronize files. It must run on the same local network as the Supernote device.

By default, supernote-sync syncs the INBOX directory in push mode, and all other directories in pull mode.

Usage

Install with pipx

pipx install supernote-sync
supernote-sync --supernote-url=http://xxx.xxx.xxx.xxx:8089 --sync-dir=path/to/dir start

Run with Docker

docker build -t supernote-sync .
docker run \ 
    -e SUPERNOTE_URL="http://xxx.xxx.xxx.xxx:8089" \
    -e SUPERNOTE_DEVICE_NAME="Change To Your Device Name" \
    -v ./supernote:/supernote supernote-sync

Configuration

Configuration options can be set by environment variables or command line arguments.

Supernote Connection Settings

WiFi transfer must be toggled on on the Supernote device. The popup will show the URL of the device.

Option Environment Variable CLI Argument Description Default
supernote_url SUPERNOTE_URL --supernote-url URL of your Supernote device Required
supernote_device_name SUPERNOTE_DEVICE_NAME --supernote-device-name Name of your Supernote device Required

Sync Settings

Option Environment Variable CLI Argument Description Default
push_dirs PUSH_DIRS --push-dirs Directories to push files to (comma-separated) INBOX
pull_dirs PULL_DIRS --pull-dirs Directories to pull files from (comma-separated) Note,Document,MyStyle,EXPORT,SCREENSHOT
sync_extensions SYNC_EXTENSIONS --sync-extensions File extensions to sync (comma-separated) note,spd,spd-shm,spd-wal,pdf,epub,doc,txt,png,jpg,jpeg,webp
sync_interval SYNC_INTERVAL --sync-interval Sync interval in seconds 60
sync_dir SYNC_DIR --sync-dir Local directory for synced files supernote/sync
trash_dir TRASH_DIR --trash-dir Local directory for deleted files - permanently deleted if unset supernote/trash

Database Settings

By default, uses a local SQLite database. Can use any database supported by SQLAlchemy.

Option Environment Variable CLI Argument Description Default
db_url DB_URL --db-url Database connection URL sqlite:///supernote/db.sqlite

PDF Conversion Settings

Configure automatic conversion of notebooks to PDF when syncing.

To match the notebook, the page size is A5 for the Manta, or A4 for the Nomad.

Option Environment Variable CLI Argument Description Default
convert_to_pdf CONVERT_TO_PDF --convert-to-pdf Convert Supernote files to PDF False
force_reconvert FORCE_RECONVERT --force-reconvert Force reconversion of already converted files False
pdf_page_size PDF_PAGE_SIZE --pdf-page-size PDF page size A5
pdf_vectorize PDF_VECTORIZE --pdf-vectorize Vectorize notebooks when converting to PDF False

Logging Settings

Option Environment Variable CLI Argument Description Default
log_file LOG_FILE --log-file Log file path None (logs to console)
log_level LOG_LEVEL --log-level Logging level WARNING

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supernote_sync-0.2.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supernote_sync-0.2.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file supernote_sync-0.2.0.tar.gz.

File metadata

  • Download URL: supernote_sync-0.2.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.15.6-arch1-1

File hashes

Hashes for supernote_sync-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71491db32f5676fbc25688af0729a77bbb06b226aea730dd928c1ba71a8203ee
MD5 ff131a63fb00d47e4d906f440ef2d587
BLAKE2b-256 0f169637773d1567627dd2524c7e3237354b54f9481e1ee0a972f259a81caf20

See more details on using hashes here.

File details

Details for the file supernote_sync-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: supernote_sync-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.15.6-arch1-1

File hashes

Hashes for supernote_sync-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 482f702fa7a3b7a7428a47102ae1f3b3daf8730dbc5e7e992175fca14b7b0148
MD5 cca00f1737310e04623903195df37b53
BLAKE2b-256 54225a19da4af88601ea4acda78e5bc59872021a4792fdb8133951c516af174e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page