Kevin G
95d1b8a6d0
Corrected formating
2021-06-02 16:25:53 -04:00
Kevin G
0ecb66c99e
Fixed precipitation unit conversion logic
...
Found an error that precipitation amount was not being calculated correctly when config.js is asking for Imperial units. This has been fixed.
2021-06-02 16:15:44 -04:00
Kevin G
af52b91799
Fix to precipitation logic
...
Found a really dumb error I made that broke compatibility with OpenWeatherMap hourly forecast under certain conditions. This is now fixed.
2021-06-02 11:43:56 -04:00
rejas
1b42dc779b
Run prettier again
2021-05-29 16:11:39 +02:00
Michael Teeuw
a0ee23d84e
Merge pull request #2568 from Crazylegstoo/envcanada
2021-05-29 14:01:04 +02:00
Michael Teeuw
49d2d8c9d0
Merge pull request #2574 from daniel-windsor/forecase-ignore-today
2021-05-29 13:59:55 +02:00
Daniel Windsor
fc5a438cdc
Add flag that removes today entry in forecast
2021-05-26 21:45:24 +12:00
Kevin G
db89da3daa
Ran prettier
2021-05-21 12:11:58 -04:00
Kevin G
463ce394fe
ran prettier...
2021-05-21 10:13:39 -04:00
Kevin G
1faefebe42
Formatting correction for min/max display
2021-05-21 10:06:54 -04:00
Kevin G
c4fd4e0317
New provider - Environment Canada
...
Added a new provider that pulls weather data - current, forecast, and hourly - from Environment Canada (Canadian gov weather service). This provider supports Canadian locations only. Documentation will be provided that outlines specific behaviours of this provider and required 'weather' modules parms for Env Canada.
2021-05-13 11:12:30 -04:00
Kevin G
3c76933824
Edit Update
...
Formatting
2021-05-13 11:00:43 -04:00
Kevin G
fa83819bee
Edit update
...
Formatting
2021-05-13 10:59:45 -04:00
Kevin G
b65ae88879
Edit update
...
Formatting
2021-05-13 10:58:08 -04:00
Kevin G
96db21f9bf
Updates to support Environment Canada provider
...
Code updates to support a new weatherobject element called precipitationUnits. For the 'forecast' and 'hourly' UI, the weather module will use this new element if it is not null (i.e. a provider has pushed some value into this object element). If the element is null, then default 'units' processing will still occur. This allows a provider to have a customn unit of measure for precipitation - e.g. Env Canada will use mm for rain and cm for snow.
2021-05-13 10:56:30 -04:00
rejas
838eed2630
Use es6 notation in weatherprovider
2021-04-18 15:06:06 +02:00
rejas
2ababa521d
Use es6 notation in weather module and ukmet provider
2021-04-17 16:29:38 +02:00
veeck
10c47a6c38
Really run prettier
2021-04-12 19:33:23 +02:00
veeck
4b8043086e
Merge branch 'develop' into patch-1
2021-04-12 19:28:51 +02:00
Kristjan SCHMIDT
9c58413209
Put decimalSymbol at the end of the row like in the Current part
2021-04-12 18:34:33 +02:00
Kristjan SCHMIDT
5c2a0e5634
Fix decimalSymbol for forcast
2021-04-11 22:25:15 +02:00
Gerardo Gonzalez
331d147d50
Update ukmetofficedatahub.js
...
There is a wrong treatment to appendLocationNameToHeader.
The location should be always returned and leave the weater.js to decide if is included or not in the header.
2021-04-10 01:20:52 +01:00
Robby Griffin
cdd1853369
Fix weather module openweathermap not loading if lat and lon set without onecall. Lat and Lon take precedence over LocationID and Location.
2021-03-11 12:48:41 -05:00
Karsten Hassel
7ba76020d8
fix e2e tests after spectron update
2021-02-07 00:20:30 +01:00
buxxi
0683734d5a
Make a sane default for weatherEndpoint based on the type
2021-01-24 10:32:43 +01:00
buxxi
3c4d7a33e0
Fixing code style issue with no return before default
2021-01-23 12:07:10 +01:00
buxxi
5a421220c9
Updating readme and changelog and fixing typo in method
2021-01-23 11:40:02 +01:00
buxxi
41508931be
Moving default values regarding specific providers into the providers themselves
2021-01-23 11:21:56 +01:00
buxxi
e2cfa24686
make weatherprovider have a method for hourly fetching instead of a generic weatherData
2021-01-23 10:45:55 +01:00
buxxi
d48113f2d9
Moving openweathermap specific check for hourly into its provider and make invalid types fail nicer
2021-01-23 10:13:41 +01:00
Michael Teeuw
78190d9c7f
Merge branch 'develop' into Issue-TranslateEncodedHtml
2021-01-21 15:10:14 +01:00
Dan Forsyth
33592b3c0e
Removed |safe from translates in the default module templates
2021-01-20 14:06:00 -05:00
Dan Forsyth
ad9c2549bc
Removed |safe from translates in the default module templates
2021-01-20 13:47:32 -05:00
veeck
90f07295b1
Add extra check for currentweather
2021-01-17 15:00:34 +01:00
rejas
42cac81953
Fix tests
2021-01-15 23:12:44 +01:00
rejas
e0d43a4c1e
Add new Event CURRENTWEATHER_TYPE
...
- send it from the weather and currentweather module
- use it in the compliments module directly instead of the data
2021-01-15 21:47:14 +01:00
Ashish Tank
774b86c7dc
Code cleanup for feels like translation
2021-01-10 17:37:10 +01:00
Michael Teeuw
6f0f75cf27
Merge pull request #2388 from drewski3420/no_negative_zero
...
No negative zero
2021-01-07 12:41:30 +01:00
Michael Teeuw
7b36bb025a
Improve readabiliy.
2021-01-07 11:51:10 +01:00
Ashish Tank
4a341b381e
Added support for variables in nunjucks templates for translate filter
2020-12-31 18:58:21 +01:00
drewski3420@gmail.com
e51f6597ed
This change prevents returning '-0' (negative zero) when roundTemp is true.
2020-12-30 09:03:19 -05:00
Michael Teeuw
a8ef594dab
Stupid commit to check github actions.
2020-12-21 11:23:02 +01:00
buxxi
3f851c1fd6
Adding SMHI as a provider for the weather module
2020-12-19 11:13:46 +01:00
Michael Teeuw
e950cdaf32
Prettier fixes.
2020-12-08 16:20:48 +01:00
Michael Teeuw
f97be2f8f3
Fix prettier issue.
2020-12-08 16:07:11 +01:00
Michael Teeuw
be0c8f4f16
Prettier fix.
2020-12-08 16:01:19 +01:00
Michael Teeuw
46fd2de315
Merge branch 'develop' into develop
2020-12-08 15:53:21 +01:00
Michael Teeuw
d43679d59e
Merge pull request #2185 from Sub028/master
...
Weather config enhancement
2020-12-08 15:51:41 +01:00
Michael Teeuw
ce46fb5384
Fix Prettier Issue
2020-12-08 15:43:41 +01:00
Michael Teeuw
43b33cb6de
Fix prettier issue.
2020-12-08 15:42:01 +01:00