Commit Graph
100 Commits
Author SHA1 Message Date
volker.raschek ec7cad4555 feat: add pkg to start postgres container 2020-06-18 21:37:09 +02:00
volker.raschek fa45125b49 fix: dockerutils - add env to container 2020-06-14 22:08:07 +02:00
volker.raschek 83fae430b9 fix: disable unit tests in ci 2020-06-10 21:26:22 +02:00
volker.raschek 0384bbd574 fix: move sql driver import into main.go 2020-06-10 21:25:52 +02:00
volker.raschek 7e018280fb fix: replace travis with drone 2020-06-10 21:19:27 +02:00
volker.raschek a49546bd6d fix: migrate to gitea 2020-06-10 21:13:05 +02:00
volker.raschek 940e04371c feat: dockerutils lib to start container images 2020-06-10 09:42:40 +02:00
volker.raschek 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
volker.raschek a1c28a0a2e fix: ci steps, disable arm5 and arm7 architectures
changes:
- Remove obsolete architectures and environment variables from the
  Makefile. Remove rpm-build steps. This will be exported in an own
  repository.
- Adapt the travis file. Remove obsolete architecture steps.
2020-06-01 17:57:27 +02:00
volker.raschek 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
volker.raschek 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
volker.raschek 11717679bc fix: daemon load sensors from repo instead config 2020-05-22 07:45:14 +02:00
volker.raschek d0e238e64a fix: use repository instead db package 2020-05-21 20:07:32 +02:00
volker.raschek 8f1c7b10f7 fix: implement repository pkg 2020-05-21 17:40:24 +02:00
volker.raschek fb916c94ae fix: add, rename and remove sensor
changes:
- Implement function to add, rename and remove sensors
2020-05-17 13:00:51 +02:00
volker.raschek 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
volker.raschek 84d052184e fix(Makefile): container image registry login 2020-01-21 18:26:22 +01:00
volker.raschek 0f9b62fb81 fix(ci): list build steps seperate 2020-01-20 23:08:17 +01:00
volker.raschek c679b29051 fix(ci): add codecov 2020-01-20 21:45:58 +01:00
volker.raschek 17dda6a987 fix(README): supported backends, sensors and distribution specific repos 2020-01-19 14:48:18 +01:00
volker.raschek cc317e0b6c fix(Makefile): use full container image names 2020-01-19 14:19:14 +01:00
volker.raschek 8cc232adc1 fix:_renamed import path to volker-raschek 2020-01-19 13:30:47 +01:00
volker.raschek 671a3eb748 fix(pkg/server): logging and save values into postgres 2020-01-18 14:55:43 +01:00
volker.raschek 6f45c2957a test(postgres): add missing tests 2020-01-18 14:42:15 +01:00
volker.raschek 546139492b fix(Makefile): step to generate html coverage site 2020-01-18 14:41:17 +01:00
volker.raschek 3581424bd2 fix(pkg/storage): write creation date in storage pkg 2020-01-18 14:40:47 +01:00
volker.raschek c266117785 fix(pkg/storage/logfile): remove func append - dead code 2020-01-13 22:45:51 +01:00
volker.raschek 0765bd29d1 refac(cmd): mergeing, ordering and outsourcing cmd subcommands 2020-01-13 22:32:00 +01:00
volker.raschek 0261203395 fix(cmd): remove obsolete semver 2020-01-11 17:24:34 +01:00
volker.raschek 12246aae0c fix(pkg/daemon): write values into logfile 2020-01-11 17:24:18 +01:00
volker.raschek 002f3e9e25 fix(cmd/sensor): set tick duration for new sensors 2020-01-11 13:18:38 +01:00
volker.raschek 40857249c4 test(pkg/cli): Implementation of test to stabilize the code 2020-01-11 13:03:58 +01:00
volker.raschek b595cf1ac8 fix(pkg/cli): GetSensorIDsByMeasuredValues 2020-01-11 12:10:26 +01:00
volker.raschek f1a4ade402 fix(Makefile): remove deprecated test-update step 2020-01-10 22:09:24 +01:00
volker.raschek 2cd2188dcb refac(pkg/types): remove deprecated prefix name of struct attributes 2020-01-10 22:03:49 +01:00
volker.raschek 95fb1f6745 fix(pkg/sensor): reduce interface functions for better error handling 2020-01-10 19:42:19 +01:00
volker.raschek ca4269fff8 fix(Makefile): generate shell completions on remote system 2020-01-09 21:59:18 +01:00
volker.raschek a507bef108 fix(Makefile, Dockerfile): optimization of the container image building process 2020-01-09 21:59:18 +01:00
volker.raschek f0bba4a202 fix(Makefile): change semver pattern 2020-01-08 21:54:39 +01:00
volker.raschek 111dc0e4f1 feat(cmd/completion): generate shell completion files 2020-01-08 21:54:15 +01:00
volker.raschek 5f48d29dae fix(Makefile): remove obsolete steps
changes:
- Replace substr func with variable patterns.
- Remove deploy and compression steps
2020-01-08 18:08:55 +01:00
volker.raschek 39b3a495ac fix: remove root check
Changes:
- The owner of the flucky binary must be root. To grant access to the
  binary and third party libs, for example wire1, gpio or i2c, the
  binary must have a sticky bit
