Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wutu/pimatic-ultrasonic

Support for the HC-SR04 ultrasonic sensor.
https://github.com/wutu/pimatic-ultrasonic

Last synced: about 2 months ago
JSON representation

Support for the HC-SR04 ultrasonic sensor.

Awesome Lists containing this project

README

        

pimatic-ultrasonic
================

Pimatic support for the HC-SR04 ultrasonic sensor.

Exapmle wiring

### Example config

Add the plugin to the plugin section:

```json
{
"plugin": "ultrasonic"
}
```

Then add a sensor for your device to the devices section:

```json
{
"id": "ultrasonic",
"name": "Ultrasonic HC-SR04",
"class": "Ultrasonic",
"echo": 22,
"trigger": 18,
"timeout": 750,
"interval": 60000
}
```
You can also select the unit:

example: "displayUnit": "cm"

### Credits

Luke for mmm-usonic

### License

AGPL-3.0