-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaultConfig.ts.example
149 lines (147 loc) · 3.04 KB
/
defaultConfig.ts.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import { ConfigType } from '@config';
const defaultConfig: ConfigType = {
dynamicConfig: {
enabled: true,
apiUrl: 'url',
interval: 1,
},
location: {
default: {
name: 'Helsinki',
area: 'Suomi',
lat: 60.16952,
lon: 24.93545,
id: 658225,
country: 'FI',
timezone: 'Europe/Helsinki',
},
apiUrl: 'url',
keyword: 'string',
maxRecent: 5,
maxFavorite: 10,
},
map: {
updateInterval: 5,
sources: {
sourceKey: 'url',
sourceKey2: 'url',
},
layers: [
{
id: 1,
name: { fi: 'name' },
type: 'WMS',
sources: [
{
source: 'sourceKey',
layer: 'layerName',
type: 'observation',
},
],
times: {
timeStep: 15,
observation: 8,
},
tileFormat: 'webp',
tileSize: {
android: 256,
ios: 1024,
},
},
],
},
weather: {
apiUrl: 'url',
forecast: {
updateInterval: 5,
timePeriod: 'data', // accepts also: 5, '+5d', '+120h'
forecastLengthTitle: 10, // optional, defaults to 10
data: [{ producer: 'default', parameters: ['temperature'] }],
defaultParameters: ['temperature'],
excludeDayLength: false,
infoBottomSheet: {
showAllSymbols: false,
}
},
observation: {
enabled: true,
updateInterval: 5,
numberOfStations: 10,
producer: { default: 'observation_producer' },
dailyProducers: ['observation_producer'],
timePeriod: 24,
parameters: ['temperature'],
dailyParameters: ['minimumTemperature', 'maximumTemperature]
},
},
warnings: {
enabled: true,
updateInterval: 5,
webViewUrl: 'url',
apiUrl: {
FI: 'url', // [countryCode]: 'url'
},
capViewSettings: {
mapHeight: 500,
numberOfDays: 10,
datasources: [
{
id: 1,
url: 'url',
urlIcons: '',
},
],
initialRegion: {
latitude: 17.99702,
longitude: -77.25,
latitudeDelta: 1,
longitudeDelta: 2.5,
},
mapZoomEnabled: true,
mapScrollEnabled: false,
},
},
settings: {
languages: ['fi', 'en', 'sv'],
units: {
temperature: 'C',
precipitation: 'mm',
wind: 'm/s',
pressure: 'hPa',
},
showUnitSettings: true,
themes: {
light: true,
dark: true,
},
clockType: 24,
},
announcements: {
enabled: true,
updateInterval: 5,
api: {
fi: 'url',
},
},
socialMediaLinks: [
{
name: 'SocialMedia1',
icon: 'social-media',
appUrl: 'socialMedia://user?username=example',
url: 'https://www.socialmedia.example',
},
],
onboardingWizard: {
enabled: true,
},
feedback: {
enabled: true,
email: '[email protected]',
subject: {
fi: 'Ilmatieteen laitoksen sää palaute',
sv: 'FMI väder respons',
en: 'FMI Weather feedback',
},
},
};
export default defaultConfig;