Skip to content

This application collects temperature values (and other data) from 1-Wire devices

License

Notifications You must be signed in to change notification settings

osiota/osiota-app-onewire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osiota application onewire

Osiota is a software platform capable of running distributed IoT applications written in JavaScript to enable any kind of IoT tasks. See osiota.

Configuration: onewire

This application collects temperature values (and other data) from 1-Wire devices.

Properties

Name Type Description Required
map
(Device mappings)
object[] no
bus_id number Bus number of the 1-Wire port
Default: 1
no

Additional Properties: not allowed
Example

{
    "map": [
        {
            "map": "28-0123456789ab",
            "node": "/Außen/Außentemperatur",
            "metadata": {
                "type": "temperature.data",
                "unit": "C",
                "unit_long": "Celsius"
            }
        }
    ],
    "bus_id": 1
}

map[]: Device mappings

Items: Device mapping

Item Properties

Name Type Description Required
map string 1-Wire device id
yes
node string Node name to publish data to
no
metadata object Metadata for that device
Default: {"type":"temperature.data","unit":"C","unit_long":"Celsius"}
no

Item Additional Properties: not allowed
Example

[
    {
        "map": "28-0123456789ab",
        "node": "/Außen/Außentemperatur",
        "metadata": {
            "type": "temperature.data",
            "unit": "C",
            "unit_long": "Celsius"
        }
    }
]

map[].metadata:

Metadata for that device

Additional Properties: allowed
Example

{
    "type": "temperature.data",
    "unit": "C",
    "unit_long": "Celsius"
}

How to setup

Add a configuration object for this application, see osiota configuration:

{
    "name": "onewire",
    "config": CONFIG
}

License

Osiota and this application are released under the MIT license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

About

This application collects temperature values (and other data) from 1-Wire devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published