FlowFuse / FlowFuse/node-red-dashboard

All nodes that accept input to have a typedInput

Open
#92 2 comments 0 reactions 1 assignee Claimed by @Steve-Mcl View on GitHub
needs-triage size:L type:feature
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Description

To avoid having to split up and shift around properties in my object payload, please support a standard "property" input as a `typedInput`. Same as the built in switch node, file, range, etc, nodes do

![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/184f2856-e40c-4d0a-b40d-8b394f479251)
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/adf64214-d41f-47d3-ab88-3f46c2e7fe43)
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/697e4b78-ef67-45a8-9578-1f9c66e262fc)

I would recommend, to keep this simple, it would default to `msg.payload` and would only support `msg` and `JSONata`.

Anyone who knows JSONata can use `performance * availability * quality` directly in the input property
Anyone who doesn't know or like JSONata, can use a math node or other nodes to compute the OEE value then pass it into the ui-text node

This means given this payload:
```
{
name: "Cooling Stage 1"
time: '16:00',
cycleCount: 800,
availability: 0.938,
performance: 0.933,
quality: 0.983
OEE, "86%"
productionHours: 8,
partCount: 700,
targetCount: 800,
scrap: 12
}
```

I can change this...
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/e75875dc-2951-4850-83f0-b704fdc5e76a)

into this...

![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/63c8fc29-ac09-4a66-b163-6bafb522f504)

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.