Commit Graph

351 Commits

Author SHA1 Message Date
CSRBot 1578756004 chore(deps): update module github.com/golang-migrate/migrate/v4 to v4.15.1
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-19 00:02:04 +01:00
CSRBot 5ed644426c chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.31.1
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-18 23:02:58 +01:00
CSRBot debe53f20a chore(deps): update module github.com/stretchr/testify to v1.7.1
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-18 22:02:01 +01:00
CSRBot 6095674d60 chore(deps): update module github.com/mattn/go-sqlite3 to v2.0.6
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-18 21:02:45 +01:00
CSRBot 484cb28e18 chore(deps): update module github.com/lib/pq to v1.10.4
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-18 20:02:23 +01:00
CSRBot def69802f4 chore(deps): update dependency docker.io/volkerraschek/gosec to v2.9.6
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-18 19:01:42 +01:00
Markus Pesch 1601b9ba6d
fix(ci): restrict on push and pull_requests
continuous-integration/drone/push Build is passing Details
2022-03-18 18:59:06 +01:00
Markus Pesch 226a5f3383
test(ci): start postgres db as drone service
continuous-integration/drone/push Build is passing Details
2022-03-18 18:37:53 +01:00
Markus Pesch ccf3f3dc5f
fix: nosec for potential file inclusion via variable
continuous-integration/drone/push Build was killed Details
2022-03-16 20:28:33 +01:00
Markus Pesch a1b87ba90e
fix: markdown capitalization error
continuous-integration/drone/push Build is failing Details
2022-03-16 20:23:26 +01:00
Markus Pesch 93d94d88e7
fix(ci): golang image version
continuous-integration/drone/push Build is failing Details
2022-03-16 20:22:19 +01:00
Markus Pesch 7153575e22
fix: upgrade golang version
continuous-integration/drone/push Build is failing Details
2022-03-16 20:21:06 +01:00
Markus Pesch d45f760b93
fix: add markdownlint config
continuous-integration/drone/push Build is failing Details
2022-03-16 20:18:24 +01:00
Markus Pesch ed06727fe3
fix(drone): use golang:1.17.6
continuous-integration/drone/push Build is failing Details
2022-02-09 22:55:04 +01:00
Markus Pesch eb56976b83
fix(drone): add unit tests for arm64
continuous-integration/drone/push Build is failing Details
2022-02-09 22:54:28 +01:00
Markus Pesch caac54fae6
fix(renovate): init
continuous-integration/drone/push Build is passing Details
2022-02-09 22:52:14 +01:00
Markus Pesch a62bf175cb
fix: Makefile 2021-05-26 19:57:47 +02:00
Markus Pesch ffbc8a793c
fix: golangci-lint and gosec warnings 2021-05-26 19:47:15 +02:00
Markus Pesch f7bb283784
fix: rename completion file 2021-05-26 17:41:03 +02:00
Markus Pesch f0d4c613ba
fix: remove paring semver 2021-04-10 17:02:43 +02:00
Markus Pesch 4f2c03b0d5
fix: Makefile install target 2021-04-10 16:52:29 +02:00
Markus Pesch 12f05ec68e
fix: Makefile targets 2021-04-10 16:06:47 +02:00
Markus Pesch 93bbc9d6b9
feat: add sub-command to generate completions 2021-04-10 10:30:37 +02:00
Markus Pesch 6e6a1cbbb6
fix: adapt go proxy settings 2021-04-09 17:11:51 +02:00
Markus Pesch 9207833a71
fix: add missing error handling 2021-04-09 16:55:35 +02:00
Markus Pesch 749f2697c7
feat: import from sqlite or postgres 2021-04-09 16:52:25 +02:00
Markus Pesch 8c2090a316
fix: rename ddl assets 2021-04-06 19:40:56 +02:00
Markus Pesch a48ae72b4b
fix: postgres embed - use direct sql statements instead of asset paths 2021-04-06 19:19:29 +02:00
Markus Pesch b7e7e55916
fix: sqlite3 embed - use direct sql statements instead of asset paths 2021-04-06 19:19:25 +02:00
Markus Pesch 53d4a78adc
refac: sort sqlite and postgres funcs 2021-03-21 22:31:00 +01:00
Markus Pesch fb23874422
fix: remove deprecated repository code 2021-03-21 22:22:40 +01:00
Markus Pesch 344e6641d8
fix: remove integration step 2021-03-21 21:47:58 +01: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 59db7cfc85
fix: rename postgresql constraints 2021-01-30 16:51:21 +01:00
Markus Pesch 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
Markus Pesch 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
Markus Pesch 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
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 c279d288b4
fix: increase jobs to number of cpus 2020-08-25 19:31:30 +02:00
Markus Pesch ef9266b010
fix: systemd service unit 2020-08-19 19:15:06 +02:00
Markus Pesch 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
Markus Pesch 8c1bd57ad5
fix: gnu-cc, missing humidity table, restrict repository select 2020-06-27 21:12:00 +02:00
Markus Pesch 92a776f6ce
fix: missing package import 2020-06-27 18:14:49 +02:00