-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplot.codin
70 lines (64 loc) · 1.23 KB
/
plot.codin
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
Metadata
name: "PlotExample"
description: "An example of using the Plot and PlotView components"
author: "klpanagi"
token: "1234" // The Codin API Token here!!
end
Broker<MQTT> locsys_broker
host: "locsys.issel.ee.auth.gr"
port: 1883
ssl: True
webPath: "/mqtt"
webPort: 8894
auth:
username: ""
password: ""
end
Entity EnvSensor_1
type: sensor
topic: 'bedroom.sensor.env'
broker: locsys_broker
attributes:
- temperature: float
- humidity: float
- gas: float
end
Plot HumidityPlot
label: "Humidity"
entity: EnvSensor_1
ptype: Line
attribute: humidity
end
Plot TemperaturePlot
label: "Temperature"
entity: EnvSensor_1
ptype: Line
attribute: temperature
color: red
smooth: False
end
Plot GasPlot
label: "Gas"
entity: EnvSensor_1
ptype: Line
attribute: gas
end
PlotView MyPlots
label: "Env Sensor Plots"
xAxis: True
yAxis: True
horizontalGrid: True
verticalGrid: True
legend: True
maxValues: -1
legendPosition: topRight
plots:
- HumidityPlot
- TemperaturePlot
- GasPlot
position:
x: 0
y: 0
width: 8
height: 8
end