Skip to content

ink-splatters/odido-aap

Repository files navigation

odido aap

odido.nl aanvullers automated

Setup

  • python3.9+
  • uv (recommended)
  • direnv

Initializing env

uv venv
uv pip install -r requirements.txt
direnv allow .

Obtaining Credentials

Apple Silicon

  1. Install Odido official app from AppStore
  2. Authenticate
  3. Run
./get_creds_from_cache_db.sh

It will create .env file for you with variables neded for the script to work. if you installed direnv and followed Initializing Env you are all set.

From iMazing Backup

If the previous method is unaccessible to you, you can obtain credentials from iMazing backup of your iPhone or iPad.

  1. Locate Odido.nl app in iMazing
  2. Export it (in the form of .imazingapp), rename to .zip, extract all the data and locate Cache.db. If Cache.db-wal file is present, it must remain.
  3. Set CACHE_DIR env var to the directory containing Cache.db
  4. If all set correctly, you will get the same result - credentials written in .env

Usage

Make sure you followed Initializing env. Among other things, direnv should have activated python virtual env for you.

Now, run:

./odido.py

NOTE: you may want the script to be run by cron. In this case, you will also want ODIDO_THRESHOLD env variable (in megabytes) to be set to some 300-350.

Otherwise the API will return an error: it's only allowed to activate the next aanvuller when around ~350mb is left from the previous one.

Enjoy!

Credits

Romkabouter430

About

odido.nl aanvullers

Resources

License

Stars

Watchers

Forks

Packages

No packages published