Meter Push

Avatar

sdg.marinusvz
2021-06-24 20:27

It is possible to send exception data on a meter to a remote server via a POST. To do that, add a Meter Push Updater entity, with the correct URL end-point.

You can edit the list of meters associated with it. When meters are associated like that, they will show up as blocks to the left of the Meter Push Updater entity on the overview screen. When meters change, it will cause the entities to the right to receive a notifyUpdate.

The mode currently supported for the Meter Push Updater, is to send power failures and restorations to the HTTP url in question (not only Last Gasp power failure events, but also Power Failures read for the meter event log). Eventually more events and other data, like profile will also be supported.

We support the getPushLog.jsp API to see up to when has been pushed, and getPushErrorLog.jsp to see failed push attempts.

Avatar

sdg.marinusvz
2022-10-11 12:33
Last Edited 2022-10-11 12:35

For the json format, we now supports Profile and Totals, and also events. In general each record starts with the meter serial and ends with the date and time (date and time of total or start date and time of event or end date and time of profile period).


The json event format is similar to the profile and totals, in that the meter serial is the first column and the date (start date) is the last column. However inbetween there can be something in the format of eg:
'events':[{'edate':'ongoing','logged':'2022-06-08','ended':'not yet','event':'mtamper','eventid':10,'eclass':'QoS','eclassid':2,'value':''}]

and the events must be enabled for notification, in Edit->Meter Event Setup

Avatar

sdg.matiaan
2023-01-17 17:10
Last Edited 2023-01-18 09:46

You can add the Push Updater under File->New->Servers->Meter Push Updater.

You'd probably want to specify json always, since Last Gasp was a client specific implementation.
Please remember to put the http:// or https:// in front of the URL.
Not adding this will cause it to not work.



You can force the Push Updater to push a Meter's data now, by going to Tools->Send Meter Entity Change Notification and specifying the meter there.


You can use this screen as a test for your push updater:
Basically just point your push updater to http://adam.pnpscada.com:80/testPush.jsp?cache=Y
and then when you visit the https://adam.pnpscada.com/testPush.jsp link, it will show you all the pushes made to that server since startup.
You should get something like this:

Avatar

gerhard
2023-03-16 16:44

Is it possible to get sample JSON documents for the different Options in order to set up models in our API:

Profile / Totals / Events / Phasors / Billing Registers / Instrumentation

Avatar

sdg.matiaan
2023-04-11 13:28
Last Edited 2023-04-11 13:31

example of totals and profile in one push

[
   {
      "meterSerial":"16236545",
      "e1":18476.8,
      "e2":0.16,
      "f1":7671.36,
      "f4":3900.0,
      "tstatus":300333,
      "cdat":"2023-04-10 00:23:29",
      "date":"2023-04-09 00:00:00"
   },
   {
      "meterSerial":"16236545",
      "e1":18503.84,
      "e2":0.16,
      "f1":7671.36,
      "f4":3955.68,
      "tstatus":300333,
      "cdat":"2023-04-11 00:10:08",
      "date":"2023-04-10 00:00:00"
   },
   {
      "meterSerial":"16236545",
      "q1":0.0,
      "q2":0.0,
      "q3":0.0,
      "q4":1.4400000000000546,
      "p1":0.7999999999992724,
      "p2":0.0,
      "kVA":1.6473008225576145,
      "pstatus":0,
      "date":"2023-04-10 00:30:00"
   },
   {
      "meterSerial":"16236545",
      "q1":0.0,
      "q2":0.0,
      "q3":0.0,
      "q4":1.4400000000000546,
      "p1":0.8000000000029104,
      "p2":0.0,
      "kVA":1.647300822559381,
      "pstatus":0,
      "date":"2023-04-10 01:00:00"
   },
   {
      "meterSerial":"16236545",
      "q1":0.0,
      "q2":0.0,
      "q3":0.0,
      "q4":0.8000000000006366,
      "p1":0.47999999999956344,
      "p2":0.0,
      "kVA":0.9329523031755694,
      "pstatus":0,
      "date":"2023-04-10 01:30:00"
   },
   ... every half hour until 00:00
   {
      "meterSerial":"16236545",
      "q1":0.0,
      "q2":0.0,
      "q3":0.0,
      "q4":2.5600000000004,
      "p1":1.5999999999985448,
      "p2":0.0,
      "kVA":3.0188739622576812,
      "pstatus":0,
      "date":"2023-04-11 00:00:00"
   }
]

Avatar

sdg.matiaan
2023-08-16 11:16
Last Edited 2023-08-16 11:21

to get the pushes via FTP

1) add an FTP updater


2) Select this entity and go to Edit->Associate Push Meters


3) Add More Meters
4) Select the meters you want to add
5) Submit


6) if you dont want to wait until the meter gets data, you can go to Tools->Send Meter Entity Change Notification
7) Choose the meter in the set and click Submit

8) Alternatively you can go to Tools->Communication Monitor and try to read the meter now



9) You should now get the file FTP'd to you

Please log in to post a comment