Browse Source

Adds a InfluxDB readme

tsetsova 2 years ago
parent
commit
003e6faa2d
1 changed files with 41 additions and 0 deletions
  1. 41 0
      influxdb/README.md

+ 41 - 0
influxdb/README.md

@@ -0,0 +1,41 @@
1
+# SQLite Spike
2
+
3
+## Setting up
4
+
5
+- Install
6
+```
7
+brew install influxdb
8
+```
9
+
10
+- Start influxdb
11
+```
12
+influxd -config /usr/local/etc/influxdb.conf
13
+```
14
+
15
+- Connect to the local influxdb instance in a new tab
16
+
17
+```
18
+influx -precision rfc3339
19
+```
20
+- Create db
21
+
22
+```
23
+CREATE DATABASE mydb
24
+```
25
+
26
+- Insert value - WIP
27
+```
28
+INSERT airQuality,deviceId=12 district=E9 value=13
29
+INSERT airQuality,deviceId=8 district=E9 value=12
30
+INSERT airQuality,deviceId=12 district=E9 value=14
31
+INSERT airQuality,deviceId=34 district=E2 value=80
32
+INSERT airQuality,deviceId=45 district=E2 value=76
33
+INSERT airQuality,deviceId=34 district=E2 value=70
34
+```
35
+
36
+## Resources
37
+
38
+- [Installation](https://docs.influxdata.com/influxdb/v1.2/introduction/installation)
39
+- [Time Series Data with InfluxDB](https://www.youtube.com/watch?v=xBkegcd2bFE)
40
+- [Introduction to InfluxDB ](https://www.youtube.com/watch?v=sRi64imN7xg)
41
+- [Intro to IOT with TICK stack](https://www.influxdata.com/how-to-create-iot-influxdb-google-cloud-platform-part-1/)