Commit Graph
8 Commits
Author SHA1 Message Date
Anders AlfredssonandGitHub 29fb142e6a [smhi] Prepare for easier translation (#13305)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2022-08-22 10:47:44 +02:00
Anders AlfredssonandGitHub 1e57450e3f [Smhi] Ensure trailing zeroes are removed before updating channels (#11353)
* Ensure unnecessary trailing zeroes are removed, to avoid issues with transformations.

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>

* Change to use setScale()

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-10-16 13:38:51 +02:00
Anders AlfredssonandGitHub c084ec3a5b Fix IndexOutOfBoundsException in aggregator function (#11113)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-08-22 11:53:11 +02:00
Anders AlfredssonandGitHub c9933454db [smhi] Fix exception in aggregation function when daily forecast is empty (#10851)
* Fix exception in aggregation function when daily forecast is empty

Also catch any Exception to prevent thread from crashing

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>

* Refactor to improve robustness of calculations

Improve tests to cover different forecast scenarios

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-06-15 23:56:50 +02:00
Anders AlfredssonandGitHub d454fe3331 [smhi] Catch exception that could cause binding to stop updating channels (#10794)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-06-05 19:39:21 +02:00
Anders AlfredssonandGitHub 612ceb3855 Add channel IDs to documentation (#10793)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-06-05 11:31:46 +02:00
Anders AlfredssonandGitHub 393ae49dc4 [smhi] Add aggregated channels for daily forecast. (#9387)
* Add aggregated channels for daily forecast.

Also updates to use Optionals instead of @Nullables, and add unit tests
* Revert unsing explicit unit definition

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2020-12-22 13:50:27 -08:00
paciveandGitHub 33db6b428f Remove paperui sorting workaround (#8517)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2020-09-21 18:53:45 +02:00