Commit Graph

28 Commits

Author SHA1 Message Date
Markus Pesch ffbc8a793c
fix: golangci-lint and gosec warnings 2021-05-26 19:47:15 +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 9ee9742aff
fix: use own dht pkg 2020-06-21 18:42:33 +02:00
Markus Pesch a49546bd6d
fix: migrate to gitea 2020-06-10 21:13:05 +02:00
Markus Pesch 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
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 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 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 8005248262
fix(pkg/sensors): Use channel of data type []measuredValues instead of measuredValues 2019-06-27 09:31:40 +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 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 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 648388e1e8
refact(pkg): adapt go dependancies 2019-06-15 17:07:50 +02:00
Markus Pesch 518855bedf
refact(pkg): adapt go dependancies 2019-06-15 15:58:41 +02:00
Markus Pesch 2843d96756
fix(pkg/config): converter for humidity and temperature sensors 2019-06-15 14:03:11 +02:00
Markus Pesch 7a3b3c6218
fix(pkg/config): option to select all, enable or disable temperature sensors 2019-06-15 11:49:46 +02:00
Markus Pesch a8aa7a14c5
fix(types): humidity and temperature with from and till date 2019-06-13 22:22:12 +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
Markus Pesch c5233d578a
fix: rename packages 2019-05-12 11:57:53 +02:00
Markus Pesch 4bae510120
feat: implementation of dht22 sensor 2019-03-04 11:05:02 +01:00
Markus Pesch 1a3a31c5f2
refactor: temperature 2019-02-28 17:36:20 +01:00
Markus Pesch d6f41b8105
refactor: config and remote pkg 2019-02-22 13:09:05 +01:00