Commit Graph

223 Commits

Author SHA1 Message Date
b7e7e55916
fix: sqlite3 embed - use direct sql statements instead of asset paths 2021-04-06 19:19:25 +02:00
53d4a78adc
refac: sort sqlite and postgres funcs 2021-03-21 22:31:00 +01:00
fb23874422
fix: remove deprecated repository code 2021-03-21 22:22:40 +01:00
344e6641d8
fix: remove integration step 2021-03-21 21:47:58 +01:00
7a88aaac0c
refac: use embed instead of go-bindata, secure closing of transactions 2021-03-21 21:43:53 +01:00
59db7cfc85
fix: rename postgresql constraints 2021-01-30 16:51:21 +01:00
366dccde12
fix: use go-migrate pkg to init or update db schema
Instead to implement own logic how the database scheme should be updated
or migrated to a newer or older version flucky use now instead the
go-migrate package.
2021-01-30 15:44:21 +01:00
23695b4513
fix: update rows when already exist during an import
When rows in the table devices, sensors, humidities, pressures and
temperatures already exist, they will only be updated.
2020-12-14 20:54:20 +01:00
522fe2746a
fix: add or update devices, sensors and measured values
Add additional functions to the repository to add or update devices,
sensors or measured values. Furthermore the test has been adapt to the
new functions.
2020-12-14 20:54:20 +01:00
Markus Pesch
d0cfdd7102
fix: exclude dockerutils and testutils package 2020-11-07 23:03:11 +01:00
Markus Pesch
675af77965
feat: import from sqlite or postgresql 2020-11-07 22:59:48 +01:00
Markus Pesch
592e9b7f5c
fix: upgrade dependencies 2020-11-06 23:08:54 +01:00
Markus Pesch
a2e66ce08b
fix: sqlite and postgres, close rows and pass nothing instead nil 2020-11-06 23:07:10 +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
0fc4aa7c28
fix: postgres columns with timezone
Add timezone for the columns creation_date and update_date, otherwise
it's difficult to compare the times correctly in the unit test.

Furthermore the default value of the creation_date will now be defined
by the postgres implementation of the database interface.
2020-10-07 23:38:27 +02:00
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
7cbd80c726
fix: remove obsolete attributes from config.json
changes:
- removed unused attributes from config.json
2020-09-07 19:12:30 +02:00
c279d288b4
fix: increase jobs to number of cpus 2020-08-25 19:31:30 +02:00
ef9266b010
fix: systemd service unit 2020-08-19 19:15:06 +02:00
6c03bc078b
fix: default directory for the sqlite db
The default directory of the sqlite db has now been changed depending of
the user who executes flucky.

The place where the sqlite db will be stored is unchanged for the root
user, but for all other users the sqlite db will now be created to
~/.cache/flucky
2020-07-31 00:02:29 +02:00
8c1bd57ad5
fix: gnu-cc, missing humidity table, restrict repository select 2020-06-27 21:12:00 +02:00
92a776f6ce
fix: missing package import 2020-06-27 18:14:49 +02:00
9ee9742aff
fix: use own dht pkg 2020-06-21 18:42:33 +02:00
ec7cad4555
feat: add pkg to start postgres container 2020-06-18 21:37:09 +02:00
fa45125b49
fix: dockerutils - add env to container 2020-06-14 22:08:07 +02:00
83fae430b9
fix: disable unit tests in ci 2020-06-10 21:26:22 +02:00
0384bbd574
fix: move sql driver import into main.go 2020-06-10 21:25:52 +02:00
7e018280fb
fix: replace travis with drone 2020-06-10 21:19:27 +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
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
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
84d052184e
fix(Makefile): container image registry login 2020-01-21 18:26:22 +01:00
0f9b62fb81
fix(ci): list build steps seperate 2020-01-20 23:08:17 +01:00
c679b29051
fix(ci): add codecov 2020-01-20 21:45:58 +01:00
17dda6a987
fix(README): supported backends, sensors and distribution specific repos 2020-01-19 14:48:18 +01:00
cc317e0b6c
fix(Makefile): use full container image names 2020-01-19 14:19:14 +01: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
546139492b
fix(Makefile): step to generate html coverage site 2020-01-18 14:41:17 +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