spitzlbergerj / CaravanPi

Smarthome for Caravans and Motor Homes - System for measuring and displaying various values in caravans and motor homes, including climate values, fill levels and leveling data, energy data, propane/butane sensor. incl. display, config website, test routines, etc. Own circuit board created

Home Page:https://www.caravanpi.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DS18D20 Single digit temperature display incorrect

spitzlbergerj opened this issue · comments

If a temperature is to be displayed in the single-digit range, the preparation on the Magic Mirror will fail. In the corresponding file in the values directory of CaravanPi there is a second space before the temperature value which is misinterpreted by the Magic Mirror module.

1-wire output:

cat /sys/bus/w1/devices/28*/w1_slave
2e 01 4b 46 7f ff 0c 10 e4 : crc=e4 YES
2e 01 4b 46 7f ff 0c 10 e4 t=18875
63 00 4b 46 7f ff 0c 10 ec : crc=ec YES
63 00 4b 46 7f ff 0c 10 ec t=6187
51 01 4b 46 7f ff 0c 10 ab : crc=ab YES
51 01 4b 46 7f ff 0c 10 ab t=21062

CaravanPi values

tail -10 /home/pi/CaravanPi/values/28-01144fea82aa

28-01144fea82aa 20201023125104 11.06
28-01144fea82aa 20201023125204  6.18

Zwischen 20201023125204 und 6.18 befinden sich zwei Leerzeichen.

MagicMirror Anzeige

ErrorSingleDigitTemp

solved with latest update