Coder Social home page Coder Social logo

blink's People

Contributors

keredson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blink's Issues

TypeError: 'Network' object has no attribute '__getitem__'

Just cloned and installed what I think are the right dependencies (Fedora 30), python2-pyyaml, python3-pyyaml, python2-dateutil, python3-dateutil.

Hitting above error. Full output:

blink [1]$ python -m blink --archive ./Downloads/
/home/jimb/SCM/blink/blink.py:54: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(f.read())
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/jimb/SCM/blink/blink.py", line 260, in <module>
    _main()
  File "/home/jimb/SCM/blink/blink.py", line 257, in _main
    Blink().archive(args[1])
  File "/home/jimb/SCM/blink/blink.py", line 232, in archive
    network_dir = os.path.join(path, network['name'])
TypeError: 'Network' object has no attribute '__getitem__'

Probably related to #1?

API Has Changed

The API has changed, I was inspecting it last night and found this new structure.

blink new api

For example, to get a list of videos you can call something like https://rest-u001.immedia-semi.com/api/v2/videos/changed?since=2018-06-01T23:11:21+0000&page=1 with your AUTH_TOKEN set in the headers.

I was able to use this library to login and get the AUTH_TOKEN but could not return a list of events.

TypeError: 'Network' object is not subscriptable

Getting the following error. Is this code still working or has the API changed?

 > python -m blink --archive .                  
Traceback (most recent call last):
  File "/Users/cbetta/.pyenv/versions/3.4.2/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/cbetta/.pyenv/versions/3.4.2/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/cbetta/code/cbetta/blink/blink.py", line 260, in <module>
    _main()
  File "/Users/cbetta/code/cbetta/blink/blink.py", line 257, in _main
    Blink().archive(args[1])
  File "/Users/cbetta/code/cbetta/blink/blink.py", line 232, in archive
    network_dir = os.path.join(path, network['name'])
TypeError: 'Network' object is not subscriptable

No dependencies defined for your package

Hi, do you have some plans to writing a setuptools definition which also includes required dependencies for installation? The installation of this library via pip is a little bit complicated and error-prone at them moment.

Blink XT2

Hi, will this API work with the upcoming Bink XT2?

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.