Skip to content

Instantly share code, notes, and snippets.

@SpComb
Created March 25, 2018 09:53
Show Gist options
  • Save SpComb/e79124993125a01355d9f86f27d64960 to your computer and use it in GitHub Desktop.
Save SpComb/e79124993125a01355d9f86f27d64960 to your computer and use it in GitHub Desktop.
pi@raspberrypi:~ $ sudo curl --unix-socket /run/sensors/onewire.sock -s http://x/api/ | json_pp
{
"Sensors" : [
{
"ID" : "28-0315a4b86dff",
"Status" : {
"Temperature" : 23.3125,
"At" : "2018-03-25T09:51:38.276321169Z"
},
"Config" : {
"Bus" : "onewire",
"Type" : "ds18b20",
"Serial" : "28-0315a4b86dff"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment