Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 0 additions & 206 deletions projects/IoTBoardCode/Waspmote/GAS_WiFi4/main.ino

This file was deleted.

3 changes: 0 additions & 3 deletions projects/IoTBoardCode/Waspmote/RADIATION_Board/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Date row
SELECT timestamp, id_wasp, sensor, value FROM sensorParser WHERE timestamp >= '2018-07-16' and (id_wasp in ("SCP1", "SCP2", "SCP4")) and (sensor in ("TC", "PRES", "HUM", "PM1", "PM10", "PM2_5"))

# Medii orare
SELECT DATE(timestamp) as "ZI", HOUR(timestamp) as "ORA", id_wasp, sensor, count(*) as "Numar_valori", avg(value) as "Medie orara" FROM sensorParser WHERE timestamp >= '2018-07-16' and (id_wasp in ("SCP1", "SCP2", "SCP4")) and (sensor in ("TC", "PRES", "HUM", "PM1", "PM10", "PM2_5")) group by DATE(timestamp), HOUR(timestamp), id_wasp, sensor order by DATE(timestamp), id_wasp, sensor, HOUR(timestamp)

# Medii zilnice
SELECT DATE(timestamp) as "ZI", id_wasp, sensor, count(*) as "Numar_valori", avg(value) as "Medie Zilnica" FROM sensorParser WHERE timestamp >= '2018-07-16' and (id_wasp in ("SCP1", "SCP2", "SCP4")) and (sensor in ("TC", "PRES", "HUM", "PM1", "PM10", "PM2_5")) group by DATE(timestamp), id_wasp, sensor order by DATE(timestamp), id_wasp, sensor
Loading