mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-07 04:53:12 +08:00
Added humidity option to weather widget
This commit is contained in:
@@ -29,4 +29,6 @@ export const configTemplate: Config = {
|
||||
'January;February;March;April;May;June;July;August;September;October;November;December',
|
||||
showTime: false,
|
||||
defaultTheme: 'tron',
|
||||
isKilometer: true,
|
||||
weatherData: 'cloud',
|
||||
};
|
||||
|
||||
@@ -29,6 +29,7 @@ export const weatherSettingsTemplate: WeatherForm = {
|
||||
lat: 0,
|
||||
long: 0,
|
||||
isCelsius: true,
|
||||
weatherData: 'cloud',
|
||||
};
|
||||
|
||||
export const searchSettingsTemplate: SearchForm = {
|
||||
|
||||
17
client/src/utility/templateObjects/weatherTemplate.ts
Normal file
17
client/src/utility/templateObjects/weatherTemplate.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Weather } from '../../interfaces';
|
||||
|
||||
export const weatherTemplate: Weather = {
|
||||
externalLastUpdate: '',
|
||||
tempC: 0,
|
||||
tempF: 0,
|
||||
isDay: 1,
|
||||
cloud: 0,
|
||||
conditionText: '',
|
||||
conditionCode: 1000,
|
||||
id: -1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
humidity: 0,
|
||||
windK: 0,
|
||||
windM: 0,
|
||||
};
|
||||
Reference in New Issue
Block a user