... | ... | @@ -2,11 +2,11 @@ A display and a script to show the data of the different sensors were already ad |
|
|
|
|
|
## Setup
|
|
|
|
|
|
Use `docker-compose.lcd-monitor.yml` to build and run a Docker container. The docker compose file reuses `Rfid.Dockerfile`. The component could be run without Docker too.
|
|
|
Use `docker-compose.lcd-monitor.yml` to build and run a Docker container. The docker compose file reuses `Rfid.Dockerfile`. The component could be run without Docker too. SPI needs to be activated on the Raspberry PI if the RFID reader is connected to it.
|
|
|
|
|
|
## Implementation Basyx
|
|
|
|
|
|
The concept of the implementation is compareable to the one for the light or sensor implementation. An interface ```IDisplay``` as well as the class ```Display``` implementig it are used. The `LcdDisplayController` creates the displays and uses the `DisplaySubmodelProvider` to create, register and upload the AAS as well as host and register the submodules.
|
|
|
The concept of the implementation is compareable to the one for the lights or sensor implementation. An interface ```IDisplay``` as well as the class ```Display``` implementig it are used. The `LcdDisplayController` creates the displays and uses the `DisplaySubmodelProvider` to create, register and upload the AAS as well as host and register the submodules.
|
|
|
|
|
|
### General
|
|
|
|
... | ... | @@ -223,10 +223,17 @@ The text to display is the second entry of the sys argv list. The input should b |
|
|
|
|
|
### cycle_lcd.py
|
|
|
|
|
|
This script is the script `display.pi`. Nothing was changed.
|
|
|
This script is the script [`display.pi`](https://gitlab.hrz.tu-chemnitz.de/vws-demo/vws-spielwiese/-/blob/main/scripts/lcd/display.py). Nothing was changed.
|
|
|
|
|
|
##
|
|
|
|
|
|
## HTTP/REST
|
|
|
For the LCD the follwoing MQTT topics are used:
|
|
|
```
|
|
|
display/Lcd_<ID>/<operation>
|
|
|
```
|
|
|
where operation can be `text` or `cycle`. If text is used, the message payload needs to contain a text that than is shown on the display. cycle is used for starting the script cycling through the different sensor values.
|
|
|
|
|
|
## HTTP/REST
|
|
|
|
|
|
To for example invoke the cycle on a LCD called `Lcd_0` the following URL can be used for a POST request:
|
|
|
```http://main.local:4001/aasServer/shells/urn:de.olipar.basyx:lcd-monitor.local:Lcd_0/aas/submodels/display/submodel/submodelElements/cycleSensorValues/invoke```
|
... | ... | |