ignore file

This commit is contained in:
Wolfgang Hottgenroth 2023-02-12 22:38:49 +01:00
parent af0afb44f6
commit c1957722c2
Signed by: wn
GPG Key ID: 836E9E1192A6B132
2 changed files with 20 additions and 1 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
simulation/.venv/

View File

@ -47,7 +47,7 @@ with
category = 'Outdoor' and category = 'Outdoor' and
location = 'Outdoor' and location = 'Outdoor' and
extract('hour' from time) = 12 and extract('hour' from time) = 12 and
extract('year' from time) = 2023 extract('year' from time) = 2022
group by day group by day
order by day order by day
) )
@ -71,3 +71,16 @@ select
extract('year' from time) = 2023 extract('year' from time) = 2023
group by day group by day
order by day; order by day;
-- Tageswert
select
extract('day' from time)::varchar || '.' || extract('month' from time)::varchar || '.' || extract('year' from time)::varchar as day,
avg(temperature)::numeric(10,0) as temperature
from room_climate_measurement_t
where
category = 'Outdoor' and
location = 'Outdoor' and
extract('hour' from time) = 12 and
time::date = now()::date
group by day;