iaq_adapter_cee

command module
v0.0.0-...-396f30b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

README

ARGUMENTS: MQTT Server, REST Server, Devices

docker-compose.yml: args - mqtt_uri=mqtt://pi:woofaa@172.17.0.1:1883 - rest_uri=http://172.17.0.1/api/iaq/createrecord

*Restart after modification

BUILD

docker-compose build

RUN

For Debug: docker-compose -f docker-compose.yml up -it

For Deploy docker-compose -f docker-compose.yml up -d

STOP

docker-compose stop

REMOVE and DELETE volumes

docker-compose down -v

Logging

e.g. docker-compose logs -f > dockerlog.txt

Local and Cloud Example:

docker build -t iaq_adapter_cee .

Debug Run

docker run -it iaq_adapter_cee docker run -e REST_URI=https://demo.woofaa.com/api -e MQTT_URI=mqtt://pi:woofaa@demo.woofaa.com:1883 -e MQTT_TOPICS="GASDATA;UVSTATUS/CURRENTLIFETIME;UVSTATUS/SENDVALUE" -e GIN_MODE=release -it iaq_adapter_cee

Run

docker run -d --restart unless-stopped iaq_adapter_cee docker run -e REST_URI=https://demo.woofaa.com/api -e MQTT_URI=mqtt://pi:woofaa@demo.woofaa.com:1883 -e MQTT_TOPICS="GASDATA;UVSTATUS/CURRENTLIFETIME;UVSTATUS/SENDVALUE" -e GIN_MODE=release -d --restart unless-stopped iaq_adapter_cee

MQTT

Publish: mosquitto_pub -d -h iaq.creaxtive.com -p 1883 -u pi -P woofaa -t 'GASDATA/8caab58daa99' -m '{"mac":"8caab58daa99", "CO2":678, "temp":28.5, "hum":65.3}' mosquitto_pub -d -h localhost -p 1883 -u pi -P woofaa -t 'UVSTATUS/CURRENTLIFETIME/8caab58daa99' -m '{"currentlifetime":165}' mosquitto_pub -d -h localhost -p 1883 -u pi -P woofaa -t 'UVSTATUS/SENDVALUE/8caab58daa99' -m '{"uvstatus":165}'

Subscrib: mosquitto_sub -d -h iaq.creaxtive.com -p 1883 -u pi -P woofaa -t "#"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL