Skip to content

Commit 1738d2f

Browse files
author
Tom Keffer
committed
Reintegrate from the v3 branch.
V3.0.0b1
1 parent 80ee3c4 commit 1738d2f

File tree

177 files changed

+16855
-11911
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+16855
-11911
lines changed

MANIFEST

+50-29
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1+
# file GENERATED by distutils, do NOT edit
12
LICENSE.txt
23
README
34
setup.cfg
45
setup.py
56
weewx.conf
67
bin/daemon.py
78
bin/wee_config_database
8-
bin/wee_config_fousb
9-
bin/wee_config_te923
10-
bin/wee_config_vantage
11-
bin/wee_config_ws23xx
12-
bin/wee_config_ws28xx
9+
bin/wee_config_device
1310
bin/wee_reports
1411
bin/weewxd
1512
bin/examples/__init__.py
1613
bin/examples/alarm.py
1714
bin/examples/lowBattery.py
1815
bin/examples/xsearch.py
16+
bin/schemas/__init__.py
17+
bin/schemas/wview.py
1918
bin/user/__init__.py
2019
bin/user/extensions.py
21-
bin/user/schemas.py
2220
bin/weedb/__init__.py
2321
bin/weedb/mysql.py
2422
bin/weedb/sqlite.py
@@ -32,23 +30,24 @@ bin/weeutil/ftpupload.py
3230
bin/weeutil/rsyncupload.py
3331
bin/weeutil/weeutil.py
3432
bin/weewx/__init__.py
35-
bin/weewx/abstractstation.py
3633
bin/weewx/accum.py
3734
bin/weewx/almanac.py
38-
bin/weewx/archive.py
3935
bin/weewx/cheetahgenerator.py
4036
bin/weewx/crc16.py
37+
bin/weewx/engine.py
4138
bin/weewx/filegenerator.py
4239
bin/weewx/imagegenerator.py
40+
bin/weewx/manager.py
4341
bin/weewx/reportengine.py
44-
bin/weewx/restful.py
4542
bin/weewx/restx.py
4643
bin/weewx/station.py
47-
bin/weewx/stats.py
44+
bin/weewx/tags.py
4845
bin/weewx/units.py
4946
bin/weewx/uwxutils.py
5047
bin/weewx/wxengine.py
5148
bin/weewx/wxformulas.py
49+
bin/weewx/wxmanager.py
50+
bin/weewx/wxservices.py
5251
bin/weewx/drivers/__init__.py
5352
bin/weewx/drivers/cc3000.py
5453
bin/weewx/drivers/fousb.py
@@ -65,31 +64,14 @@ bin/weewx/drivers/ws28xx.py
6564
docs/changes.txt
6665
docs/copyright.htm
6766
docs/customizing.htm
68-
docs/day-gap-not-shown.png
69-
docs/day-gap-showing.png
70-
docs/daytemp_with_avg.png
7167
docs/debian.htm
72-
docs/ferrites.jpg
73-
docs/funky_degree.png
74-
docs/logo-apple.png
75-
docs/logo-centos.png
76-
docs/logo-debian.png
77-
docs/logo-fedora.png
78-
docs/logo-linux.png
79-
docs/logo-mint.png
80-
docs/logo-opensuse.png
81-
docs/logo-redhat.png
82-
docs/logo-suse.png
83-
docs/logo-ubuntu.png
84-
docs/logo-weewx.png
8568
docs/readme.htm
8669
docs/redhat.htm
8770
docs/setup.htm
8871
docs/suse.htm
8972
docs/upgrading.htm
9073
docs/usersguide.htm
91-
docs/weekgustoverlay.png
92-
docs/yearhilow.png
74+
docs/css/jquery.tocify.css
9375
docs/css/weewx_docs.css
9476
docs/css/ui-lightness/jquery-ui-1.10.4.custom.css
9577
docs/css/ui-lightness/jquery-ui-1.10.4.custom.min.css
@@ -107,9 +89,35 @@ docs/css/ui-lightness/images/ui-icons_228ef1_256x240.png
10789
docs/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
10890
docs/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
10991
docs/css/ui-lightness/images/ui-icons_ffffff_256x240.png
92+
docs/images/day-gap-not-shown.png
93+
docs/images/day-gap-showing.png
94+
docs/images/daycompare.png
95+
docs/images/daytemp_with_avg.png
96+
docs/images/daywindvec.png
97+
docs/images/ferrites.jpg
98+
docs/images/funky_degree.png
99+
docs/images/image_parts.png
100+
docs/images/logo-apple.png
101+
docs/images/logo-centos.png
102+
docs/images/logo-debian.png
103+
docs/images/logo-fedora.png
104+
docs/images/logo-linux.png
105+
docs/images/logo-mint.png
106+
docs/images/logo-opensuse.png
107+
docs/images/logo-redhat.png
108+
docs/images/logo-suse.png
109+
docs/images/logo-ubuntu.png
110+
docs/images/logo-weewx.png
111+
docs/images/sample_monthrain.png
112+
docs/images/weekgustoverlay.png
113+
docs/images/weektempdew.png
114+
docs/images/yearhilow.png
115+
docs/js/jquery-1.11.1.min.js
110116
docs/js/jquery-ui-1.10.4.custom.min.js
111-
docs/js/jquery.min.js
112117
docs/js/jquery.toc-1.1.4.min.js
118+
docs/js/jquery.tocify-1.9.0.js
119+
docs/js/jquery.tocify-1.9.0.min.js
120+
docs/js/weewx.js
113121
extensions/basic/changelog
114122
extensions/basic/install.py
115123
extensions/basic/readme.txt
@@ -119,10 +127,22 @@ extensions/basic/skins/basic/favicon.ico
119127
extensions/basic/skins/basic/hilo.inc
120128
extensions/basic/skins/basic/index.html.tmpl
121129
extensions/basic/skins/basic/skin.conf
130+
extensions/fileparse/changelog
131+
extensions/fileparse/install.py
132+
extensions/fileparse/readme.txt
133+
extensions/fileparse/bin/user/fileparse.py
134+
extensions/pmon/changelog
135+
extensions/pmon/install.py
136+
extensions/pmon/readme.txt
137+
extensions/pmon/bin/user/pmon.py
138+
extensions/pmon/skins/pmon/index.html.tmpl
139+
extensions/pmon/skins/pmon/skin.conf
122140
extensions/xstats/changelog
123141
extensions/xstats/install.py
124142
extensions/xstats/readme.txt
125143
extensions/xstats/bin/user/xstats.py
144+
extensions/xstats/skins/xstats/index.html.tmpl
145+
extensions/xstats/skins/xstats/skin.conf
126146
skins/Ftp/skin.conf
127147
skins/Rsync/skin.conf
128148
skins/Standard/favicon.ico
@@ -166,3 +186,4 @@ util/logwatch/conf/logfiles/weewx.conf
166186
util/logwatch/conf/services/weewx.conf
167187
util/logwatch/scripts/services/weewx
168188
util/rsyslog.d/weewx.conf
189+
util/systemd/weewx.service

NEW_FEATURES.txt

-15
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ Offer tags to support JSON. In particular, vectors. A tag like
1818
$day.outTemp.vector would offer a vector of temperatures for the day.
1919
Aggregation would be nice.
2020

21-
Allow statistics to be extracted from the archive database, as well as the
22-
stats database. This would allow hourly statistics. Taken to the extreme, it
23-
could also allow the elimination of the stats database if the performance is
24-
acceptable.
25-
2621
Allow new derived types to be created by the user. Right now, things like
2722
heating and cooling degree days are hardwired in, but it ought to be possible
2823
to add things like that modularly.
@@ -41,14 +36,6 @@ Harden up the MySQL database connection.
4136
Allow reporting services to be fired off at something other than every
4237
archive period. In particular, FTP.
4338

44-
possibly implement averaging rainRate calculation instead of the
45-
current near-instantaneous implementation in fousb
46-
47-
New observation types would have their unit group attached as a suffix.
48-
E.g., _energy.
49-
50-
Offer a more "weather friendly" Metric unit system.
51-
5239
Offer "cumulative" as an aggregation type.
5340

5441
Allow rain-to-date to be added to a partial rainyear.
@@ -67,8 +54,6 @@ Port to Windows.
6754
Allow variable y-axis labelling. Right now it's hardwired to every other major
6855
tick mark.
6956

70-
Make units extensible.
71-
7257
Add log_success/log_failure parameters for subsystems other than just restx.
7358

7459
Graphing system feature requests:

TODO.txt

+145-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
1-
TODO before the next release:
1+
-------------------- TODO for V3 ---------------------------
22

3-
Document the new capabilities of the wee_config_vantage utility.
3+
Should the archive file be backed up before adding the daily summaries?
4+
- Probably.
45

5-
Figure out why the heartbeat doesn't work on the WMR200.
6+
Prompt for extension-specific parameters
67

7-
add documentation for the extension installer and extension packaging.
8+
9+
10+
-------------------- Nice to do (V3.1?) ---------------------------
11+
12+
Make setup.py do nicer formatting to weewx.conf
13+
- spacing before when injecting skin stanzas
14+
- spacing before when injecting database and binding stanzas
15+
- rows of hashmarks when injecting service stanzas such as [Forecast]
16+
- inject service stanzas somewhere other than end of file
17+
- inject skin stanzas before ftp and rsync
18+
19+
The StdArchive service should extract everything it can from the accumulators,
20+
whether or not software record generation is used.
21+
- This could be added later.
22+
23+
Implement a $time_ago, or $timespan tag (see email with Gary Roderick).
24+
- This could be added later.
25+
26+
Look at Gary's (?) changes to allow cron-like report generation.
27+
28+
Is max gap fraction meaningful for bar charts now?
29+
30+
Fix units in cmon to use kilo, mega, giga, tera?
31+
- scaling probably should be done in the plotting, not unit as types
832

933
Guard against database locks:
1034

@@ -33,3 +57,120 @@ Jul 30 08:55:22 hummingbird weewx[959]: **** File "/home/weewx/bin/weedb/
3357
Jul 30 08:55:22 hummingbird weewx[959]: **** self.connection.commit()
3458
Jul 30 08:55:22 hummingbird weewx[959]: **** OperationalError: database is locked
3559
Jul 30 08:55:22 hummingbird weewx[959]: **** Exiting.
60+
61+
62+
-------------------- DONE ---------------------------
63+
64+
Quick start guide
65+
(11/28/14 tk)
66+
67+
Test on redhat
68+
- rpm install and upgrade
69+
- extension installer
70+
Test on suse
71+
- rpm install and upgrade
72+
- extension installer
73+
(28nov14 mwall)
74+
75+
Move schemas to the extension that uses them.
76+
- this has always been the case for cmon, pmon, and forecast
77+
78+
Test new extension installer on debian
79+
(23nov14 mwall)
80+
81+
Test new setup.py on debian deb upgrades
82+
(23nov14 mwall)
83+
84+
Prompt for station-specific parameters
85+
(23nov14 mwall)
86+
87+
The station hardware configuration process could be improved.
88+
- Nowhere is it listed what driver to use.
89+
- Docs need to be updated with the new two-step process.
90+
- Perhaps the configuration routine could be made interactive? It would
91+
scan the "drivers" subdirectory and offer up the choices...
92+
(23nov14 mwall)
93+
94+
Include setup.py in the installation (also setup.cfg)
95+
(22nov14 mwall)
96+
97+
Document how to extend the unit system.
98+
- deferred documentation to see if we like it.
99+
(20nov14 tk)
100+
101+
Extending the accumulators
102+
- use the same strategy as the unit system
103+
- deferred documentation to see if we like it.
104+
(20nov14 tk)
105+
106+
Update the forecast service
107+
forecast is now working with the database structure
108+
(17nov14 mwall)
109+
110+
Add parameter max_delta to $current.
111+
(16nov14 -tk)
112+
113+
Strategy for extending units.
114+
(16nov14 -tk)
115+
116+
May need to update the guide on packaging an extension.
117+
modified the docs to match the new setup.py syntax
118+
(15nov14 mwall)
119+
120+
Update setup.py
121+
-- Rework deb installer to work with device snippets
122+
-- Give each driver option to modify driver stanza while updating weewx.conf
123+
-- the --configure option should modify station_type if successful
124+
(15nov14 mwall)
125+
126+
Update setup.py.
127+
-- Add configure keyword, with option --device=
128+
setup.py --configure [--driver=weewx.drivers.simulator]
129+
(14nov14 mwall)
130+
131+
Update skins: exfoliation amphibian simple
132+
Update drivers: owfs link fileparse
133+
Update services: cmon crt cwxn
134+
Put fileparse driver into extensions directory as driver example
135+
(14nov14 mwall)
136+
137+
Check existing extensions: basic xstats
138+
(13nov14 mwall)
139+
140+
Update services to use new database
141+
cmon pmon
142+
(13nov14 mwall)
143+
144+
Update setup.py.
145+
-- General update strategy for weewx.conf
146+
(11/13/14 by tk)
147+
148+
Update uploader extensions to use new database.
149+
emoncms mqtt owm seg thingspeak twitter wbug wcloud wetter windfinder xively
150+
(11/12/14 by Matthew)
151+
152+
Update Upgrading Guide.
153+
- explain how to migrate data from a v2 database to a v3 database
154+
- Changes in search list extensions
155+
156+
Verify that examples still work:
157+
alarm.py
158+
lowBattery.py
159+
xsearch.py
160+
(11/10/14. All are OK. I checked/updated them when updating the docs)
161+
162+
The table name is explicitly specified in the uploader database queries. E.g.,
163+
"SELECT SUM(rain), MIN(usUnits), MAX(usUnits) FROM archive WHERE dateTime>=? AND dateTime<=?"
164+
Does this matter?
165+
(11/11/14. Now substitutes the table name into the query string)
166+
167+
On startup, the log should indicate not only which binding is in use, but what
168+
it is bound to (sqlite or mysql).
169+
170+
Both tables archive_day_windSpeed and archive_day_wind exist.
171+
[11/11/14. Both now get updated. $day.wind.max and $day.windSpeed.max return the same thing]
172+
173+
I removed Appendix: Statistical types because it is no longer valid. But,
174+
it needs to be explained somewhere the difference between vector and scalar
175+
stats.
176+
[11/11/14. Added a section "Winds" to the Customizing Guide, explaining the differences.]

bin/daemon.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# -*- coding: iso-8859-1 -*-
22
#
3-
# $Revision$
4-
# $Author$
5-
# $Date$
3+
# $Id$
64
#
75
'''
86
This module is used to fork the current process into a daemon.

bin/examples/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
#
44
# See the file LICENSE.txt for your full rights.
55
#
6-
# $Revision$
7-
# $Author$
8-
# $Date$
6+
# $Id$
97
#
108
"""
119
Examples for customizing weewx

0 commit comments

Comments
 (0)