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