User Tools

Site Tools


kits:gpio:api:data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kits:gpio:api:data [2021/10/31 17:20]
James Sentman created
kits:gpio:api:data [2021/10/31 17:25] (current)
James Sentman
Line 41: Line 41:
             "​dimmable":​ false,             "​dimmable":​ false,
             "​state":​ true             "​state":​ true
 +        },
 +        {
 +            “index”:​5,​
 +            “name”:​”TEMP/​HUM Sensor”,
 +            “type”:​21,​
 +            “temp”:​76.4,​
 +            “hum”:​43
         }         }
     ],     ],
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:​** If one wire is enabled this will contain a list of all currently discovered 1-wire temp sensors on the network.   * **onewire:​** If one wire is enabled this will contain a list of all currently discovered 1-wire temp sensors on the network.
     * **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: 2021/10/31 17:25 by James Sentman