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

Feature Request: remove dot in numbers greater than 999 #54

Closed mtoensing closed 1 year ago

mtoensing commented 1 year ago

The problem

In numbers like 1.456 is always a dot that can't be removed with iobroker itself. It would be great if we could strip these dots from numbers. The result would be more space on the display.

IMG_5431

Version of nodejs

recent

Version of ioBroker js-controller

recent

Version of Adapter

recent

Version of awtrix-light firmware

0.71

Operating system running ioBroker

Linux

Checklist of files to include below

Additional information & file uploads

No response

github-actions[bot] commented 1 year ago

Thanks for reporting @mtoensing!

  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!
mtoensing commented 1 year ago
Screenshot 2023-07-30 at 18 31 58

This is a screenshot of the object editor. Interesting is that the number in the iobroker object explorer is displayed without the dot. So this is either grounded in the firmware itself or the adapter is adding it.

klein0r commented 1 year ago

So this is either grounded in the firmware itself or the adapter is adding it.

Looks like the admin adapter uses another function for format values... I'm using this one of the adapter lib:

https://github.com/ioBroker/ioBroker.js-controller/blob/b84e3f2343b8204d74526d565f2c3e43d36a9fe1/packages/adapter/src/lib/adapter/adapter.ts#L6805-L6838

or the adapter is adding it.

The underlying adapter library adds it. See ref.

Duplicate of #43