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 20 total)
  • Author
    Posts
  • #7262
    Avatarkumajaya
    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
    greenfoxxgreenfoxx
    Participant

    Hi!

    Could you please clarify your question?

    #7265
    Avatarkumajaya
    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 1 month, 2 weeks ago by Avatarkumajaya.
    #7267
    Avatarkumajaya
    Participant

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

    #7275
    greenfoxxgreenfoxx
    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 1 month, 2 weeks ago by greenfoxxgreenfoxx.
    #7277
    Avatarkumajaya
    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
    greenfoxxgreenfoxx
    Participant

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

    #7283
    Avatarkumajaya
    Participant

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

    #7288
    greenfoxxgreenfoxx
    Participant

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

    #7356
    greenfoxxgreenfoxx
    Participant

    We fixed this issue.

    #7357
    Avatarkumajaya
    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
    MikhailMikhail
    Moderator

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

    #7371
    greenfoxxgreenfoxx
    Participant

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

    #7372
    Avatarkumajaya
    Participant

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

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