frewe-client.cfg 9.63 KB
Newer Older
aloz77's avatar
aloz77 committed
1
2
#######################################################################
# Freetz Weather Client (frewe-client) for FRITZ!Box Configuration File 
3
# Alexey Ozerov (c) 2012 - ver. 1.17
aloz77's avatar
aloz77 committed
4
5
6
7
8
9
10
11
12
13
14
15
# All settings are optional, all lines beginning with # are comments
#######################################################################

#######################################################################
# Weather station related settings
#######################################################################

# Weather station type
# Set to WH3080 for WH3080 and WH3081, keep WH1080 otherwise
StationType		WH1080

# Weather station altitude in meters for relative pressure calculation
16
Altitude		450
aloz77's avatar
aloz77 committed
17
18
19
20
21
22
23
24
25
26
27

# Set RunInterval in seconds in order to run frewe-client continuously
# Less then 48 seconds is not reasonable as the last reading updated every 48 secs
RunInterval		300

#######################################################################
# frewe-server settings (OPTIONAL)
# Remove the heading # to enable and set your settings
#######################################################################

# Full URL of frewe-server.php
28
FreweServer_URL		http://192.168.1.11/users/alge/frewe-7390-1/frewe-server.php
aloz77's avatar
aloz77 committed
29
30

# Server key as defined in frewe-server.php
31
FreweServer_Key		qwe234c1ercqertgrtfwdqexy
aloz77's avatar
aloz77 committed
32
33

# Send weather data to frewe-server, set On to enable
34
FreweServer_SendData	On
aloz77's avatar
aloz77 committed
35
36

# Resend missing weather data, set On to enable
37
FreweServer_Resend	On
aloz77's avatar
aloz77 committed
38
39

# Send all kind of errors to specified email address (requires frewe-server to be configured)
40
Error_Email		root@algepop.net
aloz77's avatar
aloz77 committed
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272

#######################################################################
# Configuration of known weather services
# Register for the weather service in order to use it
# Set WSWIN Direkt Link in Datenuebernahme in Awekas Configuration
# Remove the heading # to enable service and set your settings
#######################################################################

#WUnderground_StationID	your_station_ID
#WUnderground_Password	your_password

#PWSWeather_StationID	your_station_ID
#PWSWeather_Password	your_password

#Awekas_Username	your_username
#Awekas_Password	your_password

#METOffice_SiteID	your_site_ID
#METOffice_SiteAuthKey	your_auth_key

#Wetter.com_Username	your_username
#Wetter.com_Password	your_password

#Wedaal_Username	your_username
#Wedaal_StationPass	your_station_pass

#Sauerlandwetter_StationID	your_station_kennung
#Sauerlandwetter_Password	your_station_password

#WetternetzSachsen_UserID	your_user_id
#WetternetzSachsen_Password	your_password

#######################################################################
# Sensor calibration (ADVANCED)
# value = sensor * factor + offset
# Offsets are in C, hPa, km/h, mm, lux
#######################################################################

TempInFactor 		1.0
TempInOffset		0.0
TempOutFactor		1.0
TempOutOffset		0.0
HumidityInFactor	1.0
HumidityInOffset	0.0
HumidityOutFactor	1.0
HumidityOutOffset	0.0
PressAbsFactor		1.0
PressAbsOffset		0.0
WindspeedFactor		1.0
WindspeedOffset		0.0
WindgustFactor		1.0
WindgustOffset		0.0
WinddirOffset		0.0
RainFactor		1.0
RainOffset		0.0
IlluminationFactor	1.0
IlluminationOffset	0.0
UVFactor		1.0
UVOffset		0.0

#######################################################################
# Additional URLs of services to submit the weather data to (ADVANCED)
# Run "/var/media/ftp/frewe/frewe-client -h" for the full list of vars
#######################################################################

# WeatherURL	http://www.domain.com/path/to/service.php?action=updateraw&ID=YOURID&PASSWORD=YOURPWD&dateutc=%n&winddir=%d&windspeedmph=%w&windgustmph=%g&humidity=%H&tempf=%o&dewptf=%e&baromin=%l&indoortempf=%i&indoorhumidity=%h&rainin=%s&dailyrainin=%t&softwaretype=Freetz%%20Weather

#######################################################################
# Output format and error string (may be empty) (ADVANCED)
# Run "/var/media/ftp/frewe/frewe-client -h" for the full list of vars
#######################################################################

# Full output string with metric units
# OutputFormat	time:                  %N\nage                    %a min\nin humidity:           %h %%\nout humidity:          %H %%\nin temperature:        %I C\nout temperature:       %O C\ndewpoint temperature:  %E C\nwindchill temperature: %C C\nwind speed:            %W km/h\nwind gust:             %G km/h\nwind direction:        %D\npressure:              %P hPa\nrel. pressure:         %L hPa\nrain total:            %R mm\nrain 60 min:           %S mm\nrain since 0h:         %T mm\n\n

# Full output string with english units
# OutputFormat	time:                  %N\nage                    %a min\nin humidity:           %h %%\nout humidity:          %H %%\nin temperature:        %i F\nout temperature:       %o F\ndewpoint temperature:  %e F\nwindchill temperature: %c F\nwind speed:            %w mph\nwind gust:             %g mph\nwind direction:        %D\npressure:              %p in\nrel. pressure:         %l in\nrain total:            %r in\nrain 60 min:           %s in\nrain since 0h:         %t in\n\n

# Use this output format if your want to log the data in a local CSV file
# OutputFormat		%N;%I;%O;%h;%H;%L;%W;%G;%d;%S;%T\n

# Empty output for silent run, keep it
OutputFormat
ErrorString		N/A


#######################################################################
# Alarms (ADVANCED)
# Get URL, run command or send eMail if threshold value is reached
# Run "/var/media/ftp/frewe/frewe-client -h" for the full list of vars
# You can enable up to 20 alarms and use each alarm type more than once
# Alarm_Email require frewe-server to be configured
# Thresholds are in C, hPa, km/h, mm, lux
# Helpful commands for Fritzbox:
# echo "ATDT123456" | nc 127.0.0.1 1011; sleep 2; echo "ATH" | nc 127.0.0.1 1011 # Ring Phone Number 123456
# ether-wake 00:11:22:33:44:55 # Wake up a device on specified MAC address
# echo "Email content" > /var/tmp/frewe.txt; mailer -t email@address.com -s "Email subject" -i /var/tmp/frewe.txt # Send email by Fritzbox, push service must be configured
#######################################################################


#HighOutdoorTemp	20.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowOutdoorTemp		-20.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighWindchillTemp	40.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowWindchillTemp	-40.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighDewTemp		40.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowDewTemp		-40.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighIndoorTemp		40.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowIndoorTemp		10.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighOutdoorHumidity	100
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		 /path/to/command args
#Alarm_Email		name@domain.com

#LowOutdoorHumidity	10
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighIndoorHumidity	100
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowIndoorHumidity	10
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighRelPressure	1050.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowRelPressure		950.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighWind		50.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowWind		0.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighGust		100.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowGust		0.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighRainHour		10.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowRainHour		0.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighRainDay		100.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowRainDay		0.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighIllumination	100.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowIllumination	0.0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#HighUV			100
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com

#LowUV			0
#Alarm_Get		http://www.domain.com/path/to/service?query
#Alarm_Run		/path/to/command args
#Alarm_Email		name@domain.com


# END OF FILE