Grimcheese / GardenStation

All in one solution for monitoring my garden.
0 stars 0 forks source link

Implement database #1

Closed Grimcheese closed 11 months ago

Grimcheese commented 12 months ago

GardenStation needs a database to be implemented to store all recorded data in an easily accessible way. The project relies on recording and storing data so the database is a major feature that needs to be implemented.

Main Specs

Tasks

Grimcheese commented 12 months ago

Using SQLite for the DBMS as it is lightweight and will be suitable to run on a RPI.

Grimcheese commented 11 months ago

Working on database implementation has lead to a rethink in how the database for soil moisture readings should be structured.

Going back and forth between tables for each sensor or keeping one reading table.

Now leaning more towards single table but adding extra tables to store metadata such as devices, locations

Grimcheese commented 11 months ago

First working version of Database API is complete with testing 84d13e898

It contains method calls to insert records into a moisture_readings table, retrieve all records stored from a device and retrieve records between a range of dates.

Grimcheese commented 11 months ago

Closed with pull request #6