Skip to content
Matt Magoffin edited this page Nov 17, 2019 · 1 revision

SolarNode Events

SolarNode provides the OSGi org.osgi.service.event.EventAdmin service for inter-plugin message publishing and subscribing. There are several standardised events used throughout SolarNode.

Control Info Captured

TODO - net/solarnetwork/node/NodeControlProvider/CONTROL_INFO_CAPTURED

Control Info Changed

TODO - net/solarnetwork/node/NodeControlProvider/CONTROL_INFO_CHANGED

Datum Captured

This event is published when a data source reads, or captures, a datum object from some information source. For example when a power meter data source reads the power and energy properties off a power meter device, it would publish this event. Each event contains the following standard properties:

Property Type Description
Topic String net/solarnetwork/node/DatumDataSource/DATUM_CAPTURED
_DatumType String The primary data type of the captured datum. This is typically the fully-qualified class name of an interface that extends net.solarnetwork.node.domain.Datum.
_DatumTypes Array<String> List of data types of the captured datum. Datum can adhere to any number of types; this provides the complete list.
created Number The time stamp of the datum, in milliseconds since the epoch.
sourceId String The source ID assigned to the datum.

Additional properties will be included depending on the data source that generated the event. Consult the documentation of the data source for more information, or see the standardized property names suggested by SolarNetwork that many plugins follow.

Datum Stored

TODO - net/solarnetwork/node/dao/DATUM_STORED

Datum Uploaded

TODO - net/solarnetwork/node/UploadService/DATUM_UPLOADED

Setting Changed

TODO - net/solarnetwork/node/dao/SETTING_CHANGED

Clone this wiki locally