Sat, 06 Aug 2022 22:02:42 +0200
Final code cleanup in product editor.
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 | "metric": { | |
97 | "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
|
98 | "interval":300, |
0 | 99 | "properties": { |
100 | "hardwaremake": "Raspberry", | |
101 | "hardwaremodel": "Unknown", | |
102 | "os": "Linux", | |
103 | "os_version": "4.1.19+", | |
104 | "FW": "0.8.2" | |
105 | }, | |
106 | "THB": { | |
107 | "temperature": 20.0, | |
108 | "humidity": 50.0, | |
109 | "barometer": 1002 | |
110 | }, | |
111 | "GPS": { | |
112 | "latitude": 1.2345, | |
113 | "longitude": 2.3456, | |
114 | "altitude": 20 | |
115 | }, | |
116 | "net": { | |
117 | "address": "10.126.151.11", | |
118 | "ifname": "eth0", | |
719
70f382a2b842
Corrections for the MQTT messages from the co2meters.
Michiel Broek <mbroek@mbse.eu>
parents:
595
diff
changeset
|
119 | "ssid":"WIFISSID", |
0 | 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", | |
592 | 170 | "name": "Hoppy Housebeer", |
171 | "yeast_lo": 18.0, | |
172 | "yeast_hi": 24.0 | |
0 | 173 | }, |
174 | "air": { | |
175 | "address": "70d60411-3ec8-40ab-998a-81fead83025f", | |
176 | "state": "OK", | |
177 | "temperature": 21.562 | |
178 | }, | |
179 | "beer": { | |
180 | "address": "8ec36f9d-f382-4e32-a47f-732642e1018d", | |
181 | "state": "OK", | |
182 | "temperature": 22.125 | |
183 | }, | |
184 | "chiller": { | |
185 | "address": "e81265b8-07f7-4b22-96c1-6f55a4b66a83", | |
186 | "state": "OK", | |
187 | "temperature": 12.437 | |
188 | }, | |
189 | "heater": { | |
190 | "address": "d2f2d6bc-4d12-4852-9462-95f4c2476034", | |
191 | "state": 0, | |
192 | "usage": 10710793 | |
193 | }, | |
194 | "cooler": { | |
195 | "address": "a9f30140-812c-4ec1-9e98-3a9d47deff7c", | |
196 | "state": 0, | |
197 | "usage": 920504 | |
198 | }, | |
199 | "fan": { | |
200 | "address": "ae9f9887-8209-4810-9f58-ddfb34ee142f", | |
201 | "state": 100, | |
202 | "usage": 62889739 | |
203 | }, | |
204 | "light": { | |
205 | "address": "cc6353cf-9c97-41b9-b6cf-00cea312e478", | |
206 | "state": 0, | |
207 | "usage": 29647290 | |
208 | }, | |
209 | "door": { | |
210 | "address": "ad8746d1-0549-485a-a215-41e5cdde9e75", | |
211 | "state": 1 | |
212 | }, | |
213 | "psu": { | |
214 | "address": "e1bb7182-883d-4977-a1c0-76e214072fc5", | |
215 | "state": 1 | |
216 | }, | |
217 | "stage": "PRIMARY", | |
218 | "mode": "BEER", | |
219 | "setpoint": { | |
220 | "low": 21.0, | |
592 | 221 | "high": 21.5 |
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
|
222 | }, |
0 | 223 | "alarm": 0, |
224 | "profile": { | |
225 | "uuid": "c93ad1bb-0446-4788-9c43-83990c5f8b82", | |
226 | "name": "Witbier methode Cellis", | |
227 | "state": "OFF", | |
228 | "percent": 0, | |
229 | "inittemp": { | |
230 | "low": 17.9, | |
231 | "high": 18.1 | |
232 | }, | |
233 | "steps": [ | |
234 | { | |
235 | "resttime": 2, | |
236 | "steptime": 0, | |
237 | "target": { | |
238 | "low": 18.0, | |
239 | "high": 18.0 | |
240 | }, | |
241 | "fridgemode": 0 | |
242 | }, | |
243 | { | |
244 | "resttime": 0, | |
245 | "steptime": 24, | |
246 | "target": { | |
247 | "low": 18.0, | |
248 | "high": 22.0 | |
249 | }, | |
250 | "fridgemode": 0 | |
251 | }, | |
252 | { | |
253 | "resttime": 48, | |
254 | "steptime": 96, | |
255 | "target": { | |
256 | "low": 26.0, | |
257 | "high": 26.0 | |
258 | }, | |
259 | "fridgemode": 0 | |
260 | } | |
261 | ] | |
262 | } | |
263 | } | |
264 | </programlisting> | |
265 | <para>Temperature states can be: OK, MISSING or ERROR.<para> | |
266 | <para>The general `mode' can be: OFF, NONE, FRIDGE, BEER or PROFILE.</para> | |
267 | <para>The profile `state' can be: OFF, PAUSE, RUN, DONE or ABORT.</para> | |
268 | </sect1> | |
269 | ||
270 | ||
271 | <sect1 id="payloadfermlog"> | |
272 | <title>Netwerk payload log formaat voor vergisting controllers</title> | |
273 | <para> | |
274 | Dit is het meest uitgebreide formaat wat getoond is. Indien er bijvoorbeeld geen | |
275 | chiller aanwezig is, dan wordt geen data hiervoor verstuurd. | |
276 | De werkelijke uitvoering van de hardware en de configuratie daarvan | |
277 | bepaald dus het uiteindelijke payload formaat. | |
278 | </para> | |
279 | <programlisting> | |
280 | { | |
281 | "timestamp": 1532201089, | |
282 | "metric": { | |
283 | "product": { | |
284 | "uuid": "1eb0c7bf-bf06-491c-a086-ac5478d521b9", | |
285 | "code": "CB0001", | |
286 | "name": "Hoppy Housebeer" | |
287 | }, | |
288 | "stage": "PRIMARY", | |
289 | "mode": "BEER", | |
290 | "temperature": { | |
291 | "air": 20.125, | |
292 | "beer": 20.062, | |
293 | "chiller": -3.000, | |
294 | "room": 20.1 | |
295 | }, | |
296 | "setpoint": { | |
297 | "low": 19.8, | |
298 | "high": 20.1 | |
299 | }, | |
300 | "heater": { | |
301 | "power": 100, | |
302 | "usage": 1234 | |
303 | }, | |
304 | "cooler": { | |
305 | "power": 0, | |
306 | "usage": 27273 | |
307 | }, | |
308 | "fan": { | |
309 | "power": 100, | |
310 | "usage": 8273772 | |
311 | }, | |
312 | "event": "Something to mark", | |
313 | "fermenter_uuid": "48c9ae27-3f58-41c9-ae4b-1d57b249c45a" | |
314 | } | |
315 | } | |
316 | </programlisting> | |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
317 | <para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
318 | 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
|
319 | 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
|
320 | Ieder brouw product heeft zijn eigen bestand. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
321 | 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
|
322 | 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
|
323 | Het interne formaat is:</para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
324 | <programlisting> |
530
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
325 | 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
|
326 | | | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
327 | 0 datetime + | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
328 | 1 werkwijze ---------+ | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
329 | 2 vergisting fase ---------+ | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
330 | 3 temperatuur lucht --------------+ | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
331 | 4 temperatuur bier ----------------------+ | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
332 | 5 temperatuur koeler ---------------------------+ | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
333 | 6 temperatuur ruimte ----------------------------------+ | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
334 | 7 instelwaarde laag ----------------------------------------+ | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
335 | 8 instelwaarde hoog ---------------------------------------------+ | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
336 | 9 verwarming vermogen -----------------------------------------------+ | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
337 | 10 verwarming verbruik ---------------------------------------------------+ | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
338 | 11 koeler vermogen -----------------------------------------------------------+ | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
339 | 12 koeler verbruik ---------------------------------------------------------------+ | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
340 | 13 gebeurtenis --------------------------------------------------------------------------+ | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
341 | 14 vergister uuid --------------------------------------------------------------------------------+ |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
342 | </programlisting> |
0 | 343 | </sect1> |
344 | ||
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
|
345 | <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
|
346 | <title>Netwerk payload data formaat voor CO2 meters.</title> |
720
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
347 | <para>De co2meters zijn simpele units gebouwd rond een ESP32 computer. Deze units |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
348 | hebben een klein scherm en een rotary knop voor de bediening. Dit is voldoende |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
349 | om alle instellingen te doen. Deze computer is ook voorzien van WiFi. Via |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
350 | WiFi worden de meetgegevens verstuurd als MQTT berichten. Op iedere co2meter |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
351 | kunnen drie drukmeters worden aangesloten.</para> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
352 | <para>De uuid codes worden niet eenmalig gegenereerd, maar deze worden samengesteld |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
353 | uit een vast patroon en het mac adres. In deze uuid code is ook een volgnummer |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
354 | voor het unit nummer verwerkt.</para> |
592 | 355 | <programlisting> |
356 | { | |
357 | "metric":{ | |
358 | "units":[ | |
359 | { | |
360 | "uuid":"c0ffeeee-dead-beef-caf0-3c71bffe4054", | |
361 | "alias":"unit1", | |
362 | "mode":"ON", | |
363 | "alarm":0, | |
364 | "temperature":{ | |
365 | "state":"OK", | |
366 | "address":"e001191420732a28", | |
367 | "temperature":20.250 | |
368 | }, | |
369 | "pressure":{ | |
370 | "state":"OK", | |
371 | "channel":7, | |
372 | "voltage":0.322, | |
373 | "zero":0.110, | |
374 | "bar":0.00 | |
375 | } | |
376 | }, | |
377 | { | |
378 | "uuid":"c0ffeeee-dead-beef-caf1-3c71bffe4054", | |
379 | "alias":"unit2", | |
380 | "mode":"OFF", | |
381 | "alarm":1, | |
382 | "temperature":{ | |
383 | "state":"OK", | |
384 | "address":"e001191420732a28", | |
385 | "temperature":20.250 | |
386 | }, | |
387 | "pressure":{ | |
388 | "state":"OK", | |
389 | "channel":6, | |
390 | "voltage":0.075, | |
391 | "zero":0.109, | |
392 | "bar":0.00 | |
393 | } | |
394 | } | |
395 | ] | |
396 | } | |
397 | } | |
398 | </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
|
399 | </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
|
400 | |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
401 | <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
|
402 | <title>Netwerk payload log formaat voor CO2 meters.</title> |
511 | 403 | <para> |
592 | 404 | Voor iedere actieve CO2 meter wordt bij iedere systeemstart en iedere vijf |
405 | minuten een logbericht gestuurd. Omdat de CO2 meters eenvoudige | |
511 | 406 | controllers zijn is er geen tijd en product informatie beschikbaar. Deze |
407 | ontbrekende gegevens worden aangevuld door <command>bmsd</command> | |
408 | </para> | |
409 | <programlisting> | |
592 | 410 | { |
411 | "metric":{ | |
412 | "uuid":"c0ffeeee-dead-beef-caf0-3c71bffe4054", | |
413 | "temperature":21.125, | |
414 | "pressure":0.000 | |
415 | } | |
416 | } | |
511 | 417 | </programlisting> |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
418 | <para> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
419 | 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
|
420 | 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
|
421 | 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
|
422 | 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
|
423 | 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
|
424 | 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
|
425 | <programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
426 | 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
|
427 | | | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
428 | 0 datetime + | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
429 | 1 temperatuur ----------+ | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
430 | 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
|
431 | 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
|
432 | </programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
433 | </sect1> |
0 | 434 | |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
435 | |
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
|
436 | <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
|
437 | <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
|
438 | <para> |
592 | 439 | Iedere actieve iSpindel stuurt bij iedere systeemstart een bericht. |
440 | Daarna na iedere <code>interval</code> tijd in seconden een volgend bericht. | |
441 | Omdat de iSpindel eenvoudige controllers zijn is er geen tijd en product | |
595 | 442 | informatie beschikbaar. De instellingen voor <code>bmsd</code> in de iSpindel zijn: |
443 | </para> | |
444 | ||
445 | <orderedlist> | |
446 | <listitem><para>Unit of temperature: Celsius</para></listitem> | |
447 | <listitem><para>Service Type: HTTP</para></listitem> | |
448 | <listitem><para>Token: leeg laten</para></listitem> | |
449 | <listitem><para>Server Address: het server IP adres</para></listitem> | |
450 | <listitem><para>Server Port: 80</para></listitem> | |
451 | <listitem><para>Path / URI: /ispindel/index.php</para></listitem> | |
452 | </orderedlist> | |
453 | ||
454 | <informaltable frame="none" rowsep="0" colsep="0"> | |
455 | <tgroup cols="2"> | |
456 | <tbody> | |
457 | <row> | |
458 | <entry> | |
459 | <para> | |
460 | <figure><title>iSpindel menu.</title> | |
461 | <mediaobject> | |
462 | <imageobject> | |
463 | <imagedata valign="top" fileref="bms-ispindel-1.png" scale="15" format="png"> | |
464 | </imageobject> | |
465 | </mediaobject> | |
466 | </figure> | |
467 | </para> | |
468 | </entry> | |
469 | <entry> | |
470 | <para> | |
471 | <figure><title>iSpindel configuratie.</title> | |
472 | <mediaobject> | |
473 | <imageobject> | |
474 | <imagedata valign="top" fileref="bms-ispindel-2.png" scale="15" format="png"> | |
475 | </imageobject> | |
476 | </mediaobject> | |
477 | </figure> | |
478 | </para> | |
479 | </entry> | |
480 | </row> | |
481 | </tbody> | |
482 | </tgroup> | |
483 | </informaltable> | |
484 | ||
485 | <para> | |
720
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
486 | De iSpindel stuurt de data in een http post commando naar het script <code>/ispindel/index.php</code>. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
487 | Dit script zet de ontvangen data om in twee MQTT berichten die verwerkt zullen worden door <command>bmsd</command>. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
488 | Eerst het bericht zoals het ontvangen wordt van de iSpindel: |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
489 | </para> |
592 | 490 | <programlisting> |
491 | { | |
720
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
492 | "name":"ispindel000", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
493 | "ID":"13962697", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
494 | "angle":"42.96722", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
495 | "temperature":"25.5625", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
496 | "temp_units":"C", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
497 | "battery":"4.254432", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
498 | "gravity":"9.306425", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
499 | "interval":"900", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
500 | "RSSI":"-37" |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
501 | } |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
502 | </programlisting> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
503 | |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
504 | <para> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
505 | De densiteit wordt door de iSpindel in graden Plato gegeven en zo worden |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
506 | de gegevens ook verwerkt. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
507 | Zorg er dus voor dat de iSpindel gecalibreerd wordt in Plato. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
508 | Het script <code>/ispindel/index.php</code> verzorgd de omzetting van de iSpindel POST data naar MQTT |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
509 | data. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
510 | Eerst wordt het node bericht gemaakt:</para> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
511 | <programlisting> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
512 | mbv1.0/ispindels/NBIRTH/ispindel-d50dc9 |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
513 | { |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
514 | "metric":{ |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
515 | "uuid":"c0ffeeee-cafe-dead-beef-2af236d50dc9", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
516 | "interval":900, |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
517 | "properties":{ |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
518 | "hardwaremake":"Wemos", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
519 | "hardwaremodel":"D1 mini", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
520 | "os":"Unknown", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
521 | "os_version":"Unknown", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
522 | "FW":"Unknown" |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
523 | }, |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
524 | "net":{ |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
525 | "address":"192.168.1.65", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
526 | "ifname":"sta", |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
527 | "rssi":-37 |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
528 | } |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
529 | } |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
530 | } |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
531 | </programlisting> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
532 | <para>En vervolgens het unit data bericht:</para> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
533 | <programlisting> |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
534 | mbv1.0/ispindels/DBIRTH/ispindel-d50dc9 |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
535 | { |
592 | 536 | "unit":{ |
537 | "uuid":"c0ffeeee-cafe-dead-bee0-2af236d50dc9", | |
538 | "alias":"iSpindel000", | |
539 | "alarm":0, | |
540 | "interval":900, | |
541 | "angle":42.96722, | |
542 | "temperature":25.5625, | |
543 | "battery":4.254432, | |
544 | "gravity":9.306425 | |
545 | } | |
546 | } | |
547 | </programlisting> | |
720
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
548 | |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
549 | <para> |
592 | 550 | De iSpindel stuurt geen aparte log informatie, alle informatie voor de logfile |
720
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
551 | wordt uit het standaard unit data bericht gehaald. |
b6a616372a26
Finished the network protocol documentation for the co2meters and ispindels.
Michiel Broek <mbroek@mbse.eu>
parents:
719
diff
changeset
|
552 | Ook wordt het SG door <code>bmsd</code> berekend uit de ontvangen Plato waarde. |
595 | 553 | De log gegevens worden niet opgeslagen in de SQL database |
554 | maar weggeschreven in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. | |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
555 | Ieder brouw product heeft zijn eigen bestand. |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
556 | 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
|
557 | 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
|
558 | Het interne formaat is:</para> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
559 | <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
|
560 | 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
|
561 | | | | | | | | | |
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
|
562 | 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
|
563 | 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
|
564 | 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
|
565 | 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
|
566 | 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
|
567 | 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
|
568 | 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
|
569 | 7 ispindel uuid ------------------------------------------------------------------+ |
568
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
570 | </programlisting> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
571 | </sect1> |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
572 | |
6f3c24e21deb
Added ispindel logging. Updated the documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
530
diff
changeset
|
573 | |
0 | 574 | </chapter> |