Git Product home page Git Product logo

dashzero's People

Stargazers

 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

dashzero's Issues

Error when starting main.py

I get the following:

pi@raspberrypi:~/Downloads/dashzero-master $ python3 main.py
[INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_21-10-30_5.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/home/pi/.local/lib/python3.7/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
[INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max size <2048>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [KivyMD      ] 0.104.2, git-bc7d1f5, 2021-06-06 (installed at "/home/pi/.local/lib/python3.7/site-packages/kivymd/__init__.py")
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
 :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'service_identity''.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.
 Traceback (most recent call last):
   File "main.py", line 118, in <module>
     MainApp().run()
   File "main.py", line 61, in __init__
     self.load_theme()
   File "main.py", line 96, in load_theme
     self.theme_cls.theme_style = theme_cfg.get('style', 'Light')
 AttributeError: 'NoneType' object has no attribute 'theme_style'
pi@raspberrypi:~/Downloads/dashzero-master $

Crash when 'entity_picture' is missing

On my HASS, probably because of some cameras being offline, I get the following error:

 Unhandled Error
 Traceback (most recent call last):
   File "/usr/local/lib/python3.7/dist-packages/twisted/python/log.py", line 103, in callWithLogger
     return callWithContext({"system": lp}, func, *args, **kw)
   File "/usr/local/lib/python3.7/dist-packages/twisted/python/log.py", line 86, in callWithContext
     return context.call({ILogContext: newCtx}, func, *args, **kw)
   File "/usr/local/lib/python3.7/dist-packages/twisted/python/context.py", line 122, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/local/lib/python3.7/dist-packages/twisted/python/context.py", line 85, in callWithContext
     return func(*args,**kw)
 --- <exception caught here> ---
   File "/usr/local/lib/python3.7/dist-packages/twisted/internet/_threadedselect.py", line 276, in _doReadOrWrite
     why = getattr(selectable, method)()
   File "/usr/local/lib/python3.7/dist-packages/twisted/internet/tcp.py", line 243, in doRead
     return self._dataReceived(data)
   File "/usr/local/lib/python3.7/dist-packages/twisted/internet/tcp.py", line 249, in _dataReceived
     rval = self.protocol.dataReceived(data)
   File "/usr/local/lib/python3.7/dist-packages/autobahn/twisted/websocket.py", line 290, in dataReceived
     self._dataReceived(data)
   File "/usr/local/lib/python3.7/dist-packages/autobahn/websocket/protocol.py", line 1206, in _dataReceived
     self.consumeData()
   File "/usr/local/lib/python3.7/dist-packages/autobahn/websocket/protocol.py", line 1218, in consumeData
     while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
   File "/usr/local/lib/python3.7/dist-packages/autobahn/websocket/protocol.py", line 1578, in processData
     fr = self.onFrameEnd()
   File "/usr/local/lib/python3.7/dist-packages/autobahn/websocket/protocol.py", line 1703, in onFrameEnd
     self._onMessageEnd()
   File "/usr/local/lib/python3.7/dist-packages/autobahn/twisted/websocket.py", line 318, in _onMessageEnd
     self.onMessageEnd()
   File "/usr/local/lib/python3.7/dist-packages/autobahn/websocket/protocol.py", line 627, in onMessageEnd
     self._onMessage(payload, self.message_is_binary)
   File "/usr/local/lib/python3.7/dist-packages/autobahn/twisted/websocket.py", line 321, in _onMessage
     self.onMessage(payload, isBinary)
   File "/home/pi/homeassistant-gui/core/connectors/homeassistant.py", line 35, in onMessage
     self.factory.handler.handle_message(json.loads(payload.decode('utf8')))
   File "/home/pi/homeassistant-gui/core/connectors/homeassistant.py", line 84, in handle_message
     self.config['port']) + result['attributes']['entity_picture']
 builtins.KeyError: 'entity_picture'

Just adding an if 'entity_picture' in result['attributes'] seems to fix it, while still allowing 'working cameras' to be displayed

However (probably unrelated), the camera image doesn't seem to update on my SHPI.zero

touchscreen is not working

I get this error when trying to use the touch screen, which doesn't react to inputs:

INFO: The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list <https://discourse.libsdl.org/> EVDEV KeyCode 330

@panbachi I don't know wether you read this, but have you maybe encountered this error before?

error starting main.py

Hello,

Unfortunately, I always get the following error message when I start the main.py
Does anyone have any idea what the problem is here

Traceback (most recent call last):
File "kivy/properties.pyx", line 2023, in kivy.properties.ColorProperty.convert
File "kivy/properties.pyx", line 2041, in kivy.properties.ColorProperty.parse_list
ValueError: Invalid value for color (got [])

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 701, in _apply_rule
setattr(widget_set, key, value)
File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.setattr
File "kivy/properties.pyx", line 498, in kivy.properties.Property.set
File "kivy/properties.pyx", line 527, in kivy.properties.Property.set
File "kivy/properties.pyx", line 2025, in kivy.properties.ColorProperty.convert
ValueError: MDTabsLabel.color has an invalid format (got [])

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 104, in
MainApp().run()
File "/home/pi/.local/lib/python3.7/site-packages/kivy/app.py", line 949, in run
self._run_prepare()
File "/home/pi/.local/lib/python3.7/site-packages/kivy/app.py", line 919, in _run_prepare
root = self.build()
File "main.py", line 83, in build
self.root = MainScreen(config)
File "main.py", line 31, in init
self.navigation = Navigation(config['rooms'])
File "/home/pi/dashzero-master/gui/core/navigation.py", line 28, in init
self.add_widget(NavigationItem(room))
File "/home/pi/dashzero-master/gui/core/navigation.py", line 8, in init
super(NavigationItem, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/boxlayout.py", line 145, in init
super(BoxLayout, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/layout.py", line 76, in init
super(Layout, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivymd/uix/tab.py", line 374, in init
self.tab_label = MDTabsLabel(tab=self)
File "/home/pi/.local/lib/python3.7/site-packages/kivymd/uix/tab.py", line 328, in init
super().init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/behaviors/togglebutton.py", line 84, in init
super(ToggleButtonBehavior, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/behaviors/button.py", line 121, in init
super(ButtonBehavior, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/label.py", line 318, in init
super(Label, self).init(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/widget.py", line 361, in init
rule_children=rule_children)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/widget.py", line 465, in apply_class_lang_rules
rule_children=rule_children)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 543, in apply
rule_children=rule_children)
File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 712, in _apply_rule
e), cause=tb)
kivy.lang.builder.BuilderException: Parser: File "", line 19:
...
17: )
18: color:

19: self.text_color_active if self.state == 'down' else self.text_color_normal
20: on_x: self._trigger_update_tab_indicator()
21: on_width: self._trigger_update_tab_indicator()
...
ValueError: MDTabsLabel.color has an invalid format (got [])
File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 701, in _apply_rule
setattr(widget_set, key, value)
File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.setattr
File "kivy/properties.pyx", line 498, in kivy.properties.Property.set
File "kivy/properties.pyx", line 527, in kivy.properties.Property.set
File "kivy/properties.pyx", line 2025, in kivy.properties.ColorProperty.convert

config.example.yaml errors

Hi,

I just managed to install dashzero on my SHPI.zero (thx for the readme updates), however I noticed some errors in the config.example.yaml that may worth updating.

The 'types' of each card needs to be lower case, however in the current example some use capital which makes them fail silently.

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.