From 9f4ec017606f4b535923eb4bcd4cee34017c2fef Mon Sep 17 00:00:00 2001 From: Milan Ventil Toman Date: Thu, 8 Oct 2020 14:01:26 +0200 Subject: [PATCH] DB schema creation update --- influx_structure.md | 19 ++++++++++++------- readme.md | 6 +++--- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/influx_structure.md b/influx_structure.md index 79694ba..dd298c0 100644 --- a/influx_structure.md +++ b/influx_structure.md @@ -1,12 +1,17 @@ -#Structure of InfluxDB +# Structure of InfluxDB InfluxDB was chosen for it's simplicity and ease of management, live with it. -##influxDB SCHEMA: -Firs off, 2 databases: - weather - status +## influxDB SCHEMA +Let's take a look at how to create a suitable database for the data + +### Firs off, 3 databases: + + create database weather + create database status + create database raw + +### DB weather -###DB weather measure wind ---------------- value | speed or direction or windgust | davis_id @@ -27,7 +32,7 @@ Firs off, 2 databases: -###DB status +### DB status iss measure ---------------- diff --git a/readme.md b/readme.md index aaeda89..14e26d0 100644 --- a/readme.md +++ b/readme.md @@ -22,8 +22,8 @@ The pins are marked on the NodeMcu ESP8266, on the CC1101 module, pins are count ESP8266 | ESP8266 description | CC1101 | CC1101 description | |-------|---------------------|-----------|--------------------| -|GND | GND | 1- GND | GND | -|3V3 | Voltage In | 2- VCC | Vcc, Input voltage | +|3V3 | Voltage In | 1- VCC | Vcc, Input voltage | +|GND | GND | 2- GND | GND | |D7 | GPIO13 | 3- Pin3 | MOSI | |D5 | GPIO14 | 4- Pin4 | SCLK | |D6 | GPIO12 | 5- Pin5 | MISO | @@ -156,7 +156,7 @@ Before uploading the inte.conf, please change it to your desired values. ``` ### 7. If you haven't already, create 2 DBs in inclux -I am tempted to push the raw, undecoded data to a DB as well, but influx is not siuted for this. Nevertheless, I did it. Enjoy. +I am tempted to push the raw, undecoded data to a DB as well, but influx is not siutd for this. You can ignore the last DB creation ``` ssh 192.168.1.2 influx