Skip to content

A thermometer simulated device to test DomoticASW

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

DomoticASW/thermometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thermometer

A Thermometer simulated device to test DomoticASW

Docker Hub

Docker Hub - fracarluccii/domoticasw-thermometer

Run with Docker

To run the thermometer device using Docker, you can use the following commands:

docker run fracarluccii/domoticasw-thermometer

Variables

The following configurations can be passed to the container as environment variables

Variable name Default value Explanation
ID thermometer-01 thermometer ID
NAME Thermometer thermometer name
DEVICE_PORT 8090 Port used by the thermometer device
SERVER_ADDRESS / Address:port of the server
DISCOVERY_ADDRESS 255.255.255.255 Address for discovery broadcasts
DISCOVERY_PORT 30000 Port for discovery broadcasts

How to use

At first send <<device-address>>/register request to the device to register it in the server.

Properties

  • actualTemperature: The current temperature reading of the thermometer.
  • requiredTemperature: The desired temperature to be set on the thermometer.

Actions

  • <<device-address>>/execute/set-temperature: Set the desired temperature on the thermometer.

Body example for set-temperature:

{
  "input": 25.5
}

Events

  • temperatureChanged: Triggered when the actual temperature changes.

About

A thermometer simulated device to test DomoticASW

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •