Commit Graph

636 Commits

Author SHA1 Message Date
Tom Keffer
b3c67be6c3 V2.0.0b14 2012-10-31 03:56:28 +00:00
Tom Keffer
e8fb490f80 Added horizon to the list of Observer attributes
Added example to match PyEphem's "Naval Observatory" example.
2012-10-31 03:43:40 +00:00
Tom Keffer
d7f38d5930 Added additional almanac information, such as first and last quarters. 2012-10-31 01:32:33 +00:00
Tom Keffer
6c4eadc54c Uses the wall clock to help determine whether DST is in effect or not.
Added ability to set the onboard clock on the Vantage.
V2.0.0b13
2012-10-30 19:03:15 +00:00
Tom Keffer
7243cb70fa Extended the mygenerator example. 2012-10-29 17:21:59 +00:00
Tom Keffer
77f87d00b6 Added description of the simulator to the documentation. 2012-10-29 12:53:30 +00:00
Tom Keffer
ba740bc6b2 Gave up on having the WMR100 return the current time. It's just too stupid.
V2.0.0b12
2012-10-29 01:35:29 +00:00
Tom Keffer
76903db599 Clarified the difference between the simulator start (seed) time and the resume time.
Got the sim test suite to work for average (still need min, max and wind related tests).
V2.0.0b11
2012-10-28 19:44:17 +00:00
Tom Keffer
94987b5d1c Added wind and rain to the simulator 2012-10-27 21:48:34 +00:00
Tom Keffer
67470f5010 Precondition that archive delay be greater than zero. 2012-10-27 15:32:59 +00:00
Tom Keffer
c4f329752a Continuing to refine the simulator, as well as the unittest for the accumulators. 2012-10-26 14:58:19 +00:00
Tom Keffer
51c82744b8 The engine now takes a configuration dictionary as its only argument (rather than parsed options). 2012-10-26 14:57:25 +00:00
Tom Keffer
345f2ef0c3 The VP driver no longer automatically starts the logger.
Can now start/stop the logger using the utility config_vp.
2012-10-26 13:28:40 +00:00
Tom Keffer
9f4bfee4aa v2.0.0b10 2012-10-25 12:55:31 +00:00
Tom Keffer
a394892b5a Clarified comments and docstrings. 2012-10-25 00:45:52 +00:00
Tom Keffer
bdb9666900 Updated service TestAccum.
Included a section in the customization guide on porting  to new hardware stations.
2012-10-25 00:20:14 +00:00
Tom Keffer
44ddc6da33 Launches reporting thread if a zombie thread is still alive.
V2.0.0b9
2012-10-24 21:30:49 +00:00
Tom Keffer
d16274fb37 If a reporting thread is still active, no longer launches a new one. This allows the simulator to be used in 'generator' mode.
Version 2.0.0b8
2012-10-24 18:05:18 +00:00
Tom Keffer
c76f8b287d Removed all references to time.time() to make way for the Simulator to run at any arbitrary start time. 2012-10-24 15:57:26 +00:00
Tom Keffer
f527c2e030 V2.0.0b7 2012-10-23 23:59:22 +00:00
Tom Keffer
8e4b33f278 Moved record_generation option to section [StdArchive] in weewx.conf
Now the wxengine always tries hardware record generation then falls back to software if that doesn't work.
2012-10-23 23:41:27 +00:00
Tom Keffer
300c8f0b19 V2.0.0b6
Fixed error in getSqlVectorsExtended that was accidentally introduced.
2012-10-21 00:39:15 +00:00
Tom Keffer
c60696a710 V2.0.0b5 2012-10-20 23:27:09 +00:00
Tom Keffer
99ca93fa27 Got test_templates working. 2012-10-20 20:22:57 +00:00
Tom Keffer
da3f8ac21f V2.0.0b4 2012-10-20 18:00:00 +00:00
Tom Keffer
ff284289b3 Got test_stats working again with the new Archive and StatsDb initializers. 2012-10-20 17:58:54 +00:00
Tom Keffer
b78d32b8ee Fixed bug where a SELECT statement using accumulation returns a result set with timestamp == NULL. 2012-10-20 13:21:06 +00:00
Tom Keffer
668ca00b7b Fixed bug in GenWithPeek 2012-10-20 13:19:50 +00:00
Tom Keffer
cc861da981 Finished over to the new Archive and StatsDb initializers. 2012-10-20 00:56:45 +00:00
Tom Keffer
2b5ea6cef0 better strategy for figuring out the stop time of an aggregation interval.
Updated test suite.
2012-10-19 16:07:27 +00:00
Tom Keffer
3e32925c64 Now avoids use of non-aggregated types in a SQL aggregation statement. In particular, it calculates the time of the end of an interval, rather than SELECTing it in the SQL statement. This was to work around different interpretations between sqlite and MySQL. 2012-10-19 02:04:29 +00:00
Tom Keffer
221a1a6444 Cleanly separated archive tests from stats tests.
Added more archive tests.
2012-10-18 02:05:16 +00:00
Tom Keffer
470304e082 changed name of test_dbs.py to test_archive.py 2012-10-18 01:42:13 +00:00
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