Can't get BigTemperature to work

Hi, I have been using wfpiconsole for a while now but know just about nothing about Python or Kivy. I have managed to get a battery voltage display that changes colours to reflect the mode associated with battery in the Solar window, but that was mainly a brute force and ignorance approach.

I went to get the BigTemperature display working, but have had no luck.

In the user folder I have renamed:
customPanels.kv.tmpl to customPanels.kv and
customPanels.py.tmpl to customPanels.py.

I then restarted the programme with no problem. I then went to settings to assign BigTemperature a panel, and sure enough it is listed so I assigned it to primary panel 6.

The program crashed with a number of error messages, the last one being:
"File “”, Line 1, in
NameError: name ‘BigTemperature Panel’ is not defined

If I try to restart the programme I get the error messages again. The only way I have been able to restart is to open wfpiconsole.ini and remove BigTemperature from:
[PrimaryPanels]
.
.

Panelsix = BigTemperature

Have I missed a step somewhere (quite likely)
Barry

I’ve just tested this my end, and unfortunately I can’t recreate the problem. I have renamed customPanels.kv.tmpl to customPanels.kv and customPanels.py.tmpl to customPanels.py, and added the BigTemperature panel to panel 6, and it works with no issues. Can you share the complete contents of the wfpiconsole.log file (or everything that is printed to the terminal) rather than just the last line?

Thanks Peter, here is the log from start to crash

[0m ] [Logger ] Record log in /home/barry/.kivy/logs/kivy_24-06-05_19.txt
[0m ] [Kivy ] v2.2.0
[0m ] [Kivy ] Installed at “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/init.py”
[0m ] [Python ] v3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110]
[0m ] [Python ] Interpreter at “/home/barry/wfpiconsole/venv/bin/python3”
[0m ] [Logger ] Purge log fired. Processing…
[0m ] [Logger ] Purge finished!
[0m ] [Config ] Verifying station details
[0m ] [Factory ] 190 symbols loaded
[0m ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[0m ] [Window ] Provider: sdl2
[0m ] [GL ] Using the “OpenGL ES 2” graphics system
[0m ] [GL ] Backend used
[0m ] [GL ] OpenGL version <b’2.1 Mesa 20.3.5’>
[0m ] [GL ] OpenGL vendor <b’Broadcom’>
[0m ] [GL ] OpenGL renderer <b’V3D 4.2’>
[0m ] [GL ] OpenGL parsed version: 2, 1
[0m ] [GL ] Shading version <b’1.20’>
[0m ] [GL ] Texture max size <4096>
[0m ] [GL ] Texture max units <16>
[0m ] [Window ] auto add sdl2 input provider
[0m ] [Window ] virtual keyboard not allowed, single mode, not docked
[0m ] [Text ] Provider: sdl2
[0m ] [GL ] NPOT texture support is available
[0m ] [Websocket ] 2024-06-05 17:41:35 - Opening connection
[0m ] [Base ] Start application main loop
[0m ] [Websocket ] 2024-06-05 17:41:36 - Connection open
[0m ] [Base ] Leaving application in progress…
Traceback (most recent call last):
File “/home/barry/wfpiconsole/main.py”, line 597, in
wfpiconsole_app.run()
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/app.py”, line 956, in run
runTouchApp()
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py”, line 574, in runTouchApp
EventLoop.mainloop()
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py”, line 339, in mainloop
self.idle()
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py”, line 383, in idle
self.dispatch_input()
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py”, line 334, in dispatch_input
post_dispatch_input(*pop(0))
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py”, line 302, in post_dispatch_input
wid.dispatch(‘on_touch_up’, me)
File “kivy/_event.pyx”, line 731, in kivy._event.EventDispatcher.dispatch
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/uix/behaviors/button.py”, line 179, in on_touch_up
self.dispatch(‘on_release’)
File “kivy/_event.pyx”, line 727, in kivy._event.EventDispatcher.dispatch
File “kivy/_event.pyx”, line 1307, in kivy._event.EventObservers.dispatch
File “kivy/_event.pyx”, line 1231, in kivy._event.EventObservers._dispatch
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/uix/settings.py”, line 640, in _set_option
self.value = instance.text
File “kivy/properties.pyx”, line 520, in kivy.properties.Property.set
File “kivy/properties.pyx”, line 567, in kivy.properties.Property.set
File “kivy/properties.pyx”, line 606, in kivy.properties.Property._dispatch
File “kivy/_event.pyx”, line 1307, in kivy._event.EventObservers.dispatch
File “kivy/_event.pyx”, line 1213, in kivy._event.EventObservers._dispatch
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/uix/settings.py”, line 329, in on_value
panel.set_value(self.section, self.key, value)
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/uix/settings.py”, line 734, in set_value
settings.dispatch(‘on_config_change’,
File “kivy/_event.pyx”, line 727, in kivy._event.EventDispatcher.dispatch
File “kivy/_event.pyx”, line 1307, in kivy._event.EventObservers.dispatch
File “kivy/_event.pyx”, line 1231, in kivy._event.EventObservers._dispatch
File “/home/barry/wfpiconsole/venv/lib/python3.9/site-packages/kivy/app.py”, line 1185, in _on_config_change
self.dispatch(‘on_config_change’, *largs[1:])
File “kivy/_event.pyx”, line 731, in kivy._event.EventDispatcher.dispatch
File “/home/barry/wfpiconsole/main.py”, line 338, in on_config_change
self.CurrentConditions.ids[panel_list[ii]].add_widget(eval(type + ‘Panel’)())
File “”, line 1, in
NameError: name ‘BigTemperaturePanel’ is not defined
[0m ] [Websocket ] 2024-06-05 17:42:03 - Closing connection
[0m ] [Websocket ] 2024-06-05 17:42:03 - Connection closed

Barry

Hi Peter, I have just installed the programme on a spare raspberry Pi 3+, and apart from being noticeably slower when making changes to the settings, it works as advertised, including BigTemperature, so I guess there is an issue with the install on the RPi4. I’ll reinstall it tomorrow and let you know.

Barry

1 Like