kwirk / yidashcam Goto Github PK
View Code? Open in Web Editor NEWAn unofficial python library for interfacing with the Xiaomi YI Dash Cam.
An unofficial python library for interfacing with the Xiaomi YI Dash Cam.
Hello!
i have the chinese version and i did not tried modifying anything (no SN hackery)
Installed everything and i get this error:
$ python -m yidashcam
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name) # Do not catch exceptions initializing package
File "/usr/local/lib/python2.7/dist-packages/yidashcam/__init__.py", line 359
yield from self._send_cmd(Command.file_thumbnail, path, stream=True)
^
SyntaxError: invalid syntax
I've done some work making more than one camera working together: https://github.com/er1z/multiple_yi_dash_cam
Could you extend your library to provide a custom IP address?
I try to use VLC to open rtsp://192.168.1.254/xxx.mov
but it doesnt work
I did use python3 -m yidashcam stream
to activate the stream
Can you advise?
Thanks
Traceback (most recent call last):
File "sync.py", line 5, in <module>
print("Serial number: {}".format(yi.serial_number))
File "/Users/andy/tmp/yidashcam/yidashcam/__init__.py", line 308, in serial_number
return self.config[config.Option.serial_number]
File "/Users/andy/tmp/yidashcam/yidashcam/__init__.py", line 256, in config
config_et = ET.fromstring(self._send_cmd(Command.config))
File "/Users/andy/tmp/yidashcam/yidashcam/__init__.py", line 130, in _send_cmd
res_xml = ET.fromstring(res.text)
File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/xml/etree/ElementTree.py", line 1333, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 44, column 34
Hey,
I was wondering if you know any way of taking picture while streaming video,
Currently executing (just like sending any other command to cam really)
python3 -m yidashcam snapshot
Will reset stream
'ES_OUT_RESET_CALLED' in VLC's console
Yi App seems to be able to do that
Seems to not working anymore (see logs behind).
Firmware version : V-1.03.026-US (last)
127.0.0.1 - - [08/May/2017 19:44:20] "GET /favicon.ico/ HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\werkzeug\serving.py", line 209, in run_wsgi
execute(self.server.app)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\werkzeug\serving.py", line 197, in execute
application_iter = app(environ, start_response)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1547, in handle_exception
return self.finalize_request(handler(e), from_error_handler=True)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\yidashcam\webapp.py", line 85, in error_500_handler
return render_template("error.html", message=error), 500
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\templating.py", line 132, in render_template
ctx.app.update_template_context(context)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 764, in update_template_context
context.update(func())
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\yidashcam\webapp.py", line 110, in yi_context
context['serial_number'] = yi.serial_number
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\yidashcam\__init__.py", line 307, in serial_number
return self.config[config.Option.serial_number]
KeyError: <Option.serial_number: 3037>
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.