Commit graph

28 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
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
5f58565a53 remove error of new weather data callback 2021-08-22 13:05:03 +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
ecd51bd017 add optional cors header 2021-04-27 19:59:10 +02:00
Joel Schmid
87583d136c improvements rest api & mongodb 2021-04-26 20:14:33 +02:00
Joel Schmid
6391b39c8e improved rest api - CRUD weather sensor + db 2021-04-24 23:38:58 +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
791518f3be possible ignore case for rest-routes 2021-04-02 21:01:22 +02:00
Joel Schmid
3d261df142 fix flux query 2021-03-20 21:24:55 +01:00
Joel Schmid
877a46b9bf query data over rest api 2021-03-20 21:10:58 +01:00
Joel Schmid
15db885db8 check allow unregistered sensors in handleNewData 2021-03-20 16:11:30 +01:00
Joel Schmid
9cc656e937 add sensor registration (inmemory) 2021-03-20 15:18:12 +01:00
Joel Schmid
6eb9898778 support for multiple weathersensors 2021-03-20 11:20:27 +01:00
Joel Schmid
145da94899 add weather sensor registration 2021-03-19 23:39:27 +01:00
Joel Schmid
ea41163296 query weatherdata in influx 2021-03-16 20:43:15 +01:00
Joel Schmid
3f9734598b only allow POST-method for addDataHandler 2021-03-05 23:40:20 +01:00
Joel Schmid
dcefbdecad initial weather-api 2021-03-05 23:20:47 +01:00