Skip to main content

Deepblu Tools

Project description

PyPI version

deepblu-tools

Deepblu API tools

A set of tools to get the most out of Deepblu.

Deepblu Backup Tool

Retrieves dive logs from Deepblu and exports them in Universal Dive Data Format (UDDF), which can be imported into other applications that support it, including Subsurface Divelog.

Diving Log, a commercial dive log application for Windows, based its Deepblu import tool on this project.

Deepblu logs imported into Subsurface

Requirements

Make sure you have Python 3 and pip3 installed

Installation

pip3 install deepblu-backup

Usage

Usage: deepblu-backup [OPTIONS]


Options:
  -u, --user TEXT         Deepblu username or userid
  -p, --password TEXT     Deepblu password
  -m, --max-logs INTEGER  Maximum number of logs to parse
  -d, --with-drafts       Also pull draft logs. Requires valid
                          credentials
  -o, --outfile TEXT      Write results to this file
  -f, --infile TEXT       For debugging purposes: load data 
                          from JSON file instead of API
  --help                  Show this message and exit.

Examples

  • run deepblu-backup -u userId to backup all your public logs without personal user information (or if you have no password, e.g. if you created your account using Facebook)
  • run deepblu_backup -u email -p password to backup all your private and public logs with personal user information
  • add --with-drafts to include drafts (you will need to use email and password)
  • add --max-logs MAX to limit the number of logs to the most recent number represented by MAX
  • add --outfile FILENAME to write the resulting UDDF file to FILENAME

Alternatively, you can use the Deepblu Backup Tool web service

in the above commands, make sure you replace email and password with the information associated with your deepblu account, and note that userId is not your username but the id as found in the URL when visiting your own profile at Deepblu.

Tracked data

  • Dive type: Freediving (apnea) or Scuba (open circuit)
  • Dive profile: Deepblu provides a waypoint with temperature and depth every 20 seconds
  • Date and time, visibility, average depth, maximum depth, minimum temperature, dive duration, air temperature
  • Media: url, captions and timestamps of video and images
  • Tank: volume, gas, pressure at start and end
  • Dive computer brand and model
  • Diver details
  • Buddies
  • Divespot: name, latitude and longitude
  • Divebase: name
  • Notes

Known issues

  • Not all data is currently being backed up (some equipment data isn't). I may add more items in the future.

Deepblu Autoliker - extra/autoliker.py

Logs you in with a set of accounts defined in LOGINS and automatically likes every post, beginning with the most recent one, until MAX_LIKES is reached or an earlier like is found.

Deepblu Autofollow - extra/autofollow.js

Console JS script to automatically add a series of Deepblu users in userIds to the following list of a logged-in account with token authToken.

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

deepblu-tools-2.0.6.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

deepblu_tools-2.0.6-py2.py3-none-any.whl (38.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file deepblu-tools-2.0.6.tar.gz.

File metadata

  • Download URL: deepblu-tools-2.0.6.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for deepblu-tools-2.0.6.tar.gz
Algorithm Hash digest
SHA256 2b88e3c739b82fdf3b0329ecb67bbe66e36c470b5e7d8109af537cb140d2ee46
MD5 51a65c7704d776e19f63de3210d2f335
BLAKE2b-256 1445d5ab694684fd2bb55a534a50094c8e4f9afd285e900fa2df0a63acbaf49d

See more details on using hashes here.

File details

Details for the file deepblu_tools-2.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for deepblu_tools-2.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e34f40d23f63b74e5b483fa9ace773ad26f3a999ce0d7791b6d1ded41ef1106
MD5 8f4471a065b7a449c12b293b20e8246a
BLAKE2b-256 b274e73ace203084395fe2159211196da3470ba71feb4e07d5051da92dcf8c49

See more details on using hashes here.

Supported by

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