keredson / blink Goto Github PK
View Code? Open in Web Editor NEWPython API for the Blink Home Security Camera System
License: GNU Lesser General Public License v2.1
Python API for the Blink Home Security Camera System
License: GNU Lesser General Public License v2.1
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?
The API has changed, I was inspecting it last night and found this new structure.
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.
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
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.
Hi, will this API work with the upcoming Bink XT2?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.