I need some help and direction if anyone can assist.
I have and creating a weather station that get data via the Rasp serial port that I display via Node Red.
I want to log this data into a DB. I installed MariaDB, but from here I have no clue what to do.
I created a DB “weather, with a table “weathertbl” and added some fields.
What type should the fields be?
The data that comes in is temperature etc (21.34) etc
How do I update this data into the DB.
Probably float see here
If you are struggling here then i would guess you are not familiar with SQL? Perhaps start here
NOTE: this forum is for node-red related issues. Your questions are about database basics.
Typically you would try something, get stuck, post your flow/screenshots/errors etc & we help you solve it.
So, can I suggest you give the MariaDB documentation a good look over, see how far you get, pop another question on here if you get stuck populating the DB.
PS: Since MariaDB is a fork of MySQL , the database structure and indexes of MariaDB are the same as MySQL, perhaps search this forum for MySQL and the flow library - might give you some pointers.
Unless you have a particular desire to use mariadb then I suggest looking at Influxdb which is specifically designed for time series databases. There are influx nodes for writing data to it without the need to understand SQL and if you want sophisticated graphs it can easily be used with Grafana.
hi Steve, you are right. I am learning.
I will take a look
Hi Colin, thank you, there is no specific need, I saw this in a tutorial not knowing much on DB's I will take a look at this.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.