Commit Graph

49 Commits

Author SHA1 Message Date
Markus Pesch ffbc8a793c
fix: golangci-lint and gosec warnings 2021-05-26 19:47:15 +02:00
Markus Pesch 7a88aaac0c
refac: use embed instead of go-bindata, secure closing of transactions 2021-03-21 21:43:53 +01:00
Markus Pesch 1701db7b8e
fix: define cache values
The number of measured values in the cache before they are stored in the
database can not be defined over the flag --cached-values.
2020-10-07 23:59:27 +02:00
Markus Pesch 3a090d190e
fix: cli temperature read
changes:
- fix: read temperature values without daemon
  Add subcommand to read temperature values without starting the daemon

- fix: implement measured value types
  Replace measured value types with constants

- fix: add sensor pipelines
  Add functions which returns a channel with measured values

- fix: filter measured values from a channel
  Add functions to filter measured values by sensor id or measured
  value types.
2020-09-21 20:05:37 +02:00
Markus Pesch 7cbd80c726
fix: remove obsolete attributes from config.json
changes:
- removed unused attributes from config.json
2020-09-07 19:12:30 +02:00
Markus Pesch 8c1bd57ad5
fix: gnu-cc, missing humidity table, restrict repository select 2020-06-27 21:12:00 +02:00
Markus Pesch a49546bd6d
fix: migrate to gitea 2020-06-10 21:13:05 +02:00
Markus Pesch 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
Markus Pesch 11717679bc
fix: daemon load sensors from repo instead config 2020-05-22 07:45:14 +02:00
Markus Pesch d0e238e64a
fix: use repository instead db package 2020-05-21 20:07:32 +02:00
Markus Pesch 8f1c7b10f7
fix: implement repository pkg 2020-05-21 17:40:24 +02:00
Markus Pesch 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
Markus Pesch 8cc232adc1
fix:_renamed import path to volker-raschek 2020-01-19 13:30:47 +01:00
Markus Pesch 671a3eb748
fix(pkg/server): logging and save values into postgres 2020-01-18 14:55:43 +01:00
Markus Pesch 0765bd29d1
refac(cmd): mergeing, ordering and outsourcing cmd subcommands 2020-01-13 22:32:00 +01:00
Markus Pesch 12246aae0c
fix(pkg/daemon): write values into logfile 2020-01-11 17:24:18 +01:00
Markus Pesch 40857249c4
test(pkg/cli): Implementation of test to stabilize the code 2020-01-11 13:03:58 +01:00
Markus Pesch 2cd2188dcb
refac(pkg/types): remove deprecated prefix name of struct attributes 2020-01-10 22:03:49 +01:00
Markus Pesch 95fb1f6745
fix(pkg/sensor): reduce interface functions for better error handling 2020-01-10 19:42:19 +01:00
Markus Pesch 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
Markus Pesch afe55b3d33
fix(pkg/daemon): compression and rounding 2019-12-08 12:49:21 +01:00
Markus Pesch 25dd99cd3d
test(pkg/storage): add test for compression and rounding 2019-12-08 12:49:21 +01:00
Markus Pesch ea83d43cd6
fix(pkg/logger): exclude logger library into an own repository 2019-12-08 12:49:20 +01:00
Markus Pesch 04bc3baffe
fix(pkg/daemon): save measured values into postgres database if defined 2019-12-08 12:49:19 +01:00
Markus Pesch 60ee044b88
feat(pkg/db): postgres database 2019-08-25 13:16:21 +02:00
Markus Pesch 825511c3b5
fix(pkg/types): use measured values as struct instead interface 2019-07-02 22:47:28 +02:00
Markus Pesch d703d33e08
fix(cmd/daemon): default settings 2019-07-02 22:47:28 +02:00
Markus Pesch 289aaf2093
feat(pkg/sensor): new support for sensor bme280 2019-07-02 22:47:28 +02:00
Markus Pesch 45763d7c9d
fix(pkg/daemon): use all enables sensors instead of only temperature sensors 2019-06-27 20:39:51 +02:00
Markus Pesch 8005248262
fix(pkg/sensors): Use channel of data type []measuredValues instead of measuredValues 2019-06-27 09:31:40 +02:00
Markus Pesch 3dae3e38be
fix(pkg/logfile): use one instead of several logfiles for all measured values 2019-06-26 23:37:17 +02:00
Markus Pesch 072a902376
fix(pkg/logfile): read and write logfiles from json with measured value interface 2019-06-26 23:37:17 +02:00
Markus Pesch 08c2cbbf57
fix(pkg/daemon): use measuredValue interface instead of different structs 2019-06-25 22:22:34 +02:00
Markus Pesch c8a1dd2935
fix(pkg/rgbled): use action maps to turn on/off led colors 2019-06-24 22:58:29 +02:00
Markus Pesch 45e6c30220
fix(pkg/daemon): behavior of the rgbled 2019-06-23 21:07:53 +02:00
Markus Pesch 5e03d987c5
refac(pkg/sensor): temperature measurement unit 2019-06-23 14:17:57 +02:00
Markus Pesch 3bb10a4f78
fix(pkg/sensor): temperature measurement unit 2019-06-23 13:50:57 +02:00
Markus Pesch 3791723230
fix(pkg/logfile): add compression 2019-06-21 15:43:15 +02:00
Markus Pesch f979e88a52
fix(pkg/daemon): turn on red rgb-led if something goes wrong in other cases 2019-06-21 14:37:02 +02:00
Markus Pesch f6db6f9ce3
feat(pkg/logfile): support csv and xml logfile 2019-06-21 13:45:58 +02:00
Markus Pesch 088ed3b5f7
feat(pkg): add logger and round direct over sensor interface 2019-06-18 23:08:04 +02:00
Markus Pesch 2941f7a527
fix(pkg/sensor): use context to terminate go routines 2019-06-17 23:41:37 +02:00
Markus Pesch 64590c1194
feat(cmd/daemon): new flag to set clean cache interval 2019-06-16 23:15:26 +02:00
Markus Pesch 13fcb9776d
fix(pkg/daemon): turn on/off info lights 2019-06-16 20:51:28 +02:00
Markus Pesch 3d07cbc9ba
feat(daemon): new flag to set compression 2019-06-15 16:42:54 +02:00
Markus Pesch 518855bedf
refact(pkg): adapt go dependancies 2019-06-15 15:58:41 +02:00
Markus Pesch 5f859139a4
feat(daemon): add new subcommand to start a daemon 2019-06-15 15:45:35 +02:00
Markus Pesch 8aa6db6b7d
fix(pkg/logfile): add temperature json testfiles 2019-06-14 21:35:13 +02:00
Markus Pesch 5220eac16b
fix: breaking changes
changes:
- remove remote operations
- add function to write measured values into a channel
- add get humidity sensors from config
- add get temperature sensors from config
- remove FileLogger
- exclude some functions from pkf into internal
2019-06-13 22:15:48 +02:00