It's highly recommended to use the explicit specified fields from the reference. If you need other fields additionally, please make a change request. Or prefix custom fields with ext_
to make it clear the field is not part of the documented API. Consumers are not obligated to interpret any custom fields
^[+-]?[0-9]+(\.[0-9]+)?[FCK]$
. Example: {'kitchen':'48F', 'storage':'-273.1K'}^[mhd]\.[0-9]{2}$
, where the first field specifies a unit of time (m
for 1 minute, h
for 1 hour, d
for 1 day), and the second field specifies how many of this unit should be skipped between updates. For example, m.10 means one updates every 10 minutes, h.03 means one update every 3 hours, and d.01 means one update every day.{
"api": "0.13",
"space": "Slopspace",
"logo": "http://your-space.org/img/logo.png",
"url": "http://your-space.org",
"location": {
"address": "Ulmer Strasse 255, 70327 Stuttgart, Germany",
"lon": 9.236,
"lat": 48.777
},
"contact": {
"twitter": "@spaceapi"
},
"issue_report_channels": [
"twitter"
],
"state": {
"open": true
}
}
{
/* put here all the fields from the minimal example */
...
"projects": [
"http://github.com/spaceapi",
"http://wiki.example.com"
],
"cache": {
"schedule": "m.02"
}
}
{
/* put here all the fields from the minimal example */
...
"feeds": {
"blog": {
"type": "application/rss+xml",
"url": "https://example.com/feed/"
},
"calendar": {
"type": "text/calendar",
"url": "https://example.com/events.ics"
}
}
}
{
/* put here all the fields from the minimal example */
...
"radio_show": [
{
"name": "Signal",
"url": "http://signal.hackerspaces.org:8090/signal.mp3",
"type": "mp3",
"start": "2013-06-10T12:00+02:00",
"end": "2013-06-10T13:00+02:00"
},
{
"name": "Random",
"url": "http://85.214.64.213:8060/;",
"type": "mp3",
"start": "2013-06-13T09:00+02:00",
"end": "2013-06-13T12:00+02:00"
}
]
}
{
/* put here all the fields from the minimal example */
...
"sensors" : {
"temperature": [
{
"value" : 3,
"unit" : "°C",
"location" : "Outside",
"name" : "Roof"
},
{
"value" : 3,
"unit" : "°C",
"location" : "Room 1",
"name" : "Corner 1"
},
{
"value" : 3,
"unit" : "°C",
"location" : "Room 1",
"name" : "Corner 2"
}
],
"ext_spiff_diff" : [ /* unofficial extension */
{
"value" : 32,
"unit" : "spdf",
"location" : "locker1",
"name" : "asdf"
}
]
}
}