kits:gpio:api:data
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kits:gpio:api:data [2021/10/31 17:20] – created James Sentman | kits:gpio:api:data [2023/02/13 14:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 41: | Line 41: | ||
" | " | ||
" | " | ||
+ | }, | ||
+ | { | ||
+ | “index”: | ||
+ | “name”: | ||
+ | “type”: | ||
+ | “temp”: | ||
+ | “hum”: | ||
} | } | ||
], | ], | ||
Line 64: | Line 71: | ||
* **state:** for discrete GPIO inputs and outputs the state will be true or false. | * **state:** for discrete GPIO inputs and outputs the state will be true or false. | ||
* **value:** for dimmable or analog numerical GPIO values this will be included with the numerical value appropriate for whatever the input is. | * **value:** for dimmable or analog numerical GPIO values this will be included with the numerical value appropriate for whatever the input is. | ||
+ | * **temp:** for a DHT Temp sensor this will contain the most recent temperature data in the format as set above. | ||
+ | * **hum:** for a DHT Temp Sensor this will contain the most recent humidity data. | ||
* **onewire: | * **onewire: | ||
* **id:** the 1-wire ID hashed into a 3 byte hex string. Can be used for addressing and should be unique among sensors. It does not include the portion of the ID that contain the device type or other information. | * **id:** the 1-wire ID hashed into a 3 byte hex string. Can be used for addressing and should be unique among sensors. It does not include the portion of the ID that contain the device type or other information. |
kits/gpio/api/data.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1