Battery Monitoring – Database


Mariadb installed on a Raspberry Pi

Database FSR

Table structure for table Equipment

ColumnTypeNullDefault
EquipmentCodeint(11)No
EquipmentDesctextNo

Data for table Equipment

EquipmentCodeEquipmentDesc
0MPPT Controller
1Pi
3Panels
4Batteries
5Modem
6Environment
7DVB-T
8DVB-S

Table structure for table Periods

ColumnTypeNullDefault
PeriodCodeint(11)No
PeriodDescchar(20)No
Cumulativetinyint(1)No1

Data for table Periods

PeriodCodePeriodDescCumulative
0Instant0
1Total1
2Day1
3Month1
4Year1
5LastFull1
61 min Avg0
75 min Avg0
815 min Avg0

Table structure for table Readings

ColumnTypeNullDefaultLinks to
ReadingPointdatetimeNo

SourceCodeint(11)No
Sources (SourceCode)
EquipmentCodeint(11)No
Equipment (EquipmentCode)
PeriodTypeint(11)No
Periods (PeriodCode)
ReadingTypeint(11)No
ReadingTypes (ReadingTypeCode)
Directiontinyint(4)No

ReadingValuedoubleNo

Table structure for table ReadingTypes

ColumnTypeNullDefault
ReadingTypeCodeint(11)No
ReadingTypeDescchar(20)No
UnitDescchar(20)No
UnitSymbolchar(2)No

Data for table ReadingTypes

ReadingTypeCodeReadingTypeDescUnitDescUnitSymbol
0VoltageVoltsV
1CurrentAmpsA
2TempCelciusC
3Status

4EnergyWattHoursWh
5PowerWattsW
6SignalIcon

7NetworkType

8ConnectTimeSecondss
9DataBytesB
10RSCP

11ECIO

12DataRateBaudBd
13PressurePascalsPa
14HumidityPercent%
15Illuminationluxlx
16LatitudeDegreesdg
17LongitudeDegreesdg
18AltitudeDegreesdg
19Satellites

20HDOP

21SpeedMetres/Sec
22CourseDegreesdg
23Load Avg

Table structure for table Sources

ColumnTypeNullDefault
SourceCodeint(11)No
SourceDescchar(20)No

Data for table Sources

SourceCodeSourceDesc
0MPPT Controller
1Charge Shunt
2Load Shunt
3Calculated
4Pi
5Modem
6Speedtest.net
7ESP8266
8TV
9Weather
10GeoTracker

Leave a Reply

Your email address will not be published. Required fields are marked *