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

v3 - Special Values to explicitly model limits #58

Open
kfkloos opened this issue Oct 5, 2021 · 0 comments
Open

v3 - Special Values to explicitly model limits #58

kfkloos opened this issue Oct 5, 2021 · 0 comments

Comments

@kfkloos
Copy link

kfkloos commented Oct 5, 2021

Hi, I am trying to understand Special Values for a case where I want to trasmit distinct single measurments via PPMP.

In the example it says:

          {"name": "turning point",
          "value": {
            "pressure": 101530,
            "force": 50
          }
        },
        {
          "name": "shutoffForce",
          "time": 24,
          "value": {
            "force": 24,
            "upperError": 26,
            "lowerError": 22,
            "upperWarn": 25,
            "lowerWarn": 23,
            "target": 24
            }
        },
        {
          "name": "shutoffPressure",
          "time": 24,
          "value": {
            "pressure": 100950,
            "upperError": 103000,
            "lowerError": 99000
          }
        }

In shutoffForce we have the "upperWarn", "target" etc. corresponding to limts for this point value. However, it is not explicitly expressend, that the limits & target belong to the paramter force. This is very limiting for analytics cases. Hence I suggest to modify the special values in the give example as follows:

        {
          "name": "shutoffForce",
          "time": 24,
          "singleValues": {
            "force": {"value": 24,
            "upperError": 26,
            "lowerError": 22,
            "upperWarn": 25,
            "lowerWarn": 23,
            "target": 24},

          }

This way it would be explicitly modelled that the limits belongs to the force tag. Even more, it would allow to combine "shutoffForce" and "shutoffPressure" into a single special value "shuttoff" and making int multi-dimensional.

With this change, PPMP process messages would also support single point measurments as well as they support series. (When doing that, please also consider making the series element optional for cases, where a device only measures single points.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant