lorawan-stack icon indicating copy to clipboard operation
lorawan-stack copied to clipboard

Show normalized payload in the Console

Open johanstokking opened this issue 3 years ago • 7 comments

Summary

Show normalized payload in the Console

References https://github.com/TheThingsNetwork/lorawan-stack/pull/5752#pullrequestreview-1093063800

Current Situation

The new normalized_payload field in ApplicationUplink and ApplicationNormalizedUplink contain a known data schema: JSON Schema and documentation.

There is now very basic support for showing air and wind (https://github.com/TheThingsNetwork/lorawan-stack/commit/425b41a29ef38ecbbc2695abb35f48c34d4434c2), showing values as JSON.

The payload code editor shows normalized_payload{_warnings} as returned fields, but not as prominently as decoded uplink data.

Why do we need this? Who uses it, and when?

I think it would be good UX to show normalized payload if it's available.

Proposed Implementation

Low hanging fruit would be to show the normalized payload nicely in the payload editor. This would need its own code editor. If the normalized payload is present, it might be shown more prominent than decoded payload (but one does not replace the other).

What would be nice in the event view, is to show the values nicely. For example: Air: 25.4 ℃, wind: 4 bft (NNE) (if the normalized_payload were to contain {"air":{"temperature":25.4},"wind":{"speed":6.1,"direction":15}}.

Cherry on the pie would be to render temperature graphs based on historical data retrieved from the storage integration. We still don't want to be come an IoT platform, so this is a sliding edge, but it would be cool.

Contributing

  • [X] I can help by doing more research.
  • [ ] I can help by implementing the feature after the proposal above is approved.
  • [X] I can help by testing the feature before it's released.

Code of Conduct

johanstokking avatar Sep 01 '22 13:09 johanstokking

Also good to atleast have the wireframes for this early in Q3.

KrishnaIyer avatar Jul 04 '23 12:07 KrishnaIyer

I've finished designing this feature as part of the general Console UX updates. Planning will follow.

kschiffer avatar Aug 31 '23 09:08 kschiffer