@@ -2,11 +2,11 @@ A display and a script to show the data of the different sensors were already ad
...
@@ -2,11 +2,11 @@ A display and a script to show the data of the different sensors were already ad
## Setup
## 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
## 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
### General
...
@@ -223,8 +223,15 @@ The text to display is the second entry of the sys argv list. The input should b
...
@@ -223,8 +223,15 @@ The text to display is the second entry of the sys argv list. The input should b
### cycle_lcd.py
### 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.
##
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.