-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpiJsonLd.json
143 lines (143 loc) · 3.51 KB
/
piJsonLd.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"@context": "http://schema.org/Product",
"@id": "http://localhost:8484",
"name": "My WoT Raspberry PI",
"description": "A simple WoT-connected Raspberry PI for the WoT book.",
"productID" : "asin:B00T2U7R7I",
"manufacturer" : "Raspberry Pi",
"model" : "100437",
"image" : "http://devices.webofthings.io:9090/snapshot.cgi?user=snapshots&pwd=4MXfTSr0gH",
"tags": [
"raspberry",
"pi",
"WoT"
],
"customFields" : {
"hostname":"localhost",
"port": 8484,
"secure": true,
"dataArraySize" : 30
},
"links": {
"product": {
"link": "https://www.raspberrypi.org/products/raspberry-pi-2-model-b/",
"title": "Product this Web Thing is based on"
},
"properties": {
"link": "/properties",
"title": "List of Properties",
"resources": {
"temperature": {
"name": "Temperature Sensor",
"description": "An ambient temperature sensor.",
"values": {
"t": {
"name": "Temperature sensor",
"description": "The temperature in celsius",
"unit": "celsius",
"customFields": {
"gpio": 12
}
}
},
"tags": [
"sensor",
"public",
"indoors"
]
},
"humidity": {
"name": "Humidity Sensor",
"description": "An ambient humidity sensor.",
"values": {
"h": {
"name": "Humidity",
"description": "Percentage of Humidity",
"unit": "%",
"customFields": {
"gpio": 12
}
}
},
"tags": [
"sensor",
"public"
]
},
"pir": {
"name": "Passive Infrared",
"description": "A passive infrared sensor.",
"values": {
"presence": {
"name": "Presence",
"description": "Current sensor value (true=motion detected)",
"type": "boolean",
"customFields": {
"gpio": 17
}
}
},
"tags": [
"sensor",
"public"
]
},
"leds": {
"name": "LEDs",
"description": "The LEDs of this device.",
"values": {
"1": {
"name": "LED 1",
"customFields": {
"gpio": 4
}
},
"2": {
"name": "LED 2",
"customFields": {
"gpio": 9
}
}
},
"tags": [
"sensor",
"public"
]
}
}
},
"actions": {
"link": "/actions",
"title": "Actions of this Web Thing",
"resources": {
"ledState": {
"name": "Change LED state",
"description": "Change the state of an LED",
"values": {
"ledId": {
"type": "enum",
"enum":{"1":"LED 1","2":"LED 2","ALL":"All LEDs"},
"required": true
},
"state": {
"type": "boolean",
"required" : true
}
}
}
}
},
"type": {
"link": "http://model.webofthings.org/WebThing",
"title": "Instance type of the Pi"
},
"help": {
"link": "http://webofthings.org/docs/pi/",
"title": "Documentation"
},
"ui": {
"link": "/",
"title": "User Interface"
}
}
}