Cumulusmx.db: Difference between revisions

1,655 bytes removed ,  2 November 2022
m
Protected "Cumulusmx.db": Edit warring ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
m (Protected "Cumulusmx.db": Edit warring ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(7 intermediate revisions by the same user not shown)
This page is the new ''Cumulusmx.db'' page. This page and subpages hold a complete rewrite of the ''Webtags'' related pages.
 
The information that was on this old ''Cumulusmx.db'' page has been moved to [[Cumulusmx.db_(preserving_history)|Cumulusmx.db (preserving history)]]. You are advised to use that page until this page is ready and this message has been removed. If any questions or remarks please send a PM to [https://cumulus.hosiene.co.uk/memberlist.php?mode=viewprofile&u=9016 HansR] on the forum. Do not use the ''discussion'' tab unless accompanied by a PM: there is no automated signal to HansR if you use that page.
 
This page and its subpages will document the Cumulusmx.db from the point of view of the CumulusMX software and not the Cumulus 1 legacy software. Cumulus 1 is no longer maintained and will eventually disappear. If you are still using it, please refer to the original [[Cumulusmx.db_(preserving_history)|Cumulusmx.db (preserving history)]] page where @sfws has tried to give both packages equal value. That effort is no longer maintained in this ''Webtags'' page. We hope you will understand this approach.
 
Please do not edit this page while it is being worked on i.e. while this message is still here.
 
<hr/>
 
[[Category:Cumulus MX]][[Category:Cumulus Files]]
 
'''Note''': The CumulusMX [[Weather Diary]] also uses a SQLite database stored in [[diary.db|data/diary.db]].
 
= The Recent History Data Table =
 
This table has the following columns:
! style="width:280px" | Properties
! style="width:450px" | Description
! style="width:120px" | Example column value
|-
| 0
| Primary Key, can never be NULL, No Default Value,
| Dates and times for the last 7 days, at whatever interval available (at logging interval for historic archive data, at one minute intervals while MX is running)
| 2021-07-31 19:44:00
|-
| 1
| Not NULL, No Default Value
| The average wind speed (see [[Wind_measurement#Weather_Stations_and_Cumulus]] for links) calculated at the stated time, if necessary converted to units requested
| 2.2593056529
|-
| 2
| Not NULL, No Default Value
| The spot gust speed recorded at the stated time, if necessary converted to units requested
| 6.99691241605804
|-
| 3
| Not NULL, No Default Value
| The spot latest wind speed recorded at the stated time, if necessary converted to units requested
| 3.15989597323001
|-
| 4
| Not NULL, No Default Value
| The wind bearing (0 =calm), (1 to 360 = number of degrees)
| 315
|-
| 5
| Not NULL, No Default Value
| The average wind bearing over the defined period
| 270
|-
| 6
| Not NULL, No Default Value
| The measured [[Temperature_(and_humidity)_measurement|outside air temperature]], if necessary converted to units requested
| 17.0
|-
| 7
| Not NULL, No Default Value
| The [[wind chill]], either calculated by MX, or supplied by weather station. (Note: strictly only valid for low temperatures and significant wind speeds)
| (In the example used here, temperature in previous column was too high for wind chill, so the value was set to agree with 'OutsideTemp' column instead)
|-
| 8
| Not NULL, No Default Value
| The [[Temperature_(and_humidity)_measurement#Cumulus_Calculated_Parameters|dew point]], either calculated by MX, or supplied by weather station, for the stated time.
| 11.9134549845367
|-
| 9
| Not NULL, No Default Value
| The USA [[Heat index]] as calculated by Cumulus for the stated time (if the temperature is high enough)
| (In the example used here, temperature in 'OutsideTemp' column was too low for heat index, so the value was set to agree with 'OutsideTemp' column instead)
|-
| 10
| Not NULL, No Default Value
| The [[Temperature_(and_humidity)_measurement|Relative Humidity]] reported by the station at the stated time
| 72.0
|-
| 11
| Not NULL, No Default Value
| The sea level pressure at the stated time, either as reported by the station or calculated by Cumulus from the absolute pressure reported by the station, if necessary converted to units requested
| 996.400024414062
|-
| 12
| Not NULL, No Default Value
| The rainfall for today so far, calculated by Cumulus from the rain counter (column 15) now minus the rain counter at start of day, if necessary converted to units requested
| 4.5
|-
| 13
| Not NULL, No Default Value
| Solar radiation value reported by station at stated time
| 200
|-
| 14
| Not NULL, No Default Value
| The Ultra Violet Index reported by station at stated time
| 3.0
|-
| 15
| Not NULL, No Default Value
| The rain counter is used by Cumulus for all rainfall outputs, this is its value at stated time
| 550.4
|-
| 16
| Not NULL, No Default Value
| The [[Feels Like]] temperature calculated by MX at stated time
| 17.0782773978147
|-
| 17
| Not NULL, No Default Value
| The Canadian [[Humidex|Humidity Index]], calculated by Cumulus at the stated time
| 19.1775362738161
|-
| 18
| Not NULL, No Default Value
| The [[Apparent temperature]], calculated by MX at the stated time
| 16.8864476063546
|-
| 19
| Not NULL, No Default Value
| The indoor temperature directly as reported by station at stated time
| 120.89999961853
|-
| 20
| Not NULL, No Default Value
| The indoor relative humidity directly as reported by station at stated time
| 61
|-
| 21
| Not NULL, No Default Value
| The calculated maximum value for solar radiation at stated time
| 1026
|-
| 22
| Not NULL, No Default Value
| Air Quality expressed in terms of particulate matter of 2.5 μm, or less, (?? Rolling 24 hours average ??)
| 1.5
|-
| 23
| Not NULL, No Default Value
| Air Quality expressed in terms of particulate matter of 10 μm, or less, (?? Rolling 24 hours average ??)
| 1.7
|-
| 24
| Not NULL, No Default Value
| The [[FAQ#How_is_my_rain_rate_calculated.3F|rainfall rate]] calculated for the stated time
| 303.2
|}
 
See [[Recent history|'''Recent history''' page]] for more details.
 
= SqlCache table =
 
This table is fully managed by CumulusMX. You are not supposed to edit contents, you can view to quench your curiosity.
There is a MX setting ('''Settings''' -->> ''MySQL settings'' -->> '''General Options''' -->> Buffer commands on failure) that when enabled allows failed commands to be stored here.
 
There is a MX setting ('''Settings''' --=>> ''MySQL settings'' --=>> '''General Options''' -->=>tick Buffer commands on failure) that when enabled allows failed commands to be stored here. The buffer is lost when CumulusMX is restarted.
 
This table holds a list of MySQL commands that are in the queue for '''[[MySqlConnect]]''' to run again.
* DivisionByZero (certain mathematical operations cannot be handled)
The table has two fields:
 
{| border="1" class="wikitable"
Here is the relevant create table instruction, so this tells you the 2 fields in the table as Mark Crossley created it:
|-
 
! style="width:120px10px" | ExampleColumn columnnumber # value
CREATE TABLE "SqlCache"(
! style="width:80px" | Column name
"key" integer primary key autoincrement not null,
! style="width:80px" | Column type
"statement" varchar)
! style="width:280px" | Properties
 
! style="width:450px" | Description
The table contents are simple to explain, each time a new command is stored it is assigned a new number (that is automatically incremented from last number used) and the command itself is stored in a variable text length entry.
|-
 
| 17.0
| key
| integer
| Primary Key, Not NULL, No Default Value,
| An autoincrement integer for every SQL statement entered in the cache
|-
|-
| 611
"statement"| varchar)statement
| varchar
| Not NULL, No Default Value,
| Contains the actual SQL statement that failed
|-
|}
 
= SQLite Sequence =
CREATE TABLE sqlite_sequence (`name` TEXT, `seq` TEXT)
No relevant information on this table is known