add si units close #52
This commit is contained in:
parent
94470db9a7
commit
af53cca45e
15 changed files with 204 additions and 57 deletions
|
|
@ -4,6 +4,7 @@ import STATUS from './status.mjs';
|
|||
import { json } from './utils/fetch.mjs';
|
||||
import WeatherDisplay from './weatherdisplay.mjs';
|
||||
import { registerDisplay } from './navigation.mjs';
|
||||
import settings from './settings.mjs';
|
||||
|
||||
class LocalForecast extends WeatherDisplay {
|
||||
constructor(navId, elemId) {
|
||||
|
|
@ -61,7 +62,7 @@ class LocalForecast extends WeatherDisplay {
|
|||
try {
|
||||
return await json(weatherParameters.forecast, {
|
||||
data: {
|
||||
units: 'us',
|
||||
units: settings.units.value,
|
||||
},
|
||||
retryCount: 3,
|
||||
stillWaiting: () => this.stillWaiting(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue