Commit Graph

30 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 a49546bd6d
fix: migrate to gitea 2020-06-10 21:13:05 +02:00
Markus Pesch 8f1c7b10f7
fix: implement repository pkg 2020-05-21 17:40:24 +02:00
Markus Pesch fb916c94ae
fix: add, rename and remove sensor
changes:
- Implement function to add, rename and remove sensors
2020-05-17 13:00:51 +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 c266117785
fix(pkg/storage/logfile): remove func append - dead code 2020-01-13 22:45:51 +01:00
Markus Pesch 002f3e9e25
fix(cmd/sensor): set tick duration for new sensors 2020-01-11 13:18:38 +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 b595cf1ac8
fix(pkg/cli): GetSensorIDsByMeasuredValues 2020-01-11 12:10:26 +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 0e1ca7a8e1
fix(pkg/cli): nil pointer exeption - print empty string instead throw exeption 2019-07-24 17:18:56 +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 003fe8ab9e
fix(cmd/temperature/read): use measured values instaed own type 2019-06-26 23:36:40 +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 16705d1164
feat(cli/humidity): add new subcommand to read humidity values 2019-06-23 21:33:45 +02:00
Markus Pesch 3436d6c91f
fix(pkg/rgb-led): complete rgb-led pkg 2019-06-16 20:11:10 +02:00
Markus Pesch 49d66cfcbb
feat(cmd/rgb-led): add subcommands to operate with rgb-leds 2019-06-16 13:00:50 +02:00
Markus Pesch 518855bedf
refact(pkg): adapt go dependancies 2019-06-15 15:58:41 +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 807a5b80ff
fix: cli, print temperatures 2019-03-06 20:17:28 +01:00
Markus Pesch 3d54401011
feat: list configured loggers 2019-03-04 21:19:33 +01:00
Markus Pesch f01b943024
add: internal pkgs 2019-03-04 17:50:41 +01:00
Markus Pesch a243021c70
fix: moved print functions into cli pkg 2019-03-04 17:48:01 +01:00
Markus Pesch 82e82952ed
feat: select optional sensors to read humidity or temperature 2019-03-04 10:49:41 +01:00
Markus Pesch 14ce354b32
fix: sensor typ to static sensor model 2019-02-28 19:48:48 +01:00
Markus Pesch 1a3a31c5f2
refactor: temperature 2019-02-28 17:36:20 +01:00