The loadpubliser is a java application that publishes the OpenFMB Phase I Resource Reading Profile using MQTT and uses the openfmb_common_mqtt repo. The loadpublisher is designed to be part of the overall Dtech Demo. It uses the kW load Table in the properties file to pusblish values (kW). The load table is composed of 24 hourly values and the publisher interpolates between the values with adds jitter to be published at the MQTT publish rate parameter.
A quick introduction of the minimal setup you need to get the loadpublisher up & running. NOTE: This project is used in the Dtech Demo. Refer to Wiki for information on DTech Demo. You can separately install and run the project but you will need to additionaly install a MQTT broker and other processes depending on your use. Also dependencies such as JAVA, GIT and the MQTT Broker are described in the Wiki above
java -cp openfmb-loadpublisher-1.0-jar-with-dependencies.jar com.dukeenergy.eto.openfmb.LoadPublisherThe loadpublisher jar above can we run with the entry point provided.
Please refer to the Wiki pages for the Demonstration and Prerequisites for the demo and these cooresponding repository projects.
The loadpublisher is dependent on the openfmb-common-mqtt repository. To build the loadpublisher do the following:
git clone https://github.com/openfmb/openfmb-loadpublisher.git
cd openfmb-loadpublisher
mvn clean installThe build jar is put in the target directory and needs to be moved to the main directory where the properities files are located.
The main configuration file is called "LoadPublisher.properties". The user can set a number of parameters to affect the behavior of the application including the following:
- MQTT Broker IP and Host
- SSL Configuration Information
- MQTT QOS
- MQTT Publish Rate
- kW Load Table
- OpenFMB
- Logical Device ID
- MRID
- Desc
- Name
David Lawrence, Duke Energy,
Dwayne Bradley, Duke Energy,
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Please review the CONTRIBUTING file.
See the APACHE_FILE_HEADER file for more info.