2019-12-08 15:07:24 +01:00
volker.raschek b125bf432c fix(cli/db): remove obsolete db subcommand 2019-12-08 12:49:21 +01:00
volker.raschek 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
volker.raschek afe55b3d33 fix(pkg/daemon): compression and rounding 2019-12-08 12:49:21 +01:00
volker.raschek 25dd99cd3d test(pkg/storage): add test for compression and rounding 2019-12-08 12:49:21 +01:00
volker.raschek 86f598bc7d fix(test): goldenFiles 2019-12-08 12:49:20 +01:00
volker.raschek a7722e028a fix(pkg/storage/logfile): create logfile if not exists 2019-12-08 12:49:20 +01:00
volker.raschek ea83d43cd6 fix(pkg/logger): exclude logger library into an own repository 2019-12-08 12:49:20 +01:00
volker.raschek bacddcfbf9 fix(Makefile, travis): define correct make steps 2019-12-08 12:49:20 +01:00
volker.raschek 4e531b8734 fix(README): make steps 2019-12-08 12:49:20 +01:00
volker.raschek 4ed014c0df fix(README): docker pull shield 2019-12-08 12:49:20 +01:00
volker.raschek 036ff28175 doc(Makefile): describe some environment variables 2019-12-08 12:49:20 +01:00
volker.raschek 04bc3baffe fix(pkg/daemon): save measured values into postgres database if defined 2019-12-08 12:49:19 +01:00
volker.raschek 6223f4e79b fix(pkg/db): create or upgrade postgres schema based on semver 2019-12-08 12:49:14 +01:00
volker.raschek f19cc3249a fix(README): add godoc reference 2019-08-27 21:43:10 +02:00
volker.raschek 837f6c1cb2 fix(Makefile): container steps 2019-08-26 16:08:52 +02:00
volker.raschek 6835d4793b fix(travis): build multiple architectures 2019-08-26 14:41:06 +02:00
volker.raschek dbdd541ffb fix(travis): disable tests 2019-08-25 21:01:11 +02:00
volker.raschek 218d8149ca fix(travis): renamed stages 2019-08-25 21:00:17 +02:00
volker.raschek 57efa80acf fix(docker-compose): set container name for postgres instance 2019-08-25 20:59:45 +02:00
volker.raschek 2f260e8aed fix(README): add go report 2019-08-25 20:59:12 +02:00
volker.raschek d19e26d971 fix(pkg/db/postgres): error handling 2019-08-25 20:58:45 +02:00
volker.raschek 60657b737d fix(travis): add test and pre-deploy stage 2019-08-25 17:05:52 +02:00
volker.raschek 9b52e4c61d fix(travis): deploy rpm package release 2019-08-25 17:01:52 +02:00
volker.raschek 9ce0b61d1b fix(LICENSE): publish flucky under the apache 2.0 license 2019-08-25 16:32:20 +02:00
volker.raschek 1ed700edbb fix(README): adapt the README file to the current flucky source code 2019-08-25 16:31:52 +02:00
volker.raschek 60ee044b88 feat(pkg/db): postgres database 2019-08-25 13:16:21 +02:00
volker.raschek c0aa155f36 fix(cmd): use pointer instead a copied object of the configFile environment 2019-08-19 12:24:08 +02:00
volker.raschek 0e1ca7a8e1 fix(pkg/cli): nil pointer exeption - print empty string instead throw exeption 2019-07-24 17:18:56 +02:00
volker.raschek 0dd156f480 fix(pkg/logfile): description of functions 2019-07-14 19:06:26 +02:00
volker.raschek 31accbd742 test(pkg/logfile): remove old test files 2019-07-14 19:05:44 +02:00
volker.raschek 3feee7764b fix(pkg/logfile): support xml logfiles 2019-07-03 18:46:19 +02:00
volker.raschek 440d543a83 fix(cmd/humidity,pressure,temperature): short informations 2019-07-02 22:59:25 +02:00
volker.raschek 9feee62c35 feat(cmd/pressure): add new subcommand to operate with aire pressure 2019-07-02 22:47:28 +02:00
volker.raschek 93c08d8147 fix(pkg/config): add functions to get pressure sensors 2019-07-02 22:47:28 +02:00
volker.raschek 825511c3b5 fix(pkg/types): use measured values as struct instead interface 2019-07-02 22:47:28 +02:00
volker.raschek d703d33e08 fix(cmd/daemon): default settings 2019-07-02 22:47:28 +02:00
volker.raschek 397f870435 fix(pkg/logfile): support write and read air pressure values from json logfile 2019-07-02 22:47:28 +02:00
volker.raschek 043fc395d9 fix(pkg/logfile,sensor): implement pressure as measured value 2019-07-02 22:47:28 +02:00
volker.raschek 289aaf2093 feat(pkg/sensor): new support for sensor bme280 2019-07-02 22:47:28 +02:00
volker.raschek 96eb1f4036 feat(cmd/compression): new subcommand to compress logfiles 2019-07-02 22:47:28 +02:00
volker.raschek 572ad7fdde fix(cmd/root): use csv logfile as default 2019-06-28 13:15:11 +02:00
volker.raschek 22815231d9 feat(cmd/convert): new subcommand to convert logfiles 2019-06-28 13:14:39 +02:00
volker.raschek 4fe4abb0e9 fix(pkg/logfile): read from csv file styled by measured values 2019-06-28 13:04:04 +02:00
volker.raschek 41653afebf fix(pkg/rgled): turn output on 2019-06-28 09:59:11 +02:00
volker.raschek 180a284780 fix(cmd): turn on the led light when a sensor is selected 2019-06-27 21:47:31 +02:00
volker.raschek 45763d7c9d fix(pkg/daemon): use all enables sensors instead of only temperature sensors 2019-06-27 20:39:51 +02:00
volker.raschek 6d3781d950 fix(cmd/temperatures,humidity): enable logs if flag is true and optimization of variable names 2019-06-27 20:39:51 +02:00
volker.raschek 6469c0dd6c fix(cmd/humidity): enabled humidity read command - use measured value interface instead humidity struct 2019-06-27 20:39:51 +02:00
volker.raschek 4680841684 fix(pkg/logfile): compression for measured values 2019-06-27 20:39:51 +02:00
volker.raschek 4d7408ac81 fix(pkg/internal): rm collect humidities 2019-06-27 18:43:59 +02:00
volker.raschek 4975ce21fa fix(pkg/config): get temperature or humidity sensors 2019-06-27 18:43:16 +02:00
volker.raschek 8005248262 fix(pkg/sensors): Use channel of data type []measuredValues instead of measuredValues 2019-06-27 09:31:40 +02:00
volker.raschek 1d8c86df67 fix(pkg/sensor): read values 2019-06-27 09:17:34 +02:00
volker.raschek 3dae3e38be fix(pkg/logfile): use one instead of several logfiles for all measured values 2019-06-26 23:37:17 +02:00
volker.raschek 072a902376 fix(pkg/logfile): read and write logfiles from json with measured value interface 2019-06-26 23:37:17 +02:00
volker.raschek 003fe8ab9e fix(cmd/temperature/read): use measured values instaed own type 2019-06-26 23:36:40 +02:00
volker.raschek 08c2cbbf57 fix(pkg/daemon): use measuredValue interface instead of different structs 2019-06-25 22:22:34 +02:00
volker.raschek 30603e348c fix(cmd/temperature/read): turn on rgbleds while execute subcommand 2019-06-24 23:08:23 +02:00