Sending a reading message

Complete the steps in this section to send the reading message.

  1. Copy the CSV file to the /opt/IBM/water/apps/simulator/incoming folder specified in the simulator.properties file.
  2. Start the Simulator by running the following command: nohup ./run_simulator.sh > simulator.log &
    Note: Check the Simulator is not already running. To check the startup status, view the Simulator log by entering the command: tail –f simulator.log. If the Simulator is running, you will need to stop and restart if you have made any changes to the configuration.
  3. Run the command ./run_simulator.sh to send the message. The Simulator monitors the incoming folder, and then processes the CSV files one by one. All processed CSV files are placed into the processed folder which is also configured in simulator.properties.
  4. Verify the value, status trending, and send time in the Device Management Enablement interface has changed.
The Simulator uses the Java Client to connect to WebSphere® MQ and send the processed messages to the queue directly. You can write your own application to send the messages to the WIH.Reading.IN queue directly, however the messages in the queue must include both the solution application and model ID information. The format for such messages is:
Sunshine, SunshineWaterGroup, PRV19_Setting_Value,40.0,2013-10-02T14:30:01.0+08:00
Sunshine, SunshineWaterGroup, PRV24_Setting_Value,100.0,2013-10-02T14:30:01.0+08:00