Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History Screen: Incorrect display of numerical contents of string fields #2950

Open
hsteinme opened this issue Feb 12, 2025 · 2 comments
Open
Labels

Comments

@hsteinme
Copy link

In the history screen, leading zeros or last decimal zeros are not displayed when displaying the numerical content of string fields.

Test script:

['xxx', '1.1000', '00004711'].forEach(function(MyValue, MyIndex) {
    setTimeout(function() {
        setState('0_userdata.0.MyTest', MyValue);
        log('MyValue: ' + MyValue);
    }, MyIndex * 1000);
})

Display in the history screen:

Image

Log:

javascript.0	09:49:49.732	info	script.js.common._Test._Test~: MyValue: xxx
javascript.0	09:49:50.731	info	script.js.common._Test._Test~: MyValue: 1.1000
javascript.0	09:49:51.732	info	script.js.common._Test._Test~: MyValue: 00004711

Definition of the data point:

{
  “common": {
    “name": ‘MyTest’,
    “desc": ‘Manually created’,
    “role": ‘state’,
    “type": ‘string’,
...

My versions:

history 3.0.1
JS controller 7.0.6
node 18.20.4
Linux RaspberryPi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
@Apollon77 Apollon77 transferred this issue from ioBroker/ioBroker.history Feb 12, 2025
@Apollon77
Copy link
Collaborator

Thats an Admin topic

@hsteinme
Copy link
Author

Thank you for feedback and issue transfer.

@hsteinme hsteinme changed the title Incorrect display of numerical contents of string fields History Screen: Incorrect display of numerical contents of string fields Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants