Yes, that is entirely possible. It is simplest to implement using the ui widgets provided by node-red-dashboard, which is the dashboard referred to here in the forum when people refer to 'the dashboard'. That provides user inputs for text, dropdown, numbers etc, and you can use the data entered to control your system. Also there are buttons and switches provided.
I've not done writing of data to InfluxDB from Grafana (other than using the InfluxDB admin addin). So not sure how easy that would be.
Dashboard is doable but you will need to think about how to handle multiple users. Dashboard isn't multi-user specifically though there are probably work-arounds you can use.
There are other options if you need to go further than Dashboard of course. But they require more up-front investment in developing a custom solution.
I didn't get that as being part of the requirement, so perhaps @mhswa can clarify, is the data written to influxdb coming through node-red? Writing to influxdb from node-red is very easy.
@Colin thank's for that reply, so will i be able to present my machinist with a dashboard that they can enter say some text or select a job from que to state that they are currently working on it?
@TotallyInformation thanks for the reply, i would have a node-red instance per machine (we have 5 CNC's)
@Colin That is where i am stuck at the moment, i would like node red to import the data direclty into a influxdb database so my grafana instance can access it like the user input on the node red dashboards?
Like the below so we can visualize the current job the machinist is on and which are completed
You have 2 choices and both work just fine. There is an InfluxDB node for convenience but additionally, because InfluxDB supports direct POSTing of data, you can use the http-request node to send data if you prefer. I've used both.
The trick for InfluxDB of course is getting the right data format. Something which I change rarely enough that I always have to look up.
If you can break down for us which part you are stuck on, I'm sure someone will be able to help further. The output from Node-RED, the InfluxDB data format or the access of the InfluxDB data from Grafana?
that is the thing i need help with looking at the documentation is a little confusing
Tags seem to be primarily what i would need to use but field keys would need to be unique it seems?
I've setup a form on the dashboard for the user to input plain text into a form that when submitted will inject the text into influx, it seems to work but its only injecting the Label of the form element into the DB an not the text itself. the lack of fields and tags may be the issue