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 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.1.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.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supernote_sync-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4aa203b0ee2b6deba545f1b6006b67dc0294a494d5af78e80baa218ace5150d3
MD5 26ffc00436f5ac417fa48df41ceb0ac3
BLAKE2b-256 123a658517f28bc9335e104ce394e695f040809588d45fad02f9e99a403857ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supernote_sync-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd098b7834e5e2a6ff9bde498b07dbbca8148631f14acf14658308c4fde7811a
MD5 4494fc72e7771f3234f0a6c26e506d64
BLAKE2b-256 e32775a56275b09452396ca224ae7f6bd3b3096750e342fd2c76c57c51377577

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