weewx.conf 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. # WEEWX CONFIGURATION FILE
  2. #
  3. # Copyright (c) 2009-2021 Tom Keffer <tkeffer@gmail.com>
  4. # See the file LICENSE.txt for your rights.
  5. ##############################################################################
  6. # This section is for general configuration information.
  7. # Set to 1 for extra debug info, otherwise comment it out or set to zero
  8. debug = 0
  9. # Root directory of the weewx data file hierarchy for this station WEEWX_ROOT = /home/weewx
  10. WEEWX_ROOT = /var/weewx
  11. # Whether to log successful operations
  12. log_success = True
  13. # Whether to log unsuccessful operations
  14. log_failure = True
  15. # How long to wait before timing out a socket (FTP, HTTP) connection
  16. socket_timeout = 20
  17. # Do not modify this. It is used when installing and updating weewx.
  18. version = 4.7.0
  19. # Whether to try indefinitely to load the driver
  20. loop_on_init = 1
  21. ##############################################################################
  22. # This section is for information about the station.
  23. [Station]
  24. location = "A farm in Castine, Maine"
  25. latitude = 44.3878547
  26. longitude = -68.7997522
  27. altitude = 82, foot # Choose 'foot' or 'meter' for unit
  28. station_type = GW1000
  29. station_url = https://wx.unbl.ink
  30. rain_year_start = 1
  31. week_start = 6
  32. ##############################################################################
  33. [GW1000]
  34. # This section is for the GW1000
  35. # The driver itself
  36. driver = user.gw1000
  37. ip_address = 192.168.40.180
  38. port = 45000
  39. poll_interval = 10
  40. [StdRESTful]
  41. [[StationRegistry]]
  42. register_this_station = true
  43. [[AWEKAS]]
  44. enable = false
  45. username = replace_me
  46. password = replace_me
  47. [[CWOP]]
  48. enable = false
  49. station = replace_me
  50. #passcode = replace_me (APRS stations only)
  51. [[PWSweather]]
  52. enable = false
  53. station = replace_me
  54. password = replace_me
  55. [[WOW]]
  56. enable = false
  57. station = replace_me
  58. password = replace_me
  59. [[Wunderground]]
  60. # This section is for configuring posts to the Weather Underground.
  61. # If you wish to do this, set the option 'enable' to true,
  62. # and specify a station (e.g., 'KORHOODR3') and password.
  63. # To guard against parsing errors, put the password in quotes.
  64. enable = false
  65. station = replace_me
  66. password = replace_me
  67. # If you plan on using wunderfixer, set the following
  68. # to your API key:
  69. api_key = replace_me
  70. # Set the following to True to have weewx use the WU "Rapidfire"
  71. # protocol. Not all hardware can support it. See the User's Guide.
  72. rapidfire = False
  73. ##############################################################################
  74. # This section specifies what reports, using which skins, to generate.
  75. [StdReport]
  76. SKIN_ROOT = skins
  77. HTML_ROOT = public_html
  78. data_binding = wx_binding
  79. log_success = true
  80. log_failure = true
  81. [[SeasonsReport]]
  82. # The SeasonsReport uses the 'Seasons' skin, which contains the
  83. # images, templates and plots for the report.
  84. skin = Seasons
  85. enable = true
  86. HTML_ROOT = public_html/seasons
  87. [[SmartphoneReport]]
  88. # The SmartphoneReport uses the 'Smartphone' skin, and the images and
  89. # files are placed in a dedicated subdirectory.
  90. skin = Smartphone
  91. enable = false
  92. HTML_ROOT = public_html/smartphone
  93. [[MobileReport]]
  94. # The MobileReport uses the 'Mobile' skin, and the images and files
  95. # are placed in a dedicated subdirectory.
  96. skin = Mobile
  97. enable = false
  98. HTML_ROOT = public_html/mobile
  99. [[neowx-material]]
  100. skin = neowx-material
  101. HTML_ROOT = public_html/neowx
  102. enable = true
  103. [[StandardReport]]
  104. # This is the old "Standard" skin. By default, it is not enabled.
  105. skin = Standard
  106. enable = true
  107. HTML_ROOT = public_html/standard
  108. [[SofaReport]]
  109. skin = Sofaskin-CW9009-1.4.91
  110. enable = true
  111. [[FTP]]
  112. skin = Ftp
  113. enable = false
  114. user = replace_me
  115. password = replace_me
  116. server = replace_me # The ftp server name, e.g, www.myserver.org path = replace_me # The destination directory, e.g., /weather
  117. secure_ftp = False
  118. port = 21
  119. passive = 1
  120. [[RSYNC]]
  121. skin = Rsync
  122. enable = false
  123. server = replace_me
  124. user = replace_me
  125. path = replace_me
  126. #HTML_ROOT = public_html
  127. delete = 0
  128. [[Defaults]]
  129. [[[Units]]]
  130. [[[[Groups]]]]
  131. group_altitude = foot # Options are 'foot' or 'meter'
  132. group_degree_day = degree_F_day # Options are 'degree_F_day' or 'degree_C_day'
  133. group_distance = mile # Options are 'mile' or 'km'
  134. group_pressure = mmHg # Options are 'inHg', 'mmHg', 'mbar', 'hPa', or 'kPa'
  135. group_rain = inch # Options are 'inch', 'cm', or 'mm'
  136. group_rainrate = inch_per_hour # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
  137. group_speed = knot # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
  138. group_speed2 = mile_per_hour2 # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
  139. group_temperature = degree_F # Options are 'degree_F' or 'degree_C'
  140. [[[[StringFormats]]]]
  141. centibar = %.0f
  142. cm = %.2f
  143. cm_per_hour = %.2f
  144. degree_C = %.1f
  145. degree_F = %.1f
  146. degree_compass = %.0f
  147. foot = %.0f
  148. hPa = %.1f
  149. hour = %.1f
  150. inHg = %.3f
  151. inch = %.2f
  152. inch_per_hour = %.2f
  153. km = %.1f
  154. km_per_hour = %.0f
  155. km_per_hour2 = %.1f
  156. knot = %.0f
  157. knot2 = %.1f
  158. kPa = %.2f
  159. mbar = %.1f
  160. meter = %.0f
  161. meter_per_second = %.1f
  162. meter_per_second2 = %.1f
  163. mile = %.1f
  164. mile_per_hour = %.0f
  165. mile_per_hour2 = %.1f
  166. mm = %.1f
  167. mmHg = %.1f
  168. mm_per_hour = %.1f
  169. percent = %.0f
  170. second = %.0f
  171. uv_index = %.1f
  172. volt = %.1f
  173. watt_per_meter_squared = %.0f
  174. NONE = " N/A"
  175. [[[[Labels]]]]
  176. meter = " meter", " meters" # You may prefer "metre".
  177. day = " day", " days"
  178. hour = " hour", " hours"
  179. minute = " minute", " minutes"
  180. second = " second", " seconds"
  181. NONE = ""
  182. [[[[TimeFormats]]]]
  183. hour = %H:%M
  184. day = %X
  185. week = %X (%A)
  186. month = %x %X
  187. year = %x %X
  188. rainyear = %x %X
  189. current = %x %X
  190. ephem_day = %X
  191. ephem_year = %x %X
  192. [[[[Ordinates]]]]
  193. directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
  194. [[[[DegreeDays]]]]
  195. heating_base = 65, degree_F
  196. cooling_base = 65, degree_F
  197. growing_base = 50, degree_F
  198. [[[[Trend]]]]
  199. time_delta = 10800 # 3 hours
  200. time_grace = 300 # 5 minutes
  201. [[[Labels]]]
  202. hemispheres = N, S, E, W
  203. latlon_formats = %02d, %03d, %05.2f
  204. [[[[Generic]]]]
  205. barometer = Barometer
  206. dewpoint = Dew Point
  207. ET = ET
  208. heatindex = Heat Index
  209. inHumidity = Inside Humidity
  210. inTemp = Inside Temperature
  211. outHumidity = Humidity
  212. outTemp = Outside Temperature
  213. radiation = Radiation
  214. rain = Rain
  215. rainRate = Rain Rate
  216. UV = UV Index
  217. windDir = Wind Direction
  218. windGust = Gust Speed
  219. windGustDir = Gust Direction
  220. windSpeed = Wind Speed
  221. windchill = Wind Chill
  222. windgustvec = Gust Vector
  223. windvec = Wind Vector
  224. extraTemp1 = Temperature1
  225. extraTemp2 = Temperature2
  226. extraTemp3 = Temperature3
  227. rxCheckPercent = Signal Quality
  228. txBatteryStatus = Transmitter Battery
  229. windBatteryStatus = Wind Battery
  230. rainBatteryStatus = Rain Battery
  231. outTempBatteryStatus = Outside Temperature Battery
  232. inTempBatteryStatus = Inside Temperature Battery
  233. consBatteryVoltage = Console Battery
  234. heatingVoltage = Heating Battery
  235. supplyVoltage = Supply Voltage
  236. referenceVoltage = Reference Voltage
  237. [[[Almanac]]]
  238. moon_phases = New, Waxing crescent, First quarter, Waxing gibbous, Full, Waning gibbous, Last quarter, Waning crescent
  239. ##############################################################################
  240. [StdConvert]
  241. # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
  242. target_unit = US # Options are 'US', 'METRICWX', or 'METRIC'
  243. ##############################################################################
  244. [StdCalibrate]
  245. [[Corrections]]
  246. # For each type, an arbitrary calibration expression can be given.
  247. # It should be in the units defined in the StdConvert section.
  248. # Example:
  249. foo = foo + 0.2
  250. ##############################################################################
  251. [StdQC]
  252. [[MinMax]]
  253. barometer = 26, 32.5, inHg
  254. pressure = 24, 34.5, inHg
  255. outTemp = -40, 120, degree_F
  256. inTemp = 10, 120, degree_F
  257. outHumidity = 0, 100
  258. inHumidity = 0, 100
  259. windSpeed = 0, 120, mile_per_hour
  260. rain = 0, 10, inch
  261. ##############################################################################
  262. [StdWXCalculate]
  263. [[Calculations]]
  264. pressure = prefer_hardware
  265. altimeter = prefer_hardware
  266. appTemp = prefer_hardware
  267. barometer = prefer_hardware
  268. cloudbase = prefer_hardware
  269. dewpoint = prefer_hardware
  270. ET = prefer_hardware
  271. heatindex = prefer_hardware
  272. humidex = prefer_hardware
  273. inDewpoint = prefer_hardware
  274. maxSolarRad = prefer_hardware
  275. rainRate = prefer_hardware
  276. windchill = prefer_hardware
  277. windrun = prefer_hardware
  278. ##############################################################################
  279. [StdTimeSynch]
  280. clock_check = 14400
  281. max_drift = 5
  282. ##############################################################################
  283. [StdArchive]
  284. # If the station hardware supports data logging then the archive interval
  285. # will be downloaded from the station. Otherwise, specify it (in seconds).
  286. archive_interval = 300
  287. # If possible, new archive records are downloaded from the station
  288. # hardware. If the hardware does not support this, then new archive
  289. # records will be generated in software.
  290. # Set the following to "software" to force software record generation.
  291. record_generation = software
  292. # Whether to include LOOP data in hi/low statistics
  293. loop_hilo = True
  294. # The data binding used to save archive records
  295. data_binding = wx_binding
  296. ##############################################################################
  297. # This section binds a data store to a database.
  298. [DataBindings]
  299. [[wx_binding]]
  300. # The database must match one of the sections in [Databases].
  301. # This is likely to be the only option you would want to change.
  302. database = archive_sqlite
  303. # The name of the table within the database
  304. table_name = archive
  305. # The manager handles aggregation of data for historical summaries
  306. manager = weewx.manager.DaySummaryManager
  307. # The schema defines the structure of the database.
  308. # It is *only* used when the database is created.
  309. schema = schemas.wview_extended.schema
  310. ##############################################################################
  311. # This section defines various databases.
  312. [Databases]
  313. # A SQLite database is simply a single file
  314. [[archive_sqlite]]
  315. database_name = weewx.sdb
  316. database_type = SQLite
  317. ##############################################################################
  318. # This section defines defaults for the different types of databases.
  319. [DatabaseTypes]
  320. # Defaults for SQLite databases
  321. [[SQLite]]
  322. driver = weedb.sqlite
  323. # Directory in which the database files are located
  324. SQLITE_ROOT = %(WEEWX_ROOT)s/archive
  325. ##############################################################################
  326. # This section configures the internal weewx engine.
  327. [Engine]
  328. # The following section specifies which services should be run and in what order.
  329. [[Services]]
  330. prep_services = weewx.engine.StdTimeSynch
  331. data_services = ,
  332. process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
  333. xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta
  334. archive_services = weewx.engine.StdArchive
  335. restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
  336. report_services = weewx.engine.StdPrint, weewx.engine.StdReport
  337. [Accumulator]
  338. [[lightning_strike_count]]
  339. extractor = sum
  340. [[lightning_last_det_time]]
  341. extractor = last
  342. [[lightning_distance]]
  343. extractor = last
  344. [[daymaxwind]]
  345. extractor = last
  346. [[stormRain]]
  347. extractor = last
  348. [[hourRain]]
  349. extractor = last
  350. [[dayRain]]
  351. extractor = last
  352. [[weekRain]]
  353. extractor = last
  354. [[monthRain]]
  355. extractor = last
  356. [[yearRain]]
  357. extractor = last
  358. [[totalRain]]
  359. extractor = last
  360. [[pm2_51_24h_avg]]
  361. extractor = last
  362. [[pm2_52_24h_avg]]
  363. extractor = last
  364. [[pm2_53_24h_avg]]
  365. extractor = last
  366. [[pm2_54_24h_avg]]
  367. extractor = last
  368. [[pm2_55_24h_avg]]
  369. extractor = last
  370. [[pm10_24h_avg]]
  371. extractor = last
  372. [[co2_24h_avg]]
  373. extractor = last
  374. [[wh40_batt]]
  375. extractor = last
  376. [[wh26_batt]]
  377. extractor = last
  378. [[wh25_batt]]
  379. extractor = last
  380. [[wh65_batt]]
  381. extractor = last
  382. [[wh31_ch1_batt]]
  383. extractor = last
  384. [[wh31_ch2_batt]]
  385. extractor = last
  386. [[wh31_ch3_batt]]
  387. extractor = last
  388. [[wh31_ch4_batt]]
  389. extractor = last
  390. [[wh31_ch5_batt]]
  391. extractor = last
  392. [[wh31_ch6_batt]]
  393. extractor = last
  394. [[wh31_ch7_batt]]
  395. extractor = last
  396. [[wh31_ch8_batt]]
  397. extractor = last
  398. [[wh41_ch1_batt]]
  399. extractor = last
  400. [[wh41_ch2_batt]]
  401. extractor = last
  402. [[wh41_ch3_batt]]
  403. extractor = last
  404. [[wh41_ch4_batt]]
  405. extractor = last
  406. [[wh45_batt]]
  407. extractor = last
  408. [[wh51_ch1_batt]]
  409. extractor = last
  410. [[wh51_ch2_batt]]
  411. extractor = last
  412. [[wh51_ch3_batt]]
  413. extractor = last
  414. [[wh51_ch4_batt]]
  415. extractor = last
  416. [[wh51_ch5_batt]]
  417. extractor = last
  418. [[wh51_ch6_batt]]
  419. extractor = last
  420. [[wh51_ch7_batt]]
  421. extractor = last
  422. [[wh51_ch8_batt]]
  423. extractor = last
  424. [[wh51_ch9_batt]]
  425. extractor = last
  426. [[wh51_ch10_batt]]
  427. extractor = last
  428. [[wh51_ch11_batt]]
  429. extractor = last
  430. [[wh51_ch12_batt]]
  431. extractor = last
  432. [[wh51_ch13_batt]]
  433. extractor = last
  434. [[wh51_ch14_batt]]
  435. extractor = last
  436. [[wh51_ch15_batt]]
  437. extractor = last
  438. [[wh51_ch16_batt]]
  439. extractor = last
  440. [[wh55_ch1_batt]]
  441. extractor = last
  442. [[wh55_ch2_batt]]
  443. extractor = last
  444. [[wh55_ch3_batt]]
  445. extractor = last
  446. [[wh55_ch4_batt]]
  447. extractor = last
  448. [[wh57_batt]]
  449. extractor = last
  450. [[wh68_batt]]
  451. extractor = last
  452. [[ws80_batt]]
  453. extractor = last
  454. [[wh40_sig]]
  455. extractor = last
  456. [[wh26_sig]]
  457. extractor = last
  458. [[wh25_sig]]
  459. extractor = last
  460. [[wh65_sig]]
  461. extractor = last
  462. [[wh31_ch1_sig]]
  463. extractor = last
  464. [[wh31_ch2_sig]]
  465. extractor = last
  466. [[wh31_ch3_sig]]
  467. extractor = last
  468. [[wh31_ch4_sig]]
  469. extractor = last
  470. [[wh31_ch5_sig]]
  471. extractor = last
  472. [[wh31_ch6_sig]]
  473. extractor = last
  474. [[wh31_ch7_sig]]
  475. extractor = last
  476. [[wh31_ch8_sig]]
  477. extractor = last
  478. [[wh41_ch1_sig]]
  479. extractor = last
  480. [[wh41_ch2_sig]]
  481. extractor = last
  482. [[wh41_ch3_sig]]
  483. extractor = last
  484. [[wh41_ch4_sig]]
  485. extractor = last
  486. [[wh45_sig]]
  487. extractor = last
  488. [[wh51_ch1_sig]]
  489. extractor = last
  490. [[wh51_ch2_sig]]
  491. extractor = last
  492. [[wh51_ch3_sig]]
  493. extractor = last
  494. [[wh51_ch4_sig]]
  495. extractor = last
  496. [[wh51_ch5_sig]]
  497. extractor = last
  498. [[wh51_ch6_sig]]
  499. extractor = last
  500. [[wh51_ch7_sig]]
  501. extractor = last
  502. [[wh51_ch8_sig]]
  503. extractor = last
  504. [[wh51_ch9_sig]]
  505. extractor = last
  506. [[wh51_ch10_sig]]
  507. extractor = last
  508. [[wh51_ch11_sig]]
  509. extractor = last
  510. [[wh51_ch12_sig]]
  511. extractor = last
  512. [[wh51_ch13_sig]]
  513. extractor = last
  514. [[wh51_ch14_sig]]
  515. extractor = last
  516. [[wh51_ch15_sig]]
  517. extractor = last
  518. [[wh51_ch16_sig]]
  519. extractor = last
  520. [[wh55_ch1_sig]]
  521. extractor = last
  522. [[wh55_ch2_sig]]
  523. extractor = last
  524. [[wh55_ch3_sig]]
  525. extractor = last
  526. [[wh55_ch4_sig]]
  527. extractor = last
  528. [[wh57_sig]]
  529. extractor = last
  530. [[wh68_sig]]
  531. extractor = last
  532. [[ws80_sig]]
  533. extractor = last