klein0r / ioBroker.awtrix-light

Integrate your Awtrix Light device (e.g. Ulanzi TC001) via HTTP
https://haus-automatisierung.com
MIT License
62 stars 4 forks source link

Bug report Fehler beim Runden #63

Closed klostopfer closed 1 year ago

klostopfer commented 1 year ago

The problem

Runden der Werte funktioniert nicht mehr korrekt. Vermutlich wird irgendwo das Dezimaltrennzeichen nicht richtig erkannt.

Eine Änderung der Kommaeinstellungen in den Expertenoptionen ändert nichts.

Wenn 0 Dezimalstellen angegeben werden sollen, werden trotzdem 2 ausgegeben.

Version of nodejs

16.18.0

Version of ioBroker js-controller

4.0.23

Version of Adapter

0.7.1

Version of awtrix-light firmware

0.83

Operating system running ioBroker

Raspbian 11

Checklist of files to include below

Additional information & file uploads

awtrix-light.0 | 2023-09-03 18:29:04.783 | debug | sending "POST" request to "/api/custom?name=solar" with data: {"text":"117,90 W","textCase":2,"background":"#000000","color":"#FFFFFF","noScroll":true,"icon":"51628"} -- | -- | -- | -- awtrix-light.0 | 2023-09-03 18:29:04.781 | debug | [refreshCustomApps] formatted value of objId "0_userdata.0.Energie.Leistung_Solar" from 117.9 to 117,90 (0 decimals) with "system" awtrix-light.0 | 2023-09-03 18:29:04.768 | debug | [refreshCustomApps] Refreshing custom app "solar" with icon "51628" and text "%s %u"
github-actions[bot] commented 1 year ago

Thanks for reporting @klostopfer!

  1. Check if this topic is not covered in the documentation
  2. Ensure that you use the latest beta version: NPM version
  3. Attach all necessary log files in debug mode, screenshots and other information to reproduce this issue
  4. Search for the issue topic in other/closed issues to avoid duplicates!