Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.12 KB | None | 0 0
  1. # WEEWX CONFIGURATION FILE
  2. #
  3. # Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
  4. # See the file LICENSE.txt for your rights.
  5.  
  6. ##############################################################################
  7.  
  8. # This section is for general configuration information.
  9.  
  10. # Set to 1 for extra debug info, otherwise comment it out or set to zero
  11. debug = 1
  12.  
  13. # Root directory of the weewx data file hierarchy for this station
  14. WEEWX_ROOT = /media/usbstick/
  15.  
  16. # How long to wait before timing out a socket (FTP, HTTP) connection
  17. socket_timeout = 20
  18.  
  19. # Do not modify this. It is used when installing and updating weewx.
  20. version = 3.4.0
  21.  
  22. ##############################################################################
  23.  
  24. # This section is for information about the station.
  25.  
  26. [Station]
  27.  
  28. # Description of the station location
  29. location = "Pewsum, Germany"
  30.  
  31. # Latitude and longitude in decimal degrees
  32. latitude = 53.443202
  33. longitude = 7.096052
  34.  
  35. # Altitude of the station, with unit it is in. This is downloaded from
  36. # from the station if the hardware supports it.
  37. altitude = 2, meter
  38.  
  39. # Set to type of station hardware. There must be a corresponding stanza
  40. # in this file with a 'driver' parameter indicating the driver to be used.
  41. station_type = TE923
  42.  
  43. # If you have a website, you may specify an URL
  44. #station_url = http://www.schatthaus-wetter.de
  45.  
  46. # The start of the rain year (1=January; 10=October, etc.). This is
  47. # downloaded from the station if the hardware supports it.
  48. rain_year_start = 1
  49.  
  50. # Start of week (0=Monday, 6=Sunday)
  51. week_start = 6
  52.  
  53. ##############################################################################
  54.  
  55. [TE923]
  56. # This section is for the Hideki TE923 series of weather stations.
  57.  
  58. # The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
  59. model = TE923 Nexus
  60.  
  61. # The driver to use:
  62. driver = weewx.drivers.te923
  63.  
  64. # The default configuration associates the channel 1 sensor with outTemp
  65. # and outHumidity. To change this, or to associate other channels with
  66. # specific columns in the database schema, use the following map.
  67. [[map]]
  68. bat_1 = outBatteryStatus
  69. bat_3 = extraBatteryStatus2
  70. bat_2 = extraBatteryStatus1
  71. bat_5 = extraBatteryStatus4
  72. bat_4 = extraBatteryStatus3
  73. bat_wind = windBatteryStatus
  74. t_in = inTemp
  75. link_rain = rainLinkStatus
  76. t_5 = extraTemp4
  77. h_in = inHumidity
  78. h_4 = extraHumid3
  79. h_5 = extraHumid4
  80. h_2 = extraHumid1
  81. h_3 = extraHumid3
  82. h_1 = outHumidity
  83. t_2 = extraTemp1
  84. link_2 = extraLinkStatus1
  85. link_uv = uvLinkStatus
  86. link_wind = windLinkStatus
  87. uv = UV
  88. bat_uv = uvBatteryStatus
  89. link_5 = extraLinkStatus4
  90. bat_rain = rainBatteryStatus
  91. link_3 = extraLinkStatus2
  92. t_3 = extraTemp2
  93. link_1 = outLinkStatus
  94. t_1 = outTemp
  95. t_4 = extraTemp3
  96. link_4 = extraLinkStatus3
  97.  
  98. ##############################################################################
  99.  
  100. # This section is for uploading data to Internet sites
  101.  
  102. [StdRESTful]
  103.  
  104. [[StationRegistry]]
  105. # To register this weather station with weewx, set this to true
  106. register_this_station = false
  107.  
  108. [[AWEKAS]]
  109. # This section is for configuring posts to AWEKAS.
  110.  
  111. # If you wish to do this, set the option 'enable' to true,
  112. # and specify a username and password.
  113. enable = false
  114. username = replace_me
  115. password = replace_me
  116.  
  117. [[CWOP]]
  118. # This section is for configuring posts to CWOP.
  119.  
  120. # If you wish to do this, set the option 'enable' to true,
  121. # and specify the station ID (e.g., CW1234).
  122. enable = false
  123. station = replace_me
  124.  
  125. # If this is an APRS (radio amateur) station, uncomment
  126. # the following and replace with a passcode (e.g., 12345).
  127. #passcode = replace_me (APRS stations only)
  128.  
  129. [[PWSweather]]
  130. # This section is for configuring posts to PWSweather.com.
  131.  
  132. # If you wish to do this, set the option 'enable' to true,
  133. # and specify a station and password.
  134. enable = false
  135. station = replace_me
  136. password = replace_me
  137.  
  138. [[WOW]]
  139. # This section is for configuring posts to WOW.
  140.  
  141. # If you wish to do this, set the option 'enable' to true,
  142. # and specify a station and password.
  143. enable = false
  144. station = replace_me
  145. password = replace_me
  146.  
  147. [[Wunderground]]
  148. # This section is for configuring posts to the Weather Underground.
  149.  
  150. # If you wish to do this, set the option 'enable' to true,
  151. # and specify a station (e.g., 'KORHOODR3') and password.
  152. enable = false
  153. station = replace_me
  154. password = replace_me
  155.  
  156. # Set the following to True to have weewx use the WU "Rapidfire"
  157. # protocol. Not all hardware can support it. See the User's Guide.
  158. rapidfire = False
  159.  
  160. ##############################################################################
  161.  
  162. # This section specifies what reports, using which skins, to generate.
  163.  
  164. [StdReport]
  165.  
  166. # Where the skins reside, relative to WEEWX_ROOT
  167. SKIN_ROOT = /etc/weewx/skins
  168.  
  169. # Where the generated reports should go, relative to WEEWX_ROOT
  170. HTML_ROOT = /var/www/weewx
  171.  
  172. # The database binding indicates which data should be used in reports.
  173. data_binding = wx_binding
  174.  
  175. # Each of the following subsections defines a report that will be run.
  176.  
  177. [[StandardReport]]
  178. # See the customizing guide to change the units, plot types and line
  179. # colors, modify the fonts, display additional sensor data, and other
  180. # customizations. Many of those changes can be made here by overriding
  181. # parameters, or by modifying templates within the skin itself.
  182.  
  183. # The StandardReport uses the 'Standard' skin, which contains the
  184. # images, templates and plots for the report.
  185. skin = Standard
  186. [[[Units]]]
  187. [[[[Groups]]]]
  188. group_altitude = meter
  189. group_speed2 = meter_per_second2
  190. group_pressure = mbar
  191. group_rain = mm
  192. group_rainrate = mm_per_hour
  193. group_temperature = degree_C
  194. group_degree_day = degree_C_day
  195. group_speed = meter_per_second
  196.  
  197. [[FTP]]
  198. # FTP'ing the results to a webserver is treated as just another report,
  199. # albeit one with an unusual report generator!
  200. skin = Ftp
  201.  
  202. # If you wish to use FTP, uncomment and fill out the next four lines.
  203. #user = web86
  204. #password = meinpasswort
  205. #server = srvxx.sysproserver.de
  206. #path = /
  207.  
  208. # Set to True for a secure FTP (SFTP) connection. Not all servers
  209. # support this.
  210. secure_ftp = False
  211.  
  212. # To upload files from something other than what HTML_ROOT is set
  213. # to above, specify a different HTML_ROOT here.
  214. #HTML_ROOT = /var/www/web86/html/
  215.  
  216. # Most FTP servers use port 21
  217. port = 21
  218.  
  219. # Set to 1 to use passive mode, zero for active mode
  220. passive = 1
  221.  
  222. [[RSYNC]]
  223. # rsync'ing to a webserver is treated as just another report
  224. skin = Rsync
  225.  
  226. # If you wish to use rsync, you must configure passwordless ssh using
  227. # public/private key authentication from the user account that weewx
  228. # runs as to the user account on the remote machine where the files
  229. # will be copied.
  230. #
  231. # The following three lines determine where files will be sent.
  232. #server = replace with the rsync server name, e.g, www.threefools.org
  233. #path = replace with the rsync destination directory (e.g., /weather)
  234. #user = replace with the rsync username
  235.  
  236. # Rsync can be configured to remove files from the remote server if
  237. # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
  238. # make a mistake in the remote path, you could could unintentionally
  239. # cause unrelated files to be deleted. Set to 1 to enable remote file
  240. # deletion, zero to allow files to accumulate remotely.
  241. delete = 0
  242.  
  243. ##############################################################################
  244.  
  245. # This service acts as a filter, converting the unit system coming from
  246. # the hardware to a unit system in the database.
  247.  
  248. [StdConvert]
  249.  
  250. # The target_unit affects only the unit system in the database. Once
  251. # chosen it cannot be changed without converting the entire database.
  252. # Modification of target_unit after starting weewx will result in
  253. # corrupt data - the database will contain a mix of US and METRIC data.
  254. #
  255. # The value of target_unit does not affect the unit system for
  256. # reporting - reports can display US, Metric, or any combination of units.
  257. #
  258. # In most cases, target_unit should be left as the default: US
  259. #
  260. # In particular, those migrating from a standard wview installation
  261. # should use US since that is what the wview database contains.
  262.  
  263. # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
  264. target_unit = US # Options are 'US', 'METRICWX', or 'METRIC'
  265.  
  266. ##############################################################################
  267.  
  268. # This section can adjust data using calibration expressions.
  269.  
  270. [StdCalibrate]
  271.  
  272. [[Corrections]]
  273. # For each type, an arbitrary calibration expression can be given.
  274. # It should be in the units defined in the StdConvert section.
  275. # Example:
  276. foo = foo + 0.2
  277.  
  278. ##############################################################################
  279.  
  280. # This section is for quality control checks. If units are not specified,
  281. # values must be in the units defined in the StdConvert section.
  282.  
  283. [StdQC]
  284.  
  285. [[MinMax]]
  286. barometer = 26, 32.5, inHg
  287. outTemp = -40, 120, degree_F
  288. inTemp = 10, 120, degree_F
  289. outHumidity = 0, 100
  290. inHumidity = 0, 100
  291. windSpeed = 0, 120, mile_per_hour
  292.  
  293. ##############################################################################
  294.  
  295. # This section controls the origin of derived values.
  296.  
  297. [StdWXCalculate]
  298. # Derived quantities are calculated by this service. Possible values are:
  299. # hardware - use the value provided by hardware
  300. # software - use the value calculated by weewx
  301. # prefer_hardware - use value provide by hardware if available,
  302. # otherwise use value calculated by weewx
  303.  
  304. pressure = prefer_hardware
  305. barometer = prefer_hardware
  306. altimeter = prefer_hardware
  307. windchill = prefer_hardware
  308. heatindex = prefer_hardware
  309. dewpoint = prefer_hardware
  310. inDewpoint = prefer_hardware
  311. rainRate = prefer_hardware
  312.  
  313. ##############################################################################
  314.  
  315. # For hardware that supports it, this section controls how often the
  316. # onboard clock gets updated.
  317.  
  318. [StdTimeSynch]
  319.  
  320. # How often to check the weather station clock for drift (in seconds)
  321. clock_check = 14400
  322.  
  323. # How much it can drift before we will correct it (in seconds)
  324. max_drift = 5
  325.  
  326. ##############################################################################
  327.  
  328. # This section is for configuring the archive service.
  329.  
  330. [StdArchive]
  331.  
  332. # If the station hardware supports data logging then the archive interval
  333. # will be downloaded from the station. Otherwise, specify it (in seconds).
  334. archive_interval = 300
  335.  
  336. # How long to wait (in seconds) before processing new archive data. Must
  337. # be greater than zero.
  338. archive_delay = 15
  339.  
  340. # If possible, new archive records are downloaded from the station
  341. # hardware. If the hardware does not support this, then new archive
  342. # records will be generated in software.
  343. # Set the following to "software" to force software record generation.
  344. record_generation = hardware
  345.  
  346. # Whether to include LOOP data in hi/low statistics
  347. loop_hilo = True
  348.  
  349. # The data binding used to save archive records
  350. data_binding = wx_binding
  351.  
  352. ##############################################################################
  353.  
  354. # This section binds a data store to a database.
  355.  
  356. [DataBindings]
  357.  
  358. [[wx_binding]]
  359. # The database must match one of the sections in [Databases].
  360. # This is likely to be the only option you would want to change.
  361. database = archive_sqlite
  362. # The name of the table within the database
  363. table_name = archive
  364. # The manager handles aggregation of data for historical summaries
  365. manager = weewx.wxmanager.WXDaySummaryManager
  366. # The schema defines the structure of the database.
  367. # It is *only* used when the database is created.
  368. schema = schemas.wview.schema
  369.  
  370. ##############################################################################
  371.  
  372. # This section defines various databases.
  373.  
  374. [Databases]
  375.  
  376. # A SQLite database is simply a single file
  377. [[archive_sqlite]]
  378. database_type = SQLite
  379. database_name = weewx.sdb
  380.  
  381. # MySQL
  382. [[archive_mysql]]
  383. database_type = MySQL
  384. database_name = weewx
  385.  
  386. ##############################################################################
  387.  
  388. # This section defines defaults for the different types of databases.
  389.  
  390. [DatabaseTypes]
  391.  
  392. # Defaults for SQLite databases
  393. [[SQLite]]
  394. driver = weedb.sqlite
  395. # Directory in which the database files are located
  396. SQLITE_ROOT = /var/lib/weewx
  397.  
  398. # Defaults for MySQL databases
  399. [[MySQL]]
  400. driver = weedb.mysql
  401. # The host where the database is located
  402. host = localhost
  403. # The user name for logging in to the host
  404. user = weewx
  405. # The password for the user name
  406. password = weewx
  407.  
  408. ##############################################################################
  409.  
  410. # This section configures the internal weewx engine.
  411.  
  412. [Engine]
  413.  
  414. [[Services]]
  415. # This section specifies the services that should be run. They are
  416. # grouped by type, and the order of services within each group
  417. # determines the order in which the services will be run.
  418. prep_services = weewx.engine.StdTimeSynch
  419. data_services = ,
  420. process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
  421. archive_services = weewx.engine.StdArchive
  422. restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
  423. report_services = weewx.engine.StdPrint, weewx.engine.StdReport
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement