Veeck
2d3940a4ff
Use metric units internally in all weatherproviders ( #2849 )
...
So finally I think this refactorin is ready to be reviewed :-)
DONE:
- [x] Removed all conversion functions for wind and temperature from
specific weatherproviders
- [x] Use internally only metric units: celsius for temperature, meters
per seconds for wind
- [x] Convert temp and wind into the configured units when displaying
data on the UI
- [x] look how beaufort calculation uses metrics, added knots as new
windunit
- [x] add more e2e tests
Checked providers:
- [x] Darksky
- [x] EnvCanada
- [x] OpenWeatherMap
- [x] SMHI provider
- [x] UK Met Office
- [x] UK Met Office DataHub
- [x] WeatherBit
- [x] WeatherFlow
- [x] WeatherGov
TODO in different tickets:
- check weatherproviders for usage of weatherEndpoint (as seen in
https://github.com/MichMich/MagicMirror-Documentation/issues/131 ) -> see
#2926
- cleanup precipations -> #2953
Co-authored-by: veeck <michael@veeck.de>
2022-10-24 19:41:34 +02:00
Veeck
fc59ed20e3
Convert moment(..., "X") to moment.unix(...) ( #2950 )
...
because I thought it was more readable and I found a little bug when
calculatin suntimes on the way....
Co-authored-by: veeck <michael@veeck.de>
2022-10-16 23:37:50 +02:00
Davide Cavalca
39c1b37726
Drop executable bit where not needed
2022-07-02 14:38:10 -07:00
Michael Teeuw
da90412cea
Merge pull request #2798 from khassel/cors
2022-01-28 11:22:43 +01:00
Kristjan SCHMIDT
a5668b1b99
Magic Mirror -> MagicMirror²
...
Consistent spelling
2022-01-26 23:09:26 +01:00
Karsten Hassel
f04dd6b6cd
introduce useCorsProxy, per default only enabled for darksky and envcanada
2022-01-26 22:44:20 +01:00
Karsten Hassel
c622db918b
working version, use corsUrl in weather providers
2022-01-25 23:42:42 +01:00
rejas
221b6325f6
Cleanup some docs in the weather modules
2021-09-04 13:50:21 +02:00
buxxi
41508931be
Moving default values regarding specific providers into the providers themselves
2021-01-23 11:21:56 +01:00
Aurélien Veillard
1460f002ab
Add new parameter "useKmh" to weather module
...
Add new parameter "useKmh" to weather module for displaying wind speed as km/h instead of m/s when windUnits is set to metric.
2020-11-08 14:01:02 +01:00
Veeck
abb5dc5739
Run prettier over ALL files once
...
No other changes done in this commit
2020-05-11 22:22:32 +02:00
Veeck
7fc7d626bc
Add Module to globals, cleanup comments
2020-05-05 14:55:15 +02:00
Veeck
e510d279a2
Cleanup some more header comments
2020-04-21 14:58:17 +02:00
Veeck
fb557b9130
Update ignored files for eslint
2020-04-20 11:15:11 +02:00
vincep5
819c4cde1c
Fix for weather module not refreshing data after exception
2019-07-11 12:49:24 -05:00
Malcolm Oakes
a619fc4fef
Allow temp and wind units to be specified separately if required.
2019-06-07 15:27:08 +01:00
vincep5
cbe4d2cd7f
weather module adjustments for rain and snow
2019-02-14 13:00:40 -06:00
fewieden
de04c12d3c
fix rain amount information for different units and providers, documentation
2018-12-30 20:46:25 +01:00
fewieden
cc274ffebe
fixed darksky metric units
2018-12-30 14:11:16 +01:00
fewieden
8a65bef004
add unit and language handling for weather provider darksky
2018-12-28 19:39:00 +01:00
fewieden
10bc326490
cleanup
2018-12-27 19:37:02 +01:00
fewieden
1920f8158e
config options and documentation
2018-12-27 18:52:35 +01:00
fewieden
0ed2ba0183
darksky forecast and darksky current weather fixes
2018-12-27 17:56:34 +01:00
Nicholas Hubbard
837e275bfd
Update fork
2017-09-29 10:11:46 -04:00
Nicholas Hubbard
7f2e643e62
Add Dark Sky Module
2017-09-21 20:06:42 -04:00