Access Rapid SCADA data from Node-RED

Forum Home Forums Development and Integration Access Rapid SCADA data from Node-RED

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #7262
    kumajaya
    Participant

    Here 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.

    #7264
    greenfoxx
    Participant

    Hi!

    Could you please clarify your question?

    #7265
    kumajaya
    Participant

    I 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 3 years, 7 months ago by kumajaya.
    #7267
    kumajaya
    Participant

    I’m talking about Grafana Data Provider API access from Node-RED.

    #7275
    greenfoxx
    Participant

    Could 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 3 years, 7 months ago by greenfoxx.
    #7277
    kumajaya
    Participant

    Yes, 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.

    #7281
    greenfoxx
    Participant

    Could you please provide response from Grafana? It’s help me.

    #7283
    kumajaya
    Participant

    Request from Grafana dashboard: https://api.npoint.io/3b18da2d456f256ec75e
    Response from Grafana Data Provider: https://api.npoint.io/c8625b14b7d1d496f6a8

    #7288
    greenfoxx
    Participant

    Thank you for details. We’ll investigate the problem and issue a fix. Thanks for the report.

    #7356
    greenfoxx
    Participant

    We fixed this issue.

    #7357
    kumajaya
    Participant

    I 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.

    #7368
    Mikhail
    Moderator

    @kumajaya thank you for your help. It is very useful. We will check this.

    #7371
    greenfoxx
    Participant

    Thank you very much Kumajaya! We accepted your changes in the last commit. You were right.
    The issue has been fixed.

    #7372
    kumajaya
    Participant

    Great! Very proud if I could contribute back to Rapid SCADA. BTW, RS need a better logo 😀

    #7378
    kumajaya
    Participant
Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.