title: ArangoDB temperature sensor database
body: <p>i want to create a small prototype app vor temperatur sensor visualization.
  For the fist only really static, means only one Date/Value pair.
  The API that i want to write in node.js with express shout connect to ArangoDB.
  Is better to use Foxx or express is ok?</p>
  <p>Each Sensor has:</p>
  <ul>
  <li>ID:int</li>
  <li>Name: string</li>
  </ul>
  <p>and relate to a set of</p>
  <ul>
  <li>time: Date</li>
  <li>value: int</li>
  </ul>
  <p>Key/Value store will be to less because in the feature will a dataset will have battery level and more.</p>
  <p>I'm searching for help to start with it.
  Is this a right way? <a href="https://docs.arangodb.com/3.1/cookbook/Graph/ExampleActorsAndMovies.html" rel="nofollow noreferrer">https://docs.arangodb.com/3.1/cookbook/Graph/ExampleActorsAndMovies.html</a></p>
  <p>Update:</p>
  <p>I make this in the Arango Management Interface.
  Is better to use a object as root or start with a array?</p>
  <pre><code>{
    &quot;sensors&quot;: [
      [
        {
          &quot;name&quot;: &quot;sensor 1&quot;,
          &quot;data&quot;: [
            {
              &quot;Time&quot;: &quot;10.10.10 10:05:05&quot;,
              &quot;Value&quot;: 30
            },
            {
              &quot;Time&quot;: &quot;10.10.10 10:05:05&quot;,
              &quot;Value&quot;: 30
            }
          ]
        },
        {
          &quot;name&quot;: &quot;sensor 1&quot;,
          &quot;data&quot;: [
            {
              &quot;Time&quot;: &quot;10.10.10 10:05:05&quot;,
              &quot;Value&quot;: 30
            },
            {
              &quot;Time&quot;: &quot;10.10.10 10:05:05&quot;,
              &quot;Value&quot;: 30
            }
          ]
        }
      ]
    ]
  }
  </code></pre>