Time difference event

Adding the possibility to discover time difference out of accepted time difference during time synchronization. Information can be used to mark meter data values as trusted (within accepted time difference) or not trusted (outside accepted time difference). This feature increases the quality of collected meter data used for billing purposes.

This feature was released in 3.2.6 for CMe2100, CMi2110, CMi2130

 

Properties timeevent.cfg

schedulable=false
enabled=false
command=report
event=timeevent

sms.enabled=false
sms.template=3

email.enabled=true
email.template=1005

ftp.enabled=false
ftp.template=2005

http.enabled=false
http.template=3005

schedule.retrymax=5
schedule.retryoffset=300

 

Example to enable time difference event future where a SMS till be sent

set timeevent.enabled=true
set timeevent.sms.to=+460712547458
set common.timeevent.timedifference=7
set timeevent.sms.enabled=true
set timeevent.sms.template=3

If a time synchronization is done and there is a time difference greater than 7 seconds, a SMS will be sent to inform that last time synchronization overreached configured settings.

 

Example to enable time difference event feature where a HTTP post will be sent to inform that last time synchronization overreached configured settings.

set timeevent.enabled=true
set timeevent.http.url=https://event.theurl.com
set common.timeevent.timedifference=7
set timeevent.http.enabled=true
set timeevent.http.template=3005

 

SMS

Time difference threshold breached

 

Email

Subject: Time difference threshold breached
Body:
<p>
System time has drifted beyond max configured threshold since last time synchronization.
</p>
<p>
<b>Event information:</b><br>
Configured threshold: 7<br>
Actual difference: 9<br>
Local time before time sync: 2021-04-28 11:59:23<br>
Local time after time sync: 2021-04-28 11:59:32<br>
Previous local time before time sync: 2021-04-27 23:59:23<br>
Previous local time after time sync: 2021-04-27 23:59:31<br>
Last sync with acceptable time diff: 2021-04-27 11:59:23<br>
</p>

 

FTP

#key;value
time;2021-04-28 11:59:59
serial-number;0148000356
event;timedifference
threshold;7
actual;9
local-time-before;2021-04-28 11:59:23
local-time-after;2021-04-28 11:59:32
prev-local-time-before;2021-04-27 23:59:23
prev-local-time-after;2021-04-27 23:59:31
last-time-ok-diff;2021-04-27 11:59:23

 

HTTP

#key;value
time;2021-04-28 11:59:59
serial-number;0148000356
event;timedifference
threshold;7
actual;9
local-time-before;2021-04-28 11:59:23
local-time-after;2021-04-28 11:59:32
prev-local-time-before;2021-04-27 23:59:23
prev-local-time-after;2021-04-27 23:59:31
last-time-ok-diff;2021-04-27 11:59:23

 

 

Was this article helpful?

1 out of 1 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Article is closed for comments.