hjelev / rpi-mqtt-monitor

Raspberry Pi MQTT Monitor gathers system information and sends it to a MQTT server.
GNU General Public License v3.0
155 stars 41 forks source link

Raspian 12 Value Error #102

Closed apollo40 closed 2 months ago

apollo40 commented 3 months ago

When i try to let the the rpi-cpu2mqqt.py run i get the following error:

Traceback (most recent call last): File "/root/rpi-mqtt-monitor/src/rpi-cpu2mqtt.py", line 730, in gather_and_send_info() File "/root/rpi-mqtt-monitor/src/rpi-cpu2mqtt.py", line 630, in gather_and_send_info cpu_load, cpu_temp, used_space, voltage, sys_clock_speed, swap, memory, uptime_days, uptime_seconds, wifi_signal, wifi_signal_dbm, rpi5_fan_speed = collect_monitored_values() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/rpi-mqtt-monitor/src/rpi-cpu2mqtt.py", line 613, in collect_monitored_values memory = check_memory() ^^^^^^^^^^^^^^ File "/root/rpi-mqtt-monitor/src/rpi-cpu2mqtt.py", line 84, in check_memory memory = round(float(memory.decode("utf-8").replace(",", "."))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: could not convert string to float: ''

hjelev commented 2 months ago

duplicate issue