Advertisement
Guest User

Untitled

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