Skip to content

Incorrect storage of some data #2

@jteg68

Description

@jteg68

Hi,

I think this is a MxChartDB bug as I couldn't see any corresponding log messages in z-way.

When configuring trends yesterday, with the MxChartDB version from the app store, there were some measurments stored incorrectly in the database. Instead of for example the temperature 25.4, a string "25.4" was stored. The trend display issued error messages like this one:
sensor=2, point=35, Time=2025-07-13 11:46:30: you cannot mix numeric and text labels! 25.4 >< 24.98

At a quick glance this seemed to happen when a new signal was added, but not for everyone of them. An example from the database below:

sqlite> select * from MxChartDB18 where val like '%"25%';
1752399721257|[1752399721257, 25.16, "25.4"]
1752399792046|[1752399792046, 25.16, "25.4"]
1752399852310|[1752399852310, 25.16, "25.4"]
1752399911587|[1752399911587, 25.16, "25.4"]
1752399971851|[1752399971851, 25.16, "25.4"]
1752399978651|[1752399978651, 24.6200016, "25.4"]

In the data view the numbers are shown correctly as numbers, not strings, but with the same font colour as the timestamp (string). Maybe that is the caused by the browser.

The error messages appear with the latest version from github as well as with the one from app store.

Thanks,
Jörgen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions