Ciao.
Avendo potuto scaricare il manuale ho provato ad installare thermostat seguendo le indicazioni date li modificate come descritto nei post del forum per quanto riguarda la parte di installazione di kiwy ma pur avendo provato piu' volte quando mando in esecuzione l'applicazione con
Codice:
~/thermostat_v5 $ sudo python3 thermostat.py
[INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_22-01-03_1.txt
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at "/usr/local/lib/python3.9/dist-packages/kivy/__init__.py"
[INFO ] [Python ] v3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110]
[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 ] [Text ] Provider: sdl2(['text_pango'] ignored)
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
X11 connection rejected because of wrong authentication.
error: XDG_RUNTIME_DIR not set in the environment.
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'2.1 Mesa 20.3.5'>
[INFO ] [GL ] OpenGL vendor <b'Broadcom'>
[INFO ] [GL ] OpenGL renderer <b'VC4 V3D 2.1'>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <b'1.20'>
[INFO ] [GL ] Texture max size <2048>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
tempsensor W1 OFF
tempsensor BMP280 OFF
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 705, 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 542, in kivy.properties.Property.set
File "kivy/properties.pyx", line 533, in kivy.properties.Property.set
File "kivy/properties.pyx", line 1253, in kivy.properties.OptionProperty.check
ValueError: GridLayout.orientation is set to an invalid option 'horizontal'. Must be one of: ['lr-tb', 'tb-lr', 'rl-tb', 'tb-rl', 'lr-bt', 'bt-lr', 'rl-bt', 'bt-rl']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/thermostat_v5/thermostat.py", line 2683, in <module>
main()
File "/home/pi/thermostat_v5/thermostat.py", line 2678, in main
thermostatApp().run()
File "/usr/local/lib/python3.9/dist-packages/kivy/app.py", line 949, in run
self._run_prepare()
File "/usr/local/lib/python3.9/dist-packages/kivy/app.py", line 919, in _run_prepare
root = self.build()
File "/home/pi/thermostat_v5/thermostat.py", line 2643, in build
m = Smanager(transition=SwapTransition())
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/screenmanager.py", line 973, in __init__
super(ScreenManager, self).__init__(**kwargs)
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/floatlayout.py", line 65, in __init__
super(FloatLayout, self).__init__(**kwargs)
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/layout.py", line 76, in __init__
super(Layout, self).__init__(**kwargs)
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/widget.py", line 359, in __init__
self.apply_class_lang_rules(
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/widget.py", line 463, in apply_class_lang_rules
Builder.apply(
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 541, in apply
self._apply_rule(
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 661, in _apply_rule
child.apply_class_lang_rules(
File "/usr/local/lib/python3.9/dist-packages/kivy/uix/widget.py", line 463, in apply_class_lang_rules
Builder.apply(
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 541, in apply
self._apply_rule(
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 710, in _apply_rule
raise BuilderException(rule.ctx, rule.line,
kivy.lang.builder.BuilderException: Parser: File "/home/pi/thermostat_v5/kv/meteo.kv", line 6:
...
4: cols: 3
5: rows:5
>> 6: orientation: 'horizontal'
7: row_default_height: 50
8: padding: [20,10,20,10]
...
ValueError: GridLayout.orientation is set to an invalid option 'horizontal'. Must be one of: ['lr-tb', 'tb-lr', 'rl-tb', 'tb-rl', 'lr-bt', 'bt-lr', 'rl-bt', 'bt-rl']
File "/usr/local/lib/python3.9/dist-packages/kivy/lang/builder.py", line 705, 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 542, in kivy.properties.Property.set
File "kivy/properties.pyx", line 533, in kivy.properties.Property.set
File "kivy/properties.pyx", line 1253, in kivy.properties.OptionProperty.check
/usr/local/lib/python3.9/dist-packages/cherrypy/process/wspbus.py:254: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
warnings.warn(
Ovviamente sbaglio qualche passaggio, ma non riesco a capire dove.
E' possibile che sia dovuto al fatto che non ho configurato la parte relativa al meteo (in quanto non ci si puo' registrare)?
Aggiungo che o disabilitato il bluetooth e ancora devo collegare i sensori; ma non credo che questo sia il problema.