Commit Graph

603 Commits

Author SHA1 Message Date
Tom Keffer
36ffa28fa4 Simplified initializers for StatsDb and Archive.
Working on test suites for the two.
2012-10-18 01:40:30 +00:00
Tom Keffer
f90118e145 Started on weedb test suites. 2012-10-17 02:27:46 +00:00
Tom Keffer
fa93706160 Moved the weedb.py logic into the package weedb. 2012-10-16 22:54:56 +00:00
Tom Keffer
ca58e15cf7 Renamed db to weedb 2012-10-16 22:53:11 +00:00
Tom Keffer
1498be4f4e Working on changing open on archive and stats databases. 2012-10-16 17:02:28 +00:00
Tom Keffer
50d70c4b70 Deleted unneeded tree in the debian subdirectory. 2012-10-16 13:09:52 +00:00
Tom Keffer
110ac91349 Corrected heating degree-day example. 2012-10-16 13:08:49 +00:00
Tom Keffer
570269e515 Added dayRain, hourRain, totalRain to obs_group_dict, so they come out in the right units (even though they are not generally stored in the database). 2012-10-16 01:14:36 +00:00
Tom Keffer
d24f2ae506 Fixed error where try block did not capture a usb.USBError. 2012-10-15 22:14:02 +00:00
Tom Keffer
047f647216 V2.0.0b3 2012-10-14 19:27:41 +00:00
Tom Keffer
92f9b625bd Updated documentation with information on reconfiguring the databases. 2012-10-14 19:13:37 +00:00
Tom Keffer
a09b4ea96d Added the ability to change unit system to the utility config_database.py 2012-10-14 16:26:03 +00:00
Tom Keffer
3c89e2ab7b Alphabetized options. 2012-10-13 16:09:25 +00:00
Tom Keffer
dc5ca33b98 Added generator wrapper GenWithConvert.
Added default formatting and label for mmHg.
Tidied up some examples.
2012-10-13 15:40:32 +00:00
Tom Keffer
4991ef5fa3 Added conversion test for mmHg 2012-10-13 01:24:29 +00:00
Tom Keffer
5ce1341e2c Added formatting and labeling options for mmHg. 2012-10-12 23:14:59 +00:00
Tom Keffer
6f4f5f6346 Now checks to make sure any incoming records use the same unit system as the database. 2012-10-12 22:54:19 +00:00
Tom Keffer
39c17ef1de No longer logs an error when a socket exception is thrown while flushing the input buffer. 2012-10-12 22:07:03 +00:00
Tom Keffer
3b542b3fed V2.0.0b2 2012-10-12 01:53:33 +00:00
Tom Keffer
f88fb8002c Broke out the main loop engine so it can be invoked programmatically, not just from the command line. 2012-10-12 01:33:49 +00:00
Tom Keffer
67f22e5d16 Ported test_template to V2. 2012-10-12 01:18:31 +00:00
Tom Keffer
9246292550 Now tests wind stats as well.
Added 'rms' property to wind accumulators.
2012-10-11 23:55:54 +00:00
Tom Keffer
66f694a83d gen_fake_data and test_stats now use the new weedb database. 2012-10-10 21:39:55 +00:00
Tom Keffer
557747c555 stats.backfill is now a member function 2012-10-10 21:39:12 +00:00
Tom Keffer
e80da8333e Changed response strategy. 2012-10-10 15:36:49 +00:00
Tom Keffer
8f6c2cec7d Added version number dependencies 2012-10-09 15:41:29 +00:00
Tom Keffer
ecb0f1acea Started the process of creating a Debian package. 2012-10-06 17:47:18 +00:00
Tom Keffer
b060396fde Changed hardware reference from WMR100N to the more generic WMR-USB 2012-10-05 23:56:02 +00:00
Tom Keffer
82b5815032 Added #encoding UTF-8 directive to the top of the Cheetah template files. 2012-10-05 14:53:00 +00:00
Tom Keffer
97c817ad34 stats.backfill now prints out a progress report, useful when a lot of archive records are being processed. 2012-10-05 01:21:15 +00:00
Tom Keffer
59c4df2111 Now passes in the configuration dictionary itself, instead of just its path, to the report engine.
Got reconfigure database working.
V2.0.0b1
2012-10-04 19:11:52 +00:00
Tom Keffer
ab760ee280 Send command START on start up. 2012-10-04 15:24:16 +00:00
Tom Keffer
f39c2b55c4 RESTful now works with MySQL.
V2.0.0a9
2012-10-03 13:49:22 +00:00
Tom Keffer
382b05eaee Default transaction isolation level set to READ UNCOMMITTED for MySQL. 2012-10-03 13:44:55 +00:00
Tom Keffer
9d2be2a458 Connections now offer a begin() function for beginning a transaction.
Connections now have a property 'dbtype' holding the type of database.
2012-10-03 01:24:36 +00:00
Tom Keffer
5b6049768f Fixed import error. 2012-10-03 01:23:14 +00:00
Tom Keffer
7b4a9c3328 firstGoodStamp and lastGoodStamp now return None if there is no data in the archive.
Made function parameters for getSql more consistent with DBAPI. That is, SQL arguments are now passed in as a tuple.
2012-10-03 01:21:44 +00:00
Tom Keffer
7eb79e5fc6 The RESTful driver can now be located anywhere, not just in the file weewx/restful.py 2012-10-02 13:43:29 +00:00
Tom Keffer
b889ba2ed1 Changed variable 'station' to the more meaningful 'protocol' 2012-10-02 13:33:52 +00:00
Tom Keffer
72822f6860 Now can use databases in units other than US.
Broke out the transport mechanism for CWOP into a separate method, sendRecord(),
making it easy to override.
2012-10-02 13:25:42 +00:00
Tom Keffer
8a5ed01bf5 Updated documentation.
Updated examples.
V2.0.0a8
2012-10-01 22:53:47 +00:00
Tom Keffer
9acb334dbd Now catches MySQL operational error when doing a cursor execute. Waits 2 minutes, then restarts.
V2.0.0a5
2012-10-01 19:17:44 +00:00
Tom Keffer
930ba20d8c V2.0.0a5 2012-10-01 18:14:10 +00:00
Tom Keffer
9b6bf82d8b Pushed logic for retrieving information from the station hardware to class station.StationInfo. 2012-10-01 17:33:11 +00:00
Tom Keffer
7411db5ef5 First pass at updating the user's guide. 2012-10-01 13:46:46 +00:00
Tom Keffer
08d78e8ce2 Switched from argparse back to optparse. 2012-09-30 22:55:51 +00:00
Tom Keffer
ee0a3f3936 Fixed problem merging a config file that uses interpolation. 2012-09-30 15:44:05 +00:00
Tom Keffer
e7a5f83046 Fixed problems where a sqlite thread got passed across a thread boundary.
v2.0.0a4
2012-09-30 14:51:58 +00:00
Tom Keffer
4fef1ea525 Changed device names from WMR100 to the more generic WMR-USB 2012-09-30 01:35:23 +00:00
Tom Keffer
11f1da3531 Updated config_database
V2.0.0a3
2012-09-29 23:10:10 +00:00