Skip to content

Notifications as an activity tracker

Hi All!

 

I want to use the notification manager as an extensive "activity tracker".
I'm still a bit fuzzy on this topic, so a bit of explanation of experts would certainly help!

As I understand, there are two parts of this.
The Notification Manager and the Notification Logger.
The Notification logger subscribes to the Notification Manger, filters the notifications and creates a database with the filtered notifications.
This database can be configured in a .xml and is named an archive? Like the one in /opt/plcnext/logs/default.sglite.

Let us say, I want to create a C++ program that "logs" different actions, corresponding to a boolean to the archive.
Could I create a C++ program that runs in the ESM that is connected to the out ports of other programs and sends a notification as soon as the value of this port get set to true?

The notification manager and logger would to the rest of the work for me?

Could you provide me with a example project or a code snipped?
I'll document my process and might distill it into a makersblog as I could not find one already and I think it is a very useful feature :)


With the kindest regards

Dries

Comments

Sign In or Register to comment.