Forum Home › Forums › Development and Integration › Access Rapid SCADA data from Node-RED
- This topic has 21 replies, 3 voices, and was last updated 4 years, 11 months ago by
Mikhail.
-
AuthorPosts
-
September 13, 2020 at 6:47 am #7262
kumajaya
ParticipantHere it is: Node-RED flow
But got too much data for 5 minutes last data and we must set minutes data to 1 minute for a proper data response.
September 14, 2020 at 6:38 am #7264
greenfoxxParticipantHi!
Could you please clarify your question?
September 14, 2020 at 12:36 pm #7265kumajaya
ParticipantI expect last 5 minutes ‘minutes data’ = 5 datapoints but I got a thousands datapoints. My request:
{ "panelId":1, "range":{ "from":"2020-09-14T12:29:52.810Z", "to":"2020-09-14T12:34:52.811Z" }, "interval":"30s", "intervalMs":30000, "targets":[ { "target":"3201", "type":"timeserie" }, { "target":"3202", "type":"timeserie" } ], "format":"json", "maxDataPoints":5 }And no data update in between 23:59 – 06:59, it’s strange.
-
This reply was modified 5 years, 2 months ago by
kumajaya.
September 14, 2020 at 12:43 pm #7267kumajaya
ParticipantI’m talking about Grafana Data Provider API access from Node-RED.
September 15, 2020 at 1:00 pm #7275
greenfoxxParticipantCould you please provide response from Grafana?
Grafana Data Provider API represents parameters transmitted to Grafana for build graph and converts the specified date and time to the unix milliseconds.-
This reply was modified 5 years, 2 months ago by
greenfoxx.
September 15, 2020 at 2:58 pm #7277kumajaya
ParticipantYes, I analyzed Grafana communication using Wireshark, same result. I always got today minutes data (from 00:00) even Grafana asking for 5 minutes last data.
September 16, 2020 at 1:38 pm #7281
greenfoxxParticipantCould you please provide response from Grafana? It’s help me.
September 17, 2020 at 4:16 am #7283kumajaya
ParticipantRequest from Grafana dashboard: https://api.npoint.io/3b18da2d456f256ec75e
Response from Grafana Data Provider: https://api.npoint.io/c8625b14b7d1d496f6a8September 17, 2020 at 11:50 am #7288
greenfoxxParticipantThank you for details. We’ll investigate the problem and issue a fix. Thanks for the report.
October 5, 2020 at 2:18 pm #7356
greenfoxxParticipantWe fixed this issue.
October 5, 2020 at 2:41 pm #7357kumajaya
ParticipantI just confirmed it. Now I really got five data for last five minutes time range. Thank you.
But I have a different experience on Linux, Ubuntu 20.04 LTS. Sometime Grafana just shown no data. I have to debug it further, installed this modul on both Windows and Linux, RS running on Linux.
October 6, 2020 at 1:04 pm #7368October 6, 2020 at 1:19 pm #7371
greenfoxxParticipantThank you very much Kumajaya! We accepted your changes in the last commit. You were right.
The issue has been fixed.October 6, 2020 at 2:52 pm #7372kumajaya
ParticipantGreat! Very proud if I could contribute back to Rapid SCADA. BTW, RS need a better logo 😀
October 7, 2020 at 10:58 am #7378 -
This reply was modified 5 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.