User Tools

Site Tools


steam:examples:start

Loading Steam as a container, creating dummy JSON entries

  • Loading Steam as an image in TAR format:
docker load -i steam.tar
  • Check if the image is real:
docker image ls
  • Create a simple docker-compose.yml:
version: '2'
SERVICES:
    Steam:
        image: steam:0.9
        volumes:
            - /var/steam/:/etc/runtime/share
        network_mode: "host"
  • Installing Mosquitto to track the creation of entries.
sudo apt-get install mosquitto mosquitto-clients
  • Starting the container for the first time.
docker-compose up
  • Modification of the settings XML file (under/var/steam/Settings/).
 --> <SamplingThread-type>ADAS</SamplingThread-type>
 --> <ProcessingThread-type>MQTT</ProcessingThread-type>
	<!--ETHERCAT IP :127.0.0.1 / PORT 54011-->
	<!--MODBUS IP :192.168.0.12 / PORT 502-->
	<PhoenixIPAddress>192.168.214.152</PhoenixIPAddress>
	<PhoenixPort>54011</PhoenixPort>
	<packet-size>100</packet-size>
 --> <MQTT_Client_ID>ExampleClientPub</MQTT_Client_ID>
 --> <MQTT_Address>tcp://localhost:1883</MQTT_Address>
	<MQTT_Topic>communicationAdapter/hf</MQTT_Topic>
	<MQTT_UserName>testName</MQTT_UserName>
	<MQTT_Password>testPassword</MQTT_Password>
  • Start reading out entries posted in Mosquitto - please start in separate console:
paho_c_sub -t communicationAdapter/hf --connection tcp://localhost:1883
  • Restarting the container
docker-compose up

After this, the console named above as “separate console” should output the JSON messages from Steam.

steam/examples/start.txt · Last modified: 2021/07/11 16:22 by brinkhaus