Skip to content

Instantly share code, notes, and snippets.

@chainhead
Created September 15, 2024 09:57
Show Gist options
  • Save chainhead/9f14689e337e891a6a2fed4383764800 to your computer and use it in GitHub Desktop.
Save chainhead/9f14689e337e891a6a2fed4383764800 to your computer and use it in GitHub Desktop.
Install instructions

Instructions

  1. Set pull token and login with docker using the following command
$env:CR_PAT = "your_token"
$env:CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
  1. In launch/conf/platform.env, uncomment and set KAFKA_TAG=7.7.0
  2. In launch/conf/apps.env, uncomment and set DASHBOARD_TAG=wimera
  3. Launch platform with docker compose --env-file launch/conf/platform.env -f launch/platform.yaml up -d
  4. Ensure launch/conf/topics.env has PARTITION_COUNT=13
  5. Launch apps with docker compose --env-file launch/conf/apps.env -f launch/apps.yaml up -d
  6. Check if all containers are up with docker ps --format '{{.Names}}' The output should look as below.
mitra-m001-output
mitra-m001-events
mitra-m001-inputs
mitra-m001-mqttpd
mitra-m001-alerts
mitra-m001-alarms
mitra-m001-limits
mitra-platform-ksqldb
mitra-platform-broker
mitra-platform-mqtt

If this output is not seen, bring down applications and platform and start again.

#Shut down
docker compose --env-file launch/conf/apps.env -f launch/apps.yaml down
docker compose --env-file launch/conf/platform.env -f launch/platform.yaml down
# Bring up again
docker compose --env-file launch/conf/platform.env -f launch/platform.yaml up -d
docker compose --env-file launch/conf/apps.env -f launch/apps.yaml up -d
  1. Install curl or Postman.
  2. Set limits with curl as follows.
curl -X POST http://localhost:8083/limits -d @wimera-limts.json --header "Content-Type: application/json"

The JSON document with limits is defined below.

[
  {
    "key":"machinePos_axis01",
    "lo": -999,
    "hi": 999
  },
  {
    "key":"machinePos_axis02",
    "lo": -999,
    "hi": 999
  },
  {
    "key":"absolutePos_axis01",
    "lo": -999,
    "hi": 999
  },
  {
    "key":"absolutePos_axis02",
    "lo": -999,
    "hi": 999
  },
  {
    "key": "loadFor_Axis01",
    "lo": 0,
    "hi": 100
  },
  {
    "key": "loadFor_Axis02",
    "lo": 0,
    "hi": 100
  },
  {
    "key": "temperatureFor_Axis01",
    "lo": 20,
    "hi": 65
  },
  {
    "key": "temperatureFor_Axis02",
    "lo": 20,
    "hi": 65
  },
  {
    "key": "backlashFor_Axis01",
    "lo": 0,
    "hi": 20
  },
  {
    "key": "backlashFor_Axis02",
    "lo": 0,
    "hi": 20
  },
  {
    "key": "loadFor_Spindle01",
    "lo": 0,
    "hi": 100
  },
  {
    "key": "temperatureFor_Spindle01",
    "lo": 20,
    "hi": 65
  },
  {
    "key": "speedFor_Spindle01",
    "lo": 0,
    "hi": 5000
  }
]
  1. Start the FANUC client and point it to http://localhost:8084/data
  2. View dashboard at http://localhost:8080/ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment