How to launch the application using Docker:
- Pull the image:
sudo docker pull semiot/simulator-electric-meters- Run the container:
sudo docker run -i -t -v /semiot-platform/simulator-electric-meters:/semiot-platform/simulator-electric-meters -p 40000-41000:40000-41000/udp semiot/simulator-electric-metersOpen in Copper next URI: coap://${HOSTNAME}:${[startPort..startPort + count]}/.well-known/core and "observe" registrations on coap://${HOSTNAME}:${[startPort..startPort + count]}/amperage.
Create Java properties file /semiot-platform/simulator-electric-meters/config.properties with next parameters:
hostname- ip or name of simulators' base host, using in meter description;NumberOfMiddleMeters- number of substations;StartDelay- an initial delay of work, ms;WorkDelay- sets the delay of data generation, ms;AverageAmperageConsumer- sets the average value of amperage that consumer wants to get;DeviationAmperageConsumer- sets the deviation value of this amperage;AverageVoltageOrigin- sets the average value of the voltage from the power station;DeviationVoltageOrigin- sets the deviation value of this voltage;AverageResistanceOnWire- sets the average value of the resistance wires. The value does not depend more on any other factors;DeviationResistanceOnWire- sets the deviation value of this resistance;StartPort- initial port for simulators; ports[${startPort}..${startPort + count}]would be occupiedregisterURI- URI of available Device Proxy Service