Skip to content

a mock service for simulating temperature and humidity sensor boards programmed with https://github.com/home-IoT/esp-dht22

License

Notifications You must be signed in to change notification settings

home-IoT/esp-dht22-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHT22 Mock Server

master develop
Build Status Build Status

This is a mock service for simulating temperature and humidity sensor boards programmed with
home-IoT/esp-dht22.

API

The service offers a very simple API which is specified in the swagger.yml file:

Reading

GET / provides the current (imaginary) reading of the sensor.

Example response:

{
    "deltaTime": 0,
    "device": "dht22-03",
    "dht22": {
        "heatIndex": 25.59,
        "humidity": 96.62,
        "temperature": 25.05
    },
"stale": 0
}

See home-IoT/esp-dht22 for details.

WiFi Configuration

GET /config?ssid=<SSID>&password=<PASSWORD> fakes configuration of the board with a new SSID and an optional password. See home-IoT/esp-dht22 for details.

License

The code is published under an MIT license.

Contributions

Please report issues or feature requests using Github issues. Code contributions can be done using pull requests.

About

a mock service for simulating temperature and humidity sensor boards programmed with https://github.com/home-IoT/esp-dht22

Resources

License

Stars

Watchers

Forks

Packages

No packages published