Base de données publique » Historique » Version 1
openbeelab, 24/06/2018 12:14
1 | 1 | openbeelab | h1. Base de données publique |
---|---|---|---|
2 | |||
3 | h2. adresses |
||
4 | |||
5 | db1.openbeelab.org ports 5984 et 6984 |
||
6 | |||
7 | h2. Structure des données |
||
8 | |||
9 | |||
10 | <pre><code class="javascript"> |
||
11 | all |
||
12 | |||
13 | map |
||
14 | function (doc) { |
||
15 | if (doc.type === "measure") { |
||
16 | return emit([doc.beehouseId, doc.datetimeISO], doc); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | global-weight |
||
21 | |||
22 | map |
||
23 | function (doc) { if (doc.type === "measure" && doc.name === "global-weight") { return emit([doc.beehouseId, doc.datetimeISO], d... |
||
24 | |||
25 | outside-temperature |
||
26 | |||
27 | map |
||
28 | function (doc) { if (doc.type === "measure" && doc.name === "outside-temperature") { return emit([doc.beehouseId, doc.datetimeI... |
||
29 | |||
30 | inside-temperature |
||
31 | |||
32 | map |
||
33 | function (doc) { if (doc.type === "measure" && doc.name === "inside-temperature") { return emit([doc.beehouseId, doc.datetimeIS... |
||
34 | |||
35 | humidity |
||
36 | |||
37 | map |
||
38 | function (doc) { if (doc.type === "measure" && doc.name === "humidity") { return emit([doc.beehouseId, doc.datetimeISO], doc); ... |
||
39 | </code></pre> |
||
40 | [[]] |