OPC UA Server representing current weather information.
2.4K
To run the container following docker-compose.yml file can be used:
services:
ows:
image: ogamma/ows:latest
container_name: ows
hostname: your-domain-name
ports:
# host_port:container_port – OPC UA TCP
- "4855:4855"
volumes:
# Mount your own config to override citiesstations. Comment out to use the built-in station list.
# - ./config.toml:/etc/weather-opcua/config.toml:ro
# Config directory: holds PKI certificates (config/pki/) and dynamic stations (config/stations.toml).
- ./config:/app/config
environment:
RUST_LOG: info
# Root directory for runtime state (PKI certs + dynamic stations file).
# CONFIG_DIR: "/app/config"
# OPC UA TCP bind address (default: all interfaces)
BIND_ADDRESS: "0.0.0.0"
# OPC UA TCP port
# SERVER_PORT: "4855"
# Hostname advertised in discovery URL and used as default SAN DNS name
SERVER_HOSTNAME: "your-domain-name"
# DNS name in the server certificate SAN (defaults to container OS hostname)
# SAN_HOSTNAME: "your-domain-name"
# IP address in the server certificate SAN (defaults to IP resolved from SAN_HOSTNAME)
SAN_IP_ADDRESS: "your-ip-address"
# How long (seconds) a cached weather reading remains valid before a fresh fetch is triggered
# POLLING_INTERVAL_SECS: "60"
# Path to the station config file inside the container
# CONFIG_PATH: "/etc/weather-opcua/config.toml"
# Override the PKI subdirectory (defaults to {CONFIG_DIR}/pki)
# PKI_DIR: "/app/config/pki"
restart: unless-stopped
Change values your-domain-name and your-ip-address accordingly.
The server address space is organized following the pattern Objects/Weather/[Country]/[Region]/[Location]/[Parameter], where [Country]/[Region]/[Location] defines the city/location, and the [Parameter] can be a weather parameter like Temperature.
To add your location, call the method Objects/Weather/Add City, with a 2-letter ISO country code and city/location name.
Note that the weather data is updated every 15 minutes.
Content type
Image
Digest
sha256:949b99095…
Size
38.4 MB
Last updated
6 months ago
docker pull ogamma/ows