Skip to main content

Automatically sync Supernote notebooks and convert to PDF on local WiFi

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 and run with pipx

pipx install supernote-sync
supernote-sync --supernote-url=http://xxx.xxx.xxx.xxx:8089 --supernote-device-name="Change To Your Device Name" --sync-dir=path/to/dir/to/sync start

Run with Docker

docker run \ 
    -e SUPERNOTE_URL="http://xxx.xxx.xxx.xxx:8089" \
    -e SUPERNOTE_DEVICE_NAME="Change To Your Device Name" \
    -v path/to/dir/to/sync:/supernote \
    ghcr.io/jbchouinard/supernote-sync:latest

Build Docker image

docker build -t 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.3.tar.gz (14.1 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.3-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supernote_sync-0.2.3.tar.gz
  • Upload date:
  • Size: 14.1 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.3.tar.gz
Algorithm Hash digest
SHA256 6d22eb42f29ec31445111f34e796761eeb943208759c225e58cc1e68577677e7
MD5 1b1b6d6fac8ac159fe08a789b88b575c
BLAKE2b-256 21e3c1fd934baa71e39052407eb4024838fe2e297f79ba6ee276abd4dc91ecf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supernote_sync-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf72ca7b7eaece307cff04e562e6323f12dcf50bba38fe2ef1c416eeac2e3b6a
MD5 202e4e61506a4f664c29ea130a6ed336
BLAKE2b-256 9e8f8ba354c09722c6cee5927f34f0f43b17589fc2cdd19a28adc224de909fbb

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