weewx.conf 18 KB

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