Commit Graph

132 Commits

Author SHA1 Message Date
0384bbd574
fix: move sql driver import into main.go 2020-06-10 21:25:52 +02:00
a49546bd6d
fix: migrate to gitea 2020-06-10 21:13:05 +02:00
940e04371c
feat: dockerutils lib to start container images 2020-06-10 09:42:40 +02:00
4931c63c10
fix: add postgres backend
changes:
- Add postgres backend
- Modified or added table attributes.
  UpdateDate, ForeignKeys, Booleans
- Fix test for sqlite and postgres. Compare json instead the struct.
2020-06-01 22:50:05 +02:00
10069568f9
fix: renamed storage endpoint into dsn
Changes:
- Renamed storage endpoint into dsn (data source name).
- Add additional dsn fallback property. This dsn will be used in futes
  to store informations, if the main dsn backend does not work
  correctly. For example, if no connection can be established over the
  network to a database.
2020-06-01 12:41:48 +02:00
43e9d00dcb
fix: implement repository test
changes:
- Implement repository test for the sqlite backend
- Add testutils package to start container images
- Remove deprecated till_date in measured values
- Renamed columns of the table humidities, pressures and temperatures
2020-06-01 00:56:04 +02:00
11717679bc
fix: daemon load sensors from repo instead config 2020-05-22 07:45:14 +02:00
d0e238e64a
fix: use repository instead db package 2020-05-21 20:07:32 +02:00
8f1c7b10f7
fix: implement repository pkg 2020-05-21 17:40:24 +02:00
fb916c94ae
fix: add, rename and remove sensor
changes:
- Implement function to add, rename and remove sensors
2020-05-17 13:00:51 +02:00
fb8d4dd5eb
fix: new implementation
changes:
- Remove cli
  Some cli commands are not complete tested and are deprecated.

- Daemon
  - Old version has a very bad implementation of how to verify, if the
    device or the sensors are in the database insert. The current
    implementation can be improved but this one is betten then the old
    one.
  - Remove complete the cache store implementation. Use a normal array
    and query the length and capacity to determine how the array cache
    must be cleaned.

- Type
  Remove unused types and functions
2020-05-03 14:09:22 +02:00
8cc232adc1
fix:_renamed import path to volker-raschek 2020-01-19 13:30:47 +01:00
671a3eb748
fix(pkg/server): logging and save values into postgres 2020-01-18 14:55:43 +01:00
6f45c2957a
test(postgres): add missing tests 2020-01-18 14:42:15 +01:00
3581424bd2
fix(pkg/storage): write creation date in storage pkg 2020-01-18 14:40:47 +01:00
c266117785
fix(pkg/storage/logfile): remove func append - dead code 2020-01-13 22:45:51 +01:00
0765bd29d1
refac(cmd): mergeing, ordering and outsourcing cmd subcommands 2020-01-13 22:32:00 +01:00
12246aae0c
fix(pkg/daemon): write values into logfile 2020-01-11 17:24:18 +01:00
002f3e9e25
fix(cmd/sensor): set tick duration for new sensors 2020-01-11 13:18:38 +01:00
40857249c4
test(pkg/cli): Implementation of test to stabilize the code 2020-01-11 13:03:58 +01:00
b595cf1ac8
fix(pkg/cli): GetSensorIDsByMeasuredValues 2020-01-11 12:10:26 +01:00
2cd2188dcb
refac(pkg/types): remove deprecated prefix name of struct attributes 2020-01-10 22:03:49 +01:00
95fb1f6745
fix(pkg/sensor): reduce interface functions for better error handling 2020-01-10 19:42:19 +01:00
b125bf432c
fix(cli/db): remove obsolete db subcommand 2019-12-08 12:49:21 +01:00
dbef4f8241
fix(pkg/config): use storage endpoints
changes:
- Only one storage endpoint can be defined. This consists of a URL which
  can be used to specify whether the data is to be stored in a file or
  in a database.
2019-12-08 12:49:21 +01:00
afe55b3d33
fix(pkg/daemon): compression and rounding 2019-12-08 12:49:21 +01:00
25dd99cd3d
test(pkg/storage): add test for compression and rounding 2019-12-08 12:49:21 +01:00
86f598bc7d
fix(test): goldenFiles 2019-12-08 12:49:20 +01:00
a7722e028a
fix(pkg/storage/logfile): create logfile if not exists 2019-12-08 12:49:20 +01:00
ea83d43cd6
fix(pkg/logger): exclude logger library into an own repository 2019-12-08 12:49:20 +01:00
04bc3baffe
fix(pkg/daemon): save measured values into postgres database if defined 2019-12-08 12:49:19 +01:00
6223f4e79b
fix(pkg/db): create or upgrade postgres schema based on semver 2019-12-08 12:49:14 +01:00
d19e26d971
fix(pkg/db/postgres): error handling 2019-08-25 20:58:45 +02:00
60ee044b88
feat(pkg/db): postgres database 2019-08-25 13:16:21 +02:00
0e1ca7a8e1
fix(pkg/cli): nil pointer exeption - print empty string instead throw exeption 2019-07-24 17:18:56 +02:00
0dd156f480
fix(pkg/logfile): description of functions 2019-07-14 19:06:26 +02:00
31accbd742
test(pkg/logfile): remove old test files 2019-07-14 19:05:44 +02:00
3feee7764b
fix(pkg/logfile): support xml logfiles 2019-07-03 18:46:19 +02:00
93c08d8147
fix(pkg/config): add functions to get pressure sensors 2019-07-02 22:47:28 +02:00
825511c3b5
fix(pkg/types): use measured values as struct instead interface 2019-07-02 22:47:28 +02:00
d703d33e08
fix(cmd/daemon): default settings 2019-07-02 22:47:28 +02:00
397f870435
fix(pkg/logfile): support write and read air pressure values from json logfile 2019-07-02 22:47:28 +02:00
043fc395d9
fix(pkg/logfile,sensor): implement pressure as measured value 2019-07-02 22:47:28 +02:00
289aaf2093
feat(pkg/sensor): new support for sensor bme280 2019-07-02 22:47:28 +02:00
4fe4abb0e9
fix(pkg/logfile): read from csv file styled by measured values 2019-06-28 13:04:04 +02:00
41653afebf
fix(pkg/rgled): turn output on 2019-06-28 09:59:11 +02:00
45763d7c9d
fix(pkg/daemon): use all enables sensors instead of only temperature sensors 2019-06-27 20:39:51 +02:00
4680841684
fix(pkg/logfile): compression for measured values 2019-06-27 20:39:51 +02:00
4d7408ac81
fix(pkg/internal): rm collect humidities 2019-06-27 18:43:59 +02:00
4975ce21fa
fix(pkg/config): get temperature or humidity sensors 2019-06-27 18:43:16 +02:00