Giter Site home page Giter Site logo

bluppfisk / deepblu-tools Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 2.0 588 KB

Get the most out of Deepblu, export and backup your dive logs into UDDF format, automatically like posts, and copy another user's followers.

Home Page: http://worldofnonging.com/deepblu-tools/

License: GNU General Public License v3.0

Python 98.11% JavaScript 0.55% Hack 1.34%

deepblu-tools's People

Contributors

atdotde avatar bluppfisk avatar dependabot[bot] avatar stijnvanhoey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deepblu-tools's Issues

Error in running backup from pip3.

Any thoughts why I might be getting the error below? Tried on MacOS & two different Linux boxes with the same result.

$ deepblu-backup -u "[e-mail addres]" -p "[password]"
Getting published logs
Loading first 100 published logs from Deepblu API...
Found all the published logs!
Traceback (most recent call last):
  File "/home/aroberts/.local/bin/deepblu-backup", line 8, in <module>
    sys.exit(main())
  File "/home/aroberts/.local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/aroberts/.local/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/aroberts/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/aroberts/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/aroberts/.local/lib/python3.9/site-packages/deepblu_tools/bin/cli.py", line 109, in main
    logbook = dm.DeepbluLogBook(posts, deepblu_user, max_posts=max_logs)
  File "/home/aroberts/.local/lib/python3.9/site-packages/deepblu_tools/models/deepblu/log_book.py", line 28, in __init__
    self.owner = deepblu_user.to_person_type()
  File "/home/aroberts/.local/lib/python3.9/site-packages/deepblu_tools/models/deepblu/user.py", line 38, in to_person_type
    sex=getattr(um.SexType, self.gender.upper()),
  File "/usr/lib/python3.9/enum.py", line 405, in __getattr__
    raise AttributeError(name) from None
AttributeError: OTHER
$ 

Unquoted & character in notes

Converting Srodriguez32's log from deepblu produces ill-formed xml (that Subsurface fails to parse) because in is post dive notes, he has a &-character that needs translation to &.

Backup errs if birthday not added to deepblu.

I closed the other issue after it successfully downloaded (after I added my birthday to deepblu). (Thanks for responding so quickly!) Iโ€™m not sure if this is a bug or not, but I would note that it erred until I added it to their system. See below.

% deepblu-backup -u "[email]" -p "[password]" Getting published logs Loading first 100 published logs from Deepblu API... Found all the published logs! Traceback (most recent call last): File "/usr/local/bin/deepblu-backup", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/deepblu_tools/bin/cli.py", line 109, in main logbook = dm.DeepbluLogBook(posts, deepblu_user, max_posts=max_logs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/deepblu_tools/models/deepblu/log_book.py", line 28, in __init__ self.owner = deepblu_user.to_person_type() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/deepblu_tools/models/deepblu/user.py", line 44, in to_person_type birthdate=um.EncapsulatedDateTimeType(self.birthday.isoformat()), ^^^^^^^^^^^^^ AttributeError: 'DeepbluUser' object has no attribute 'birthday' %

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.