sunfounder / pironman

GNU General Public License v2.0
15 stars 13 forks source link

pironman service not starting #2

Closed akicker closed 1 year ago

akicker commented 1 year ago

I am using Pi4 bullseye Kernel 5.15.84 service not starting - to test i run: /usr/bin/python3 /opt/pironman/main.py ------------------------23/01/20 15:25:24------------------------ pironman version: 1.2.4 username: pi config_file: /home/pi/.config/pironman/config.txt

23/01/20 15:25:24,216 [DEBUG] power_key_pin : 16 23/01/20 15:25:24,216 [DEBUG] fan_pin : 6 23/01/20 15:25:24,216 [DEBUG] rgb_pin : 12 23/01/20 15:25:24,216 [DEBUG] update_frequency : 0.5 23/01/20 15:25:24,217 [DEBUG] temp_unit : C 23/01/20 15:25:24,217 [DEBUG] fan_temp : 50.0 23/01/20 15:25:24,217 [DEBUG] screen_always_on : False 23/01/20 15:25:24,217 [DEBUG] screen_off_time : 60 23/01/20 15:25:24,217 [DEBUG] rgb_switch: True 23/01/20 15:25:24,217 [DEBUG] rgb_blink_speed : 50 23/01/20 15:25:24,217 [DEBUG] rgb_color : 0a1aff 23/01/20 15:25:24,217 [DEBUG]

Can't open /dev/mem: Permission denied 23/01/20 15:25:24,239 [DEBUG] rgb_strip init failed: ws2811_init failed with code -5 (mmap() failed) 23/01/20 15:25:24,239 [DEBUG] error 23/01/20 15:25:24,240 [DEBUG] name 'strip' is not defined

akicker commented 1 year ago

Reason found :-) its a language problem of command free had to modify line 18 within /opt/pironman/system_status.py free |grep Mem to free |grep Speicher (using my german setting) same problem with display always showing CPU: 0.0% - solution modify line 23: top -bn1 |awk '/Cpu(s):/ to top -bn1 |awk '/CPU(s):/