Giter Site home page Giter Site logo

yidashcam's People

Contributors

kwirk 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  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  avatar  avatar  avatar  avatar  avatar  avatar

yidashcam's Issues

Syntax error right away

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

How to do the live stream?

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

Error processing config

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

Taking snapshot while streaming

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

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>

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.