Advertisement
Guest User

Untitled

a guest
Oct 31st, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.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 = 0
  12.  
  13. # Root directory of the weewx data file hierarchy for this station
  14. WEEWX_ROOT = /
  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.5.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 = "Strzeganowice, Poland"
  30.  
  31. # Latitude and longitude in decimal degrees
  32. latitude = 51.027
  33. longitude = 16.848
  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 = 150, 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 = FineOffsetUSB
  42.  
  43. # If you have a website, you may specify an URL
  44. #station_url = http://www.example.com
  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. [FineOffsetUSB]
  56. # This section is for the Fine Offset series of weather stations.
  57.  
  58. # The station model, e.g., WH1080, WS1090, WS2080, WH3081
  59. model = WH2080
  60.  
  61. # How often to poll the station for data, in seconds
  62. polling_interval = 120
  63.  
  64. # The driver to use:
  65. driver = weewx.drivers.fousb
  66.  
  67. ##############################################################################
  68.  
  69. # This section is for uploading data to Internet sites
  70.  
  71. [StdRESTful]
  72.  
  73. [[StationRegistry]]
  74. # To register this weather station with weewx, set this to true
  75. register_this_station = false
  76.  
  77. [[AWEKAS]]
  78. # This section is for configuring posts to AWEKAS.
  79.  
  80. # If you wish to do this, set the option 'enable' to true,
  81. # and specify a username and password.
  82. #enable = true
  83. #username = yacenty
  84. #password = Pisi0r09
  85.  
  86. [[CWOP]]
  87. # This section is for configuring posts to CWOP.
  88.  
  89. # If you wish to do this, set the option 'enable' to true,
  90. # and specify the station ID (e.g., CW1234).
  91. enable = false
  92. station = replace_me
  93.  
  94. # If this is an APRS (radio amateur) station, uncomment
  95. # the following and replace with a passcode (e.g., 12345).
  96. #passcode = replace_me (APRS stations only)
  97.  
  98. [[PWSweather]]
  99. # This section is for configuring posts to PWSweather.com.
  100.  
  101. # If you wish to do this, set the option 'enable' to true,
  102. # and specify a station and password.
  103. enable = false
  104. station = IKTYWROC3
  105. password = grzes1
  106.  
  107. [[WOW]]
  108. # This section is for configuring posts to WOW.
  109.  
  110. # If you wish to do this, set the option 'enable' to true,
  111. # and specify a station and password.
  112. enable = false
  113. station = replace_me
  114. password = replace_me
  115.  
  116. [[Wunderground]]
  117. # This section is for configuring posts to the Weather Underground.
  118.  
  119. # If you wish to do this, set the option 'enable' to true,
  120. # and specify a station (e.g., 'KORHOODR3') and password.
  121. enable = true
  122. station = IKTYWROC3
  123. password = grzes1
  124.  
  125. # Set the following to True to have weewx use the WU "Rapidfire"
  126. # protocol. Not all hardware can support it. See the User's Guide.
  127. rapidfire = False
  128.  
  129. ##############################################################################
  130.  
  131. # This section specifies what reports, using which skins, to generate.
  132.  
  133. [StdReport]
  134.  
  135. # Where the skins reside, relative to WEEWX_ROOT
  136. SKIN_ROOT = /etc/weewx/skins
  137.  
  138. # Where the generated reports should go, relative to WEEWX_ROOT
  139. HTML_ROOT = /var/www/weewx
  140.  
  141. # The database binding indicates which data should be used in reports.
  142. data_binding = wx_binding
  143.  
  144. # Each of the following subsections defines a report that will be run.
  145.  
  146. [[StandardReport]]
  147. # See the customizing guide to change the units, plot types and line
  148. # colors, modify the fonts, display additional sensor data, and other
  149. # customizations. Many of those changes can be made here by overriding
  150. # parameters, or by modifying templates within the skin itself.
  151.  
  152. # The StandardReport uses the 'Standard' skin, which contains the
  153. # images, templates and plots for the report.
  154. skin = Standard
  155. [[[Units]]]
  156. [[[[Groups]]]]
  157. group_altitude = meter
  158. group_speed2 = meter_per_second2
  159. group_pressure = mbar
  160. group_rain = mm
  161. group_rainrate = mm_per_hour
  162. group_temperature = degree_C
  163. group_degree_day = degree_C_day
  164. group_speed = meter_per_second
  165.  
  166. [[FTP]]
  167. # FTP'ing the results to a webserver is treated as just another report,
  168. # albeit one with an unusual report generator!
  169. skin = Ftp
  170.  
  171. # If you wish to use FTP, uncomment and fill out the next four lines.
  172. #user = pogoda@boleslawice.info
  173. #password = pisior
  174. #server = boleslawice.info
  175. #path = /public_html/
  176.  
  177. # Set to True for a secure FTP (SFTP) connection. Not all servers
  178. # support this.
  179. secure_ftp = False
  180.  
  181. # To upload files from something other than what HTML_ROOT is set
  182. # to above, specify a different HTML_ROOT here.
  183. #HTML_ROOT = /var/www/weewx
  184.  
  185. # Most FTP servers use port 21
  186. port = 21
  187.  
  188. # Set to 1 to use passive mode, zero for active mode
  189. passive = 1
  190.  
  191. [[RSYNC]]
  192. # rsync'ing to a webserver is treated as just another report
  193. skin = Rsync
  194.  
  195. # If you wish to use rsync, you must configure passwordless ssh using
  196. # public/private key authentication from the user account that weewx
  197. # runs as to the user account on the remote machine where the files
  198. # will be copied.
  199. #
  200. # The following three lines determine where files will be sent.
  201. #server = replace with the rsync server name, e.g, www.threefools.org
  202. #path = replace with the rsync destination directory (e.g., /weather)
  203. #user = replace with the rsync username
  204.  
  205. # Rsync can be configured to remove files from the remote server if
  206. # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
  207. # make a mistake in the remote path, you could could unintentionally
  208. # cause unrelated files to be deleted. Set to 1 to enable remote file
  209. # deletion, zero to allow files to accumulate remotely.
  210. delete = 0
  211.  
  212. ##############################################################################
  213.  
  214. # This service acts as a filter, converting the unit system coming from
  215. # the hardware to a unit system in the database.
  216.  
  217. [StdConvert]
  218.  
  219. # The target_unit affects only the unit system in the database. Once
  220. # chosen it cannot be changed without converting the entire database.
  221. # Modification of target_unit after starting weewx will result in
  222. # corrupt data - the database will contain a mix of US and METRIC data.
  223. #
  224. # The value of target_unit does not affect the unit system for
  225. # reporting - reports can display US, Metric, or any combination of units.
  226. #
  227. # In most cases, target_unit should be left as the default: US
  228. #
  229. # In particular, those migrating from a standard wview installation
  230. # should use US since that is what the wview database contains.
  231.  
  232. # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
  233. target_unit = US # Options are 'US', 'METRICWX', or 'METRIC'
  234.  
  235. ##############################################################################
  236.  
  237. # This section can adjust data using calibration expressions.
  238.  
  239. [StdCalibrate]
  240.  
  241. [[Corrections]]
  242. # For each type, an arbitrary calibration expression can be given.
  243. # It should be in the units defined in the StdConvert section.
  244. # Example:
  245. foo = foo + 0.2
  246.  
  247. ##############################################################################
  248.  
  249. # This section is for quality control checks. If units are not specified,
  250. # values must be in the units defined in the StdConvert section.
  251.  
  252. [StdQC]
  253.  
  254. [[MinMax]]
  255. barometer = 26, 32.5, inHg
  256. outTemp = -40, 120, degree_F
  257. inTemp = 10, 120, degree_F
  258. outHumidity = 0, 100
  259. inHumidity = 0, 100
  260. windSpeed = 0, 120, mile_per_hour
  261. pressure = 24, 34.5, inHg
  262.  
  263. ##############################################################################
  264.  
  265. # This section controls the origin of derived values.
  266.  
  267. [StdWXCalculate]
  268. # Derived quantities are calculated by this service. Possible values are:
  269. # hardware - use the value provided by hardware
  270. # software - use the value calculated by weewx
  271. # prefer_hardware - use value provide by hardware if available,
  272. # otherwise use value calculated by weewx
  273.  
  274. pressure = prefer_hardware
  275. barometer = prefer_hardware
  276. altimeter = prefer_hardware
  277. windchill = prefer_hardware
  278. heatindex = prefer_hardware
  279. dewpoint = prefer_hardware
  280. inDewpoint = prefer_hardware
  281. rainRate = prefer_hardware
  282.  
  283. ##############################################################################
  284.  
  285. # For hardware that supports it, this section controls how often the
  286. # onboard clock gets updated.
  287.  
  288. [StdTimeSynch]
  289.  
  290. # How often to check the weather station clock for drift (in seconds)
  291. clock_check = 14400
  292.  
  293. # How much it can drift before we will correct it (in seconds)
  294. max_drift = 5
  295.  
  296. ##############################################################################
  297.  
  298. # This section is for configuring the archive service.
  299.  
  300. [StdArchive]
  301.  
  302. # If the station hardware supports data logging then the archive interval
  303. # will be downloaded from the station. Otherwise, specify it (in seconds).
  304. archive_interval = 120
  305.  
  306. # How long to wait (in seconds) before processing new archive data. Must
  307. # be greater than zero.
  308. archive_delay = 15
  309.  
  310. # If possible, new archive records are downloaded from the station
  311. # hardware. If the hardware does not support this, then new archive
  312. # records will be generated in software.
  313. # Set the following to "software" to force software record generation.
  314. record_generation = software
  315.  
  316. # Whether to include LOOP data in hi/low statistics
  317. loop_hilo = True
  318.  
  319. # The data binding used to save archive records
  320. data_binding = wx_binding
  321.  
  322. ##############################################################################
  323.  
  324. # This section binds a data store to a database.
  325.  
  326. [DataBindings]
  327.  
  328. [[wx_binding]]
  329. # The database must match one of the sections in [Databases].
  330. # This is likely to be the only option you would want to change.
  331. database = archive_sqlite
  332. # The name of the table within the database
  333. table_name = archive
  334. # The manager handles aggregation of data for historical summaries
  335. manager = weewx.wxmanager.WXDaySummaryManager
  336. # The schema defines the structure of the database.
  337. # It is *only* used when the database is created.
  338. schema = schemas.wview.schema
  339.  
  340. ##############################################################################
  341.  
  342. # This section defines various databases.
  343.  
  344. [Databases]
  345.  
  346. # A SQLite database is simply a single file
  347. [[archive_sqlite]]
  348. database_type = SQLite
  349. database_name = weewx.sdb
  350.  
  351. # MySQL
  352. [[archive_mysql]]
  353. database_type = MySQL
  354. database_name = weewx
  355.  
  356. ##############################################################################
  357.  
  358. # This section defines defaults for the different types of databases.
  359.  
  360. [DatabaseTypes]
  361.  
  362. # Defaults for SQLite databases
  363. [[SQLite]]
  364. driver = weedb.sqlite
  365. # Directory in which the database files are located
  366. SQLITE_ROOT = /var/lib/weewx
  367.  
  368. # Defaults for MySQL databases
  369. [[MySQL]]
  370. driver = weedb.mysql
  371. # The host where the database is located
  372. host = localhost
  373. # The user name for logging in to the host
  374. user = weewx
  375. # The password for the user name
  376. password = weewx
  377.  
  378. ##############################################################################
  379.  
  380. # This section configures the internal weewx engine.
  381.  
  382. [Engine]
  383.  
  384. [[Services]]
  385. # This section specifies the services that should be run. They are
  386. # grouped by type, and the order of services within each group
  387. # determines the order in which the services will be run.
  388. prep_services = weewx.engine.StdTimeSynch
  389. data_services = ,
  390. process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
  391. archive_services = weewx.engine.StdArchive
  392. restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
  393. report_services = weewx.engine.StdPrint, weewx.engine.StdReport
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement