Sun, 05 Jan 2020 17:04:56 +0100
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
0 | 1 | <!-- |
2 | vim:syntax=docbksgml | |
3 | --> | |
4 | ||
5 | <chapter id="protocols"> | |
6 | <title>Protocollen.</title> | |
7 | <para> | |
8 | De netwerk protocollen. | |
9 | </para> | |
10 | ||
11 | <sect1 id="prototopic"> | |
12 | <title>MQTT topic formaat.</title> | |
13 | <para>De topics zijn als volgt gedefinieerd:</para> | |
14 | <programlisting> | |
15 | mbv1.0/<code>group_id</code>/<code>message_type</code>/<code>edge_node</code>/<code>device_id</code> | |
16 | </programlisting> | |
17 | ||
18 | <itemizedlist> | |
19 | <listitem><para><code>group_id</code> geeft het type apparaat aan zoals <code>fermenters</code> | |
20 | en <code>brewcontrol</code>.</para></listitem> | |
21 | <listitem><para><code>message_type</code> geeft het bericht type aan zoals | |
22 | <code>NBIRTH</code>, <code>DDATA</code>.</para></listitem> | |
23 | <listitem><para><code>edge_node</code> is de hostnaam van de node die het bericht stuurt. Dit is | |
24 | de naam zonder domain toevoeging.</para></listitem> | |
25 | <listitem><para><code>device_id</code> is de verkorte naam van het apparaat module waarvan dit | |
26 | bericht komt zoals de naam van een vergisting controller. Dit is niet aanwezig met NODE berichten.</para></listitem> | |
27 | </itemizedlist> | |
28 | ||
29 | <para> | |
30 | De volgende <code>group_id</code> namen zijn gedefinieerd: | |
31 | </para> | |
32 | <orderedlist> | |
511 | 33 | <listitem><para><code>brewery</code> is voor de bms applicatie zelf. Nog uitwerken.</para></listitem> |
34 | <listitem><para><code>fermenters</code> is voor vergisting controllers.</para></listitem> | |
35 | <listitem><para><code>co2meters</code> is een drukmeter om bijvoorbeeld hergisting op de fles | |
0 | 36 | te monitoren.</para></listitem> |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
37 | <listitem><para><code>ispindels</code> is een electronische hydrometer die in het gistvat drijft |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
38 | en de temperatuur en sg verstuurt.</para></listitem> |
0 | 39 | </orderedlist> |
40 | ||
41 | <para>De volgende <code>message_type</code> namen zijn gedefinieerd:</para> | |
42 | <orderedlist> | |
43 | <listitem><para>NBIRTH geeft aan wanneer een node opstart en met het netwerk | |
44 | verbonden is. Dit is een zogenaamd persistent bericht, het blijft voor nieuwe | |
45 | MQTT clients altijd zichtbaar. Bij het starten van een node wordt er een payload | |
46 | verzonden, zie het payload formaat voor een node. Als een node afsluit wordt juist geen | |
47 | payload verzonden zodat het bericht verdwijnt.</para></listitem> | |
48 | <listitem><para>NDEATH wordt verstuurd als een node offline gaat. Maar het kan ook | |
49 | ontvangen worden als de MQTT verbinding verbroken wordt met een node, het NDEATH | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
50 | bericht is ook het `last will' bericht van een node. Maar als het echt fout gaat |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
51 | dan zal er mogenlijk nooit een NDEATH bericht gezien worden.</para></listitem> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
52 | <listitem><para>NCMD is een commando bestemd voor een node. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
53 | Dit kan bijvoorbeeld een reboot commando zijn.</para></listitem> |
364 | 54 | <listitem><para>NDATA wordt verstuurd als er veranderingen zijn voor de node, |
55 | maar ook iedere vijf minuten om aan te geven dat de node nog "levend" en aanwezig | |
56 | is.</para></listitem> | |
57 | ||
0 | 58 | <listitem><para>DBIRTH is een of meer berichten van een apparaat wat online komt |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
59 | en ingeschakeld is. Een apparaat is een deel van een node. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
60 | Bij het opstarten van de node is er geen <code>device_id</code> |
0 | 61 | omdat alle apparaten is een keer verstuurd worden. Indien er later een enkel apparaat |
62 | ingeschakeld wordt dan is er wel een geldige <code>device_id</code> aanwezig. | |
63 | Hier ook weer, er is een payload bij opstarten en geen payload bij afsluiten om het | |
64 | persistente bericht goed te houden.</para></listitem> | |
364 | 65 | <listitem><para>DDEATH wordt verstuurd als een node offline gaat, of als het apparaat |
66 | uitgeschakelt wordt.</para></listitem> | |
0 | 67 | <listitem><para>DDATA heeft altijd een payload, maar deze hoeft niet volledig te zijn, |
68 | enkel de gewijzigde data moet in het bericht zitten.</para></listitem> | |
69 | <listitem><para>DLOG is een data log. Hier bestaat de payload uit gegevens die de | |
70 | bms applicatie in de database zet.</para></listitem> | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
71 | <listitem><para>DCMD is een commando voor een apparaat wat op een node geinstalleerd is. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
72 | Dit zullen voornamelijk instellingen voor dat enkele apparaat zijn.</para></listitem> |
0 | 73 | </orderedlist> |
74 | ||
75 | </sect1> | |
76 | ||
77 | ||
78 | <sect1 id="payloadnode"> | |
79 | <title>Netwerk payload formaat voor een node</title> | |
80 | <para> | |
81 | De payload zoals die door een node verstuurd wordt. Het wordt in json formaat | |
511 | 82 | verzonden zonder extra spaties en opmaak zoals hieronder is te zien. Het timestamp |
83 | is de unix tijd sinds 1 januari 1970. Niet alle controllers sturen een timestamp, | |
84 | controllers zonder klok laten dit weg. De tijd wordt dan door <code>bmsd</code> | |
85 | ingevuld en is de tijd dat het bericht ontvangen wordt. | |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
86 | Het `seq' nummer wordt met ieder bericht met 1 verhoogd. |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
87 | Ook dit nummer is niet altijd aanwezig.</para> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
88 | <para>In de `metric' groep is de `interval' optioneel. Dit wordt bijvoorbeeld |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
89 | verstuurd door iSpindels en is de ingestelde update interval tijd in seconden. |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
90 | Indien dit niet aanwezig is dan wordt 300 seconden als standaard waarde gebruikt. |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
91 | Deze waarde wordt gebruikt om een apparaat als offline te markeren indien het langer |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
92 | als twee maal deze tijd niet wordt gezien.</para> |
0 | 93 | <programlisting> |
94 | { | |
95 | "timestamp": 1532201089, | |
96 | "seq": 0, | |
97 | "metric": { | |
98 | "uuid": "b508f01c-1f82-4e8b-b0d2-d88ecfb53031", | |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
99 | "interval":300, |
0 | 100 | "properties": { |
101 | "hardwaremake": "Raspberry", | |
102 | "hardwaremodel": "Unknown", | |
103 | "os": "Linux", | |
104 | "os_version": "4.1.19+", | |
105 | "FW": "0.8.2" | |
106 | }, | |
107 | "THB": { | |
108 | "temperature": 20.0, | |
109 | "humidity": 50.0, | |
110 | "barometer": 1002 | |
111 | }, | |
112 | "GPS": { | |
113 | "latitude": 1.2345, | |
114 | "longitude": 2.3456, | |
115 | "altitude": 20 | |
116 | }, | |
117 | "net": { | |
118 | "address": "10.126.151.11", | |
119 | "ifname": "eth0", | |
120 | "rssi": 0 | |
121 | } | |
122 | } | |
123 | } | |
124 | </programlisting> | |
125 | </sect1> | |
126 | ||
127 | <sect1 id="cmdnode"> | |
128 | <title>Netwerk kommando payload formaat voor nodes.</title> | |
129 | <para>De volgende kommando's kunnen gestuurd worden naar nodes:</para> | |
130 | <programlisting> | |
131 | { | |
132 | "timestamp":1532201089, | |
133 | "metric": { | |
134 | "Node Control/Reboot":true | |
135 | } | |
136 | } | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
137 | </programlisting> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
138 | <para>Dit commando reboot niet de computer maar de applicatie die op een |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
139 | computer zoals een Raspberry Pi geinstalleerd is. Een uitzondering zijn de |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
140 | controllers zoals Arduino's en andere eenvoudige systemen.</para> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
141 | <programlisting> |
0 | 142 | { |
143 | "timestamp":1532201089, | |
144 | "metric": { | |
145 | "Node Control/Rebirth":true | |
146 | } | |
147 | } | |
148 | </programlisting> | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
149 | <para>Dit commando zorgt er voor dat alle NBIRTH en DBIRTH berichten opnieuw |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
150 | verzonden worden alsof de computer net is opgestart. Dit kan nuttig zijn na |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
151 | een herstart van de bms applicatie zelf zodat de juiste nodes informatie weer |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
152 | beschikbaar is.</para> |
0 | 153 | </sect1> |
154 | ||
155 | <sect1 id="payloadfermdata"> | |
156 | <title>Netwerk payload data formaat voor vergisting controllers</title> | |
157 | <para> | |
158 | Dit is het meest uitgebreide formaat wat getoond is. Indien er bijvoorbeeld geen | |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
159 | chiller aanwezig is, dan wordt een `null' gestuurd in plaats van een json blok |
0 | 160 | met gegevens. De werkelijke uitvoering van de hardware en de configuratie daarvan |
161 | bepaald dus het uiteindelijke payload formaat. | |
162 | </para> | |
163 | <programlisting> | |
164 | { | |
165 | "uuid": "48c9ae27-3f58-41c9-ae4b-1d57b249c45a", | |
166 | "alias": "unit1", | |
167 | "product": { | |
168 | "uuid": "1eb0c7bf-bf06-491c-a086-ac5478d521b9", | |
169 | "code": "CB0001", | |
170 | "name": "Hoppy Housebeer" | |
171 | }, | |
172 | "air": { | |
173 | "address": "70d60411-3ec8-40ab-998a-81fead83025f", | |
174 | "state": "OK", | |
175 | "temperature": 21.562 | |
176 | }, | |
177 | "beer": { | |
178 | "address": "8ec36f9d-f382-4e32-a47f-732642e1018d", | |
179 | "state": "OK", | |
180 | "temperature": 22.125 | |
181 | }, | |
182 | "chiller": { | |
183 | "address": "e81265b8-07f7-4b22-96c1-6f55a4b66a83", | |
184 | "state": "OK", | |
185 | "temperature": 12.437 | |
186 | }, | |
187 | "heater": { | |
188 | "address": "d2f2d6bc-4d12-4852-9462-95f4c2476034", | |
189 | "state": 0, | |
190 | "usage": 10710793 | |
191 | }, | |
192 | "cooler": { | |
193 | "address": "a9f30140-812c-4ec1-9e98-3a9d47deff7c", | |
194 | "state": 0, | |
195 | "usage": 920504 | |
196 | }, | |
197 | "fan": { | |
198 | "address": "ae9f9887-8209-4810-9f58-ddfb34ee142f", | |
199 | "state": 100, | |
200 | "usage": 62889739 | |
201 | }, | |
202 | "light": { | |
203 | "address": "cc6353cf-9c97-41b9-b6cf-00cea312e478", | |
204 | "state": 0, | |
205 | "usage": 29647290 | |
206 | }, | |
207 | "door": { | |
208 | "address": "ad8746d1-0549-485a-a215-41e5cdde9e75", | |
209 | "state": 1 | |
210 | }, | |
211 | "psu": { | |
212 | "address": "e1bb7182-883d-4977-a1c0-76e214072fc5", | |
213 | "state": 1 | |
214 | }, | |
215 | "stage": "PRIMARY", | |
216 | "mode": "BEER", | |
217 | "setpoint": { | |
218 | "low": 21.0, | |
219 | "high": 21.0 | |
220 | }, | |
334
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
221 | "webcam": { |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
222 | "url":"https://the.webcamserver.com:8090/?action=stream", |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
223 | "light": 1 |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
224 | }, |
0 | 225 | "alarm": 0, |
226 | "profile": { | |
227 | "uuid": "c93ad1bb-0446-4788-9c43-83990c5f8b82", | |
228 | "name": "Witbier methode Cellis", | |
229 | "state": "OFF", | |
230 | "percent": 0, | |
231 | "inittemp": { | |
232 | "low": 17.9, | |
233 | "high": 18.1 | |
234 | }, | |
235 | "fridgemode": 0, | |
236 | "steps": [ | |
237 | { | |
238 | "resttime": 2, | |
239 | "steptime": 0, | |
240 | "target": { | |
241 | "low": 18.0, | |
242 | "high": 18.0 | |
243 | }, | |
244 | "fridgemode": 0 | |
245 | }, | |
246 | { | |
247 | "resttime": 0, | |
248 | "steptime": 24, | |
249 | "target": { | |
250 | "low": 18.0, | |
251 | "high": 22.0 | |
252 | }, | |
253 | "fridgemode": 0 | |
254 | }, | |
255 | { | |
256 | "resttime": 48, | |
257 | "steptime": 96, | |
258 | "target": { | |
259 | "low": 26.0, | |
260 | "high": 26.0 | |
261 | }, | |
262 | "fridgemode": 0 | |
263 | } | |
264 | ] | |
265 | } | |
266 | } | |
267 | </programlisting> | |
268 | <para>Temperature states can be: OK, MISSING or ERROR.<para> | |
269 | <para>The general `mode' can be: OFF, NONE, FRIDGE, BEER or PROFILE.</para> | |
270 | <para>The profile `state' can be: OFF, PAUSE, RUN, DONE or ABORT.</para> | |
271 | </sect1> | |
272 | ||
273 | ||
274 | <sect1 id="payloadfermlog"> | |
275 | <title>Netwerk payload log formaat voor vergisting controllers</title> | |
276 | <para> | |
277 | Dit is het meest uitgebreide formaat wat getoond is. Indien er bijvoorbeeld geen | |
278 | chiller aanwezig is, dan wordt geen data hiervoor verstuurd. | |
279 | De werkelijke uitvoering van de hardware en de configuratie daarvan | |
280 | bepaald dus het uiteindelijke payload formaat. | |
281 | </para> | |
282 | <programlisting> | |
283 | { | |
284 | "timestamp": 1532201089, | |
285 | "seq": 0, | |
286 | "metric": { | |
287 | "product": { | |
288 | "uuid": "1eb0c7bf-bf06-491c-a086-ac5478d521b9", | |
289 | "code": "CB0001", | |
290 | "name": "Hoppy Housebeer" | |
291 | }, | |
292 | "stage": "PRIMARY", | |
293 | "mode": "BEER", | |
294 | "temperature": { | |
295 | "air": 20.125, | |
296 | "beer": 20.062, | |
297 | "chiller": -3.000, | |
298 | "room": 20.1 | |
299 | }, | |
300 | "setpoint": { | |
301 | "low": 19.8, | |
302 | "high": 20.1 | |
303 | }, | |
304 | "heater": { | |
305 | "power": 100, | |
306 | "usage": 1234 | |
307 | }, | |
308 | "cooler": { | |
309 | "power": 0, | |
310 | "usage": 27273 | |
311 | }, | |
312 | "fan": { | |
313 | "power": 100, | |
314 | "usage": 8273772 | |
315 | }, | |
316 | "sg": 1.023, | |
317 | "event": "Something to mark", | |
318 | "fermenter_uuid": "48c9ae27-3f58-41c9-ae4b-1d57b249c45a" | |
319 | } | |
320 | } | |
321 | </programlisting> | |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
322 | <para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
323 | De ontvangen vergisting log gegevens worden niet opgeslagen in de SQL database |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
324 | maar in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
325 | Ieder brouw product heeft zijn eigen bestand. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
326 | De bestanden staan in <code>www/logs/fermentation/</code>. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
327 | De bestandsnamen zijn <code>product_code\ product_name.log</code>. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
328 | Het interne formaat is:</para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
329 | <programlisting> |
530
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
330 | 2014-11-15 18:39:12,BEER,PRIMARY,20.312,19.750,-1.500,20.5,18.6,18.8,35,12345,0,67890,Whatsup,Fermenter |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
331 | | | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
332 | 0 datetime + | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
333 | 1 werkwijze ---------+ | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
334 | 2 vergisting fase ---------+ | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
335 | 3 temperatuur lucht --------------+ | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
336 | 4 temperatuur bier ----------------------+ | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
337 | 5 temperatuur koeler ---------------------------+ | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
338 | 6 temperatuur ruimte ----------------------------------+ | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
339 | 7 instelwaarde laag ----------------------------------------+ | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
340 | 8 instelwaarde hoog ---------------------------------------------+ | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
341 | 9 verwarming vermogen -----------------------------------------------+ | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
342 | 10 verwarming verbruik ---------------------------------------------------+ | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
343 | 11 koeler vermogen -----------------------------------------------------------+ | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
344 | 12 koeler verbruik ---------------------------------------------------------------+ | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
345 | 13 gebeurtenis --------------------------------------------------------------------------+ | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
346 | 14 vergister uuid --------------------------------------------------------------------------------+ |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
347 | </programlisting> |
0 | 348 | </sect1> |
349 | ||
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
350 | <sect1 id="payloadco2data"> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
351 | <title>Netwerk payload data formaat voor CO2 meters.</title> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
352 | <para> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
353 | Nog schrijven |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
354 | </para> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
355 | </sect1> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
356 | |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
357 | <sect1 id="payloadco2log"> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
358 | <title>Netwerk payload log formaat voor CO2 meters.</title> |
511 | 359 | <para> |
360 | Voor iedere actieve CO2 meter wordt bij iedere systeemstart een logbericht | |
361 | gestuurd. Dit is ongeveer iedere 5 minuten. Omdat de CO2 meters eenvoudige | |
362 | controllers zijn is er geen tijd en product informatie beschikbaar. Deze | |
363 | ontbrekende gegevens worden aangevuld door <command>bmsd</command> | |
364 | </para> | |
365 | <programlisting> | |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
366 | |
511 | 367 | </programlisting> |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
368 | <para> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
369 | De ontvangen CO2 log gegevens worden niet opgeslagen in de SQL database |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
370 | maar in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
371 | Ieder brouw product heeft zijn eigen bestand. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
372 | De bestanden staan in <code>www/logs/co2pressure/</code>. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
373 | De bestandsnamen zijn <code>product_code\ product_name.log</code>. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
374 | Het interne formaat is:</para> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
375 | <programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
376 | 2019-10-11 16:13:33,22.250,5.964,c0ffeeee-dead-beef-caf0-3c71bffe4054 |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
377 | | | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
378 | 0 datetime + | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
379 | 1 temperatuur ----------+ | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
380 | 2 CO2 flesdruk in bar ---------+ | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
381 | 3 meter uuid -------------------------------------+ |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
382 | </programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
383 | </sect1> |
0 | 384 | |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
385 | |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
386 | <sect1 id="payloadispindeldata"> |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
387 | <title>Netwerk payload data formaat voor iSpindels.</title> |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
388 | <para> |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
389 | Nog schrijven |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
390 | </para> |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
391 | |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
392 | <para> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
393 | Voor iedere actieve iSpindel wordt bij iedere systeemstart een bericht |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
394 | gestuurd. Dit is ongeveer iedere 15 minuten. Omdat de iSpindel eenvoudige |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
395 | controllers zijn is er geen tijd en product informatie beschikbaar. Deze |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
396 | ontbrekende gegevens worden aangevuld door <command>bmsd</command> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
397 | </para> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
398 | |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
399 | <para> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
400 | De ontvangen iSpindel gegevens worden niet opgeslagen in de SQL database |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
401 | maar in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
402 | Ieder brouw product heeft zijn eigen bestand. |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
403 | De bestanden staan in <code>www/logs/ispindel/</code>. |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
404 | De bestandsnamen zijn <code>product_code\ product_name.log</code>. |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
405 | Het interne formaat is:</para> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
406 | <programlisting> |
579
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
407 | 2020-01-05 14:01:53,19.3750,7.08093,1.02806,3.34724,38.78126,900,c0ffeeee-cafe-dead-bee0-2af236d50dc9 |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
408 | | | | | | | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
409 | 0 datetime + | | | | | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
410 | 1 temperatuur -----------+ | | | | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
411 | 2 densiteit plato ---------------+ | | | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
412 | 3 densiteit SG --------------------------+ | | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
413 | 4 batterij voltage ------------------------------+ | | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
414 | 5 tilt hoek ---------------------------------------------+ | | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
415 | 6 update interval ----------------------------------------------+ | |
1253a237b620
Added check for database changes for iSpindels such as a new beer, or changing mode. Added denity in Plato and SG to the iSpindel web screen. The iSpindels must be calibrated in Plato! A bit of documentation updated.
Michiel Broek <mbroek@mbse.eu>
parents:
568
diff
changeset
|
416 | 7 ispindel uuid ------------------------------------------------------------------+ |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
417 | </programlisting> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
418 | </sect1> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
419 | |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
420 | |
0 | 421 | </chapter> |