Commit graph

70 commits

Author SHA1 Message Date
Joel Schmid
1512c29881 possibility for weather-query of multiple sensors + fix wrong flux-query 2021-11-26 18:03:51 +01:00
Joel Schmid
5c33c5ff14 modified config+authorization 2021-11-26 16:00:02 +01:00
Joel Schmid
261cfb96c4 weatherSourceBase as composition to mqtt-source and rest-api 2021-11-26 13:46:57 +01:00
Joel Schmid
f623f76c1a improved sensor-handling 2021-11-26 13:11:11 +01:00
Joel Schmid
a230cfd30e set current timestamp if add weatherdata-request is without timestamp 2021-11-26 11:51:22 +01:00
Joel Schmid
ff2bbb543e decode userId from jwt token 2021-08-22 19:52:34 +02:00
Joel Schmid
7543dae153 add userId to sensor 2021-08-22 17:09:41 +02:00
Joel Schmid
fafcf180e4 upgrade dependencies 2021-08-22 14:38:45 +02:00
Joel Schmid
5539156092 removed self-token-validation -> validate token in another service 2021-08-22 14:35:26 +02:00
Joel Schmid
2611b8c579 exist sensor check in update sensor 2021-08-22 13:42:48 +02:00
Joel Schmid
f3ec170102 add request-collection for thunder client (VS-Code Extension) 2021-08-22 13:42:16 +02:00
Joel Schmid
5f58565a53 remove error of new weather data callback 2021-08-22 13:05:03 +02:00
Joel Schmid
36462b4748
Update docker-ci.yml 2021-06-05 19:48:04 +02:00
Joel Schmid
ed1be312f4
Create docker-ci.yml 2021-06-05 19:38:34 +02:00
Joel Schmid
fb4805ba49
add git workflow badge 2021-06-05 19:18:52 +02:00
Joel Schmid
1938c4afe4
Create go.yml 2021-06-05 19:14:10 +02:00
Joel Schmid
4e3fe0ce0b fix jwt token authorization 2021-06-05 19:06:45 +02:00
Joel Schmid
858421b9d8 jwt token authorization 2021-05-20 19:01:40 +02:00
Joel Schmid
b8e8ce035c query max amount of datapoints 2021-05-07 22:25:44 +02:00
Joel Schmid
2466111488 fix time format (iso) for json serialization 2021-05-03 20:44:26 +02:00
Joel Schmid
084af78841 imporved mqtt message handling 2021-04-30 19:33:58 +02:00
Joel Schmid
059340a058 optimized influx query builder and execution 2021-04-29 18:08:38 +02:00
Joel Schmid
169fd062ba fix mongodb no available sensors 2021-04-27 21:12:20 +02:00
Joel Schmid
5d60e0f53e fix random weather 2021-04-27 20:16:57 +02:00
Joel Schmid
39c44cec1e Merge branch 'main' of https://github.com/swablab/weather-api into main 2021-04-27 19:59:27 +02:00
Joel Schmid
ecd51bd017 add optional cors header 2021-04-27 19:59:10 +02:00
Joel Schmid
f94b6a1ee1
license 2021-04-26 20:18:55 +02:00
Joel Schmid
87583d136c improvements rest api & mongodb 2021-04-26 20:14:33 +02:00
Joel Schmid
de11211de1 optimized mongodb 2021-04-25 00:31:27 +02:00
Joel Schmid
442f205a2b update & delete sensor inmemory 2021-04-24 23:59:10 +02:00
Joel Schmid
6391b39c8e improved rest api - CRUD weather sensor + db 2021-04-24 23:38:58 +02:00
Joel Schmid
e483794ce1 query unknown fieldtypes in db 2021-04-09 23:29:02 +02:00
Joel Schmid
5aed4560e9 refactoring 2021-04-05 11:39:55 +02:00
Joel Schmid
3983a91475 rest api uses map[string]interface for adding weather data 2021-04-05 10:14:29 +02:00
Joel Schmid
641c05afc6 refactoring & generic weatherdata 2021-04-03 23:32:37 +02:00
Joel Schmid
7fb0ebff20 optimize Dockerfile using scratch image 2021-04-03 13:29:39 +02:00
Joel Schmid
346ad3b990 update readme 2021-04-03 12:21:08 +02:00
Joel Schmid
987dcf1664 Update Readme 2021-04-03 00:05:56 +02:00
Joel Schmid
db762bb95e
Merge pull request #1 from swablab/add-license-1
Create LICENSE
2021-04-02 23:39:32 +02:00
Joel Schmid
847fe89832
Create LICENSE 2021-04-02 23:38:51 +02:00
Joel Schmid
ff28e70c31 add more logging 2021-04-02 22:46:24 +02:00
Joel Schmid
791518f3be possible ignore case for rest-routes 2021-04-02 21:01:22 +02:00
Joel Schmid
26204b4ed7 improved logs & errorhandling 2021-04-02 20:18:49 +02:00
Joel Schmid
69f8c4e9dc refactoring of config 2021-04-02 20:00:47 +02:00
Joel Schmid
5bb48d6ddc add mongodb authentication 2021-04-02 12:41:22 +02:00
Joel Schmid
73a57482c8 mongodb support for sensor registry 2021-04-01 23:48:54 +02:00
Joel Schmid
f4b5e519fa fix typo 2021-04-01 22:31:48 +02:00
Joel Schmid
c1412dffb2 mqtt authentication 2021-03-31 20:57:30 +02:00
Joel Schmid
a53d1eabe5 optimize regex 2021-03-20 22:32:17 +01:00
Joel Schmid
ce22efcb96 create flux query 2021-03-20 21:31:20 +01:00