Commit Graph

45 Commits

Author SHA1 Message Date
CSRBot 54e013595e chore(deps): update module github.com/stretchr/testify to v1.8.0
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-06-29 13:41:35 +02:00
CSRBot 8e95bc1a8a chore(deps): update module github.com/spf13/cobra to v1.5.0
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-06-26 12:21:36 +02:00
CSRBot dae0335e34 chore(deps): update module github.com/stretchr/testify to v1.7.5
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-06-26 10:57:39 +02:00
CSRBot aa8ec4c1b4 chore(deps): update module github.com/golang-migrate/migrate/v4 to v4.15.2
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-04-27 12:02:37 +02:00
CSRBot 1fcb05a678 chore(deps): update module github.com/lib/pq to v1.10.5
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-04-08 01:03:23 +02:00
CSRBot 183c64be03 chore(deps): update github.com/d2r2/go-logger commit hash to 60e9d12
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-03-19 10:02:08 +01:00
CSRBot a15d781e15 chore(deps): update github.com/johejo/golang-migrate-extra commit hash to c17dd75
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-03-19 02:01:31 +01:00
CSRBot 96618051fe chore(deps): update module github.com/spf13/cobra to v1.4.0
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-03-19 01:03:28 +01:00
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 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
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 7153575e22
fix: upgrade golang version
continuous-integration/drone/push Build is failing Details
2022-03-16 20:21:06 +01:00
Markus Pesch ffbc8a793c
fix: golangci-lint and gosec warnings 2021-05-26 19:47:15 +02:00
Markus Pesch f0d4c613ba
fix: remove paring semver 2021-04-10 17:02:43 +02: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 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 d0cfdd7102
fix: exclude dockerutils and testutils package 2020-11-07 23:03:11 +01:00
Markus Pesch 592e9b7f5c
fix: upgrade dependencies 2020-11-06 23:08:54 +01: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 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 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
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 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 25dd99cd3d
test(pkg/storage): add test for compression and rounding 2019-12-08 12:49:21 +01:00
Markus Pesch ea83d43cd6
fix(pkg/logger): exclude logger library into an own repository 2019-12-08 12:49:20 +01:00
Markus Pesch 04bc3baffe
fix(pkg/daemon): save measured values into postgres database if defined 2019-12-08 12:49:19 +01:00
Markus Pesch 6223f4e79b
fix(pkg/db): create or upgrade postgres schema based on semver 2019-12-08 12:49:14 +01:00
Markus Pesch 60ee044b88
feat(pkg/db): postgres database 2019-08-25 13:16:21 +02:00
Markus Pesch 289aaf2093
feat(pkg/sensor): new support for sensor bme280 2019-07-02 22:47:28 +02:00
Markus Pesch 87475225bc
fix(test/logfile): valid temperatures 2019-06-21 13:45:58 +02:00
Markus Pesch f6db6f9ce3
feat(pkg/logfile): support csv and xml logfile 2019-06-21 13:45:58 +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 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 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 5c80c014bf
fix: renamed project 2019-04-18 16:59:55 +02:00
Markus Pesch 94dcfee1ec
feat: implementation of dht11 sensor 2019-03-04 10:50:20 +01:00
Markus Pesch 91d20b6e95
fix: replaced vendor folder with go mod 2019-02-28 22:34:47 +01:00