FAQ index
1. How to use the Raspberry Pi devices GPIO for logging?
To show the GPIO device of the host device inside the talologger container, add a devices
section to the docker-compose.yml and map the host device /dev/gpiomem to exactly the same
device name inside the talologger container. Enable RPIGPIO-module in taloLogger configuration.
Below is an example of partial docker-compose.yml with required addition.
services:
talologger:
restart: always
image: olammi/talologger
container_name: talologger
hostname: talologger
environment:
TZ: Europe/Helsinki
volumes:
- ./taloLogger.conf:/app/taloLogger.conf
- ./vol/state:/app/var/state
- ./vol/db/:/app/data
devices:
- /dev/gpiomem:/dev/gpiomem
2. How to use serial port devices connected to the host device for logging?
To access a serial port device attached to the host device inside the talologger container, add a devices
section to the docker-compose.yml and map the serial port device from the host device inside the
the talologger container. Configure taloLogger to use the serial device for relevant module in taloLogger.conf.
Below is an example of partial docker-compose.yml with example serial port addition.
services:
talologger:
restart: always
image: olammi/talologger
container_name: talologger
hostname: talologger
environment:
TZ: Europe/Helsinki
volumes:
- ./taloLogger.conf:/app/taloLogger.conf
- ./vol/state:/app/var/state
- ./vol/db/:/app/data
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
3. How to use OneWire devices for logging with OWFS?
To use OneWire information for logging inside the talologger container, OWFS may be installed on the
host device and the OWFS mount directory to be shown inside the container in a know path. Use taloLogger OWFS module
to read the data in the mount directory. Add the OWFS mount directory to the container file system using the
volumes section in the docker-compose.yml.
Below is an example of partial docker-compose.yml with example addition to volumes. The OWFS file system is mounted
on the host device in folder /mnt/owfs. The added directive will show the OWFS file structure inside the
container in path /app/owfs:
services:
talologger:
restart: always
image: olammi/talologger
container_name: talologger
hostname: talologger
environment:
TZ: Europe/Helsinki
volumes:
- ./taloLogger.conf:/app/taloLogger.conf
- ./vol/state:/app/var/state
- ./vol/db/:/app/data
- /mnt/owfs:/app/owfs