The UFZ services GitLab and Mattermost will be unavailable on Monday, December 06 from 06:00 AM to 08:00 AM due to maintenance work.

Commit c3f6002a authored by David Schäfer's avatar David Schäfer
Browse files

add configuration dates to sensors

parent 7b734017
......@@ -7,12 +7,14 @@ type locationModel struct {
}
type sensorModel struct {
ID int `db:"SENSOR_ID" json:"sensorId"`
Name string `db:"SENSOR_NAME" json:"sensorName"`
Label string `db:"SENSOR_LABEL" json:"sensorLabel"`
LoggerID int `db:"LOGGER_ID" json:"loggerId"`
Updated Boolean `db:"UPDATED" json:"isUpdated"`
Deleted Boolean `db:"DELETED" json:"isDeleted"`
ID int `db:"SENSOR_ID" json:"sensorId"`
Name string `db:"SENSOR_NAME" json:"sensorName"`
Label string `db:"SENSOR_LABEL" json:"sensorLabel"`
LoggerID int `db:"LOGGER_ID" json:"loggerId"`
Updated Boolean `db:"UPDATED" json:"isUpdated"`
Deleted Boolean `db:"DELETED" json:"isDeleted"`
StartDate string `db:"START_DATE" json:"startDate"`
EndDate string `db:"END_DATE" json:"endDate"`
}
type variableModel struct {
......
......@@ -14,6 +14,8 @@ SELECT
, o.hoehe_nn -- elevation of the sampling location
, o.lat
, o.lon
, TO_CHAR(c.config_start, 'YYYY-MM-DD HH24:MI:SS') AS start_date
, TO_CHAR(c.config_end, 'YYYY-MM-DD HH24:MI:SS') AS end_date
FROM LOGGER.SENSOR s
JOIN LOGGER.SENSOR_CONFIGURATION c on s.sensor_configuration_id = c.sensor_configuration_id
JOIN LOGGER.LOGGER l on l.logger_id = c.logger_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment