3912 Commits

Author SHA1 Message Date
Matthew Wall
0adef51d40 ensure correct behavior regardless of direction from which the entry point is invoked 2023-12-29 23:03:02 -05:00
Matthew Wall
0d07e52835 make the entry points work out-of-the-box for a run-from-source configuration 2023-11-24 08:07:23 -05:00
matthew wall
5ed504f56d make USER_ROOT explicit in the config file 2023-11-23 21:25:31 -05:00
Tom Keffer
6cd5dc91f6 Refactor, using 'src' instead of 'bin' to hold the source code.
wee_resources becomes weewx_data, and is put in version control.
The build documentation, as well as the 'user' subdirectory, are now
in it.

This allows weewxd to be run directly from the git repository for
two reasons: 1) the documentation does not have to be built first.
2) because the source code is now under 'src', while the 'user'
subdirectory is in weewx_data, weewxd does not accidentally pick
up the repository's version of the 'user' subdirectory.
2023-10-17 05:14:34 -07:00
Tom Keffer
b21602b56c Convert WEEWX_ROOT=/ to WEEWX_ROOT=/etc/weewx at runtime
Update TODO
2023-10-14 05:59:16 -07:00
Tom Keffer
a247c1c929 Added docstrings to many functions. 2023-10-13 18:23:13 -07:00
Tom Keffer
b5fe70ad8e Simplify implementation of get_object() 2023-10-13 16:32:33 -07:00
Tom Keffer
5f66fd6d90 Fix problem with time formatting. 2023-10-12 05:12:33 -07:00
Tom Keffer
2d7894315d Port to Python 12.
Change deprecated datetime.utcfromtimestamp() to
datetime.fromtimestamp().
2023-10-12 04:31:51 -07:00
Tom Keffer
4c961d3d41 v5.0.0b13 2023-10-09 08:40:03 -07:00
Tom Keffer
2c94d06640 Set the current working directory only once.
No need for each generator to set it.
2023-10-09 08:38:28 -07:00
Tom Keffer
644e830c99 If there is no WEEWX_ROOT, set a default.
Also, make sure it is an absolute path.
2023-10-09 08:34:34 -07:00
Tom Keffer
a38b83c741 Improve docstrings 2023-10-08 06:18:13 -07:00
Tom Keffer
73ca205b60 Fixed innumerable grammatical nits.
Thanks PyCharm.
2023-10-04 18:19:07 -07:00
gary
16635ab0bc fix handling of single element option lists 2023-09-23 21:02:37 +10:00
Tom Keffer
a325379461 v5.0.0b12 2023-09-20 09:17:20 -07:00
Tom Keffer
ba5e8b64fc Introduce abstract base class weedb.Cursor.
Improve docstrings for database module.
2023-09-20 09:15:27 -07:00
Tom Keffer
491e27547f No need to consult xtypes system if the type is in the database.
Improves performance by cutting the number of xtypes
calls (which are slow).

Fixes issue #890.
2023-09-20 08:59:18 -07:00
Tom Keffer
a0e0b1b35f Inject the parent of USER_DIR at the end of PYTHONPATH.
For legacy installs, the parent of USER_DIR is the same as the
location of the legacy source code. For example /home/weewx/bin.
Hence, the old code gets found.
2023-09-20 07:30:50 -07:00
Tom Keffer
2704d8458e Allow WEEWX-ROOT to be set by station create and reconfigure 2023-09-13 08:02:46 -07:00
Tom Keffer
bd1d3332b1 Allow --config option to be used by weectl device 2023-09-07 09:02:17 -07:00
Tom Keffer
f15f25c77c Merge remote-tracking branch 'origin/V5-lib' into V5 2023-09-04 12:10:47 -07:00
Tom Keffer
a4ec368a19 Introduce option retry_wait --- how long to wait before a retry 2023-09-04 12:00:01 -07:00
Tom Keffer
fc26ab7c17 Fix problem when creating a station using a relative path 2023-08-30 15:00:03 -07:00
Tom Keffer
f368b521a5 Fix potential crash when installing extension.
If one of the service groups was missing in the configuration file,
the extension installer would crash.

Fixes issue #886.
2023-08-30 12:38:13 -07:00
Tom Keffer
9ef6ffbddb v5.0.0b11 2023-08-30 12:36:54 -07:00
Tom Keffer
b259d3dd91 Tag suffix has_data() works for xtypes.
Fixes issue #877.
2023-08-30 12:11:36 -07:00
Tom Keffer
44789e36d4 Remove references to __future__ 2023-08-30 08:16:06 -07:00
Tom Keffer
c1b4a9c839 Simplify logic for installing extensions
Generalize logic. Allow other types besides skins and user files.
2023-08-29 16:25:41 -07:00
Tom Keffer
2482eebf8a Replace deprecated Image.ANTIALIAS
Fixes issue #884.
2023-08-22 11:49:38 -07:00
Tom Keffer
a08cbbf361 Allow calculating $trend when one of the two records is missing 2023-08-21 05:14:20 -07:00
Tom Keffer
a6c169fd65 Update humidex formula.
Update reference.

Fixes issue #883.
2023-08-16 14:27:18 -07:00
Tom Keffer
4568bbca42 Add docstrings for the simulator 2023-08-14 05:09:12 -07:00
Tom Keffer
c2fd221cec Update usage string for weewxd 2023-08-14 05:00:42 -07:00
Tom Keffer
09a92e5e0c Call super() without arguments
Python 3
2023-08-12 09:35:52 -07:00
Tom Keffer
6297bcf624 V5.0.0b10 2023-08-03 18:48:03 -07:00
Tom Keffer
dd24c6dd12 Remove wee_device 2023-08-03 18:45:04 -07:00
Tom Keffer
86005a7f75 Change documentation to use weectl device instead of wee_device 2023-08-03 17:21:22 -07:00
Tom Keffer
704b1c56f5 Convert wee_device to weectl device 2023-08-03 16:15:35 -07:00
gary
fe167f7c70 add missing kilowatt label 2023-07-30 09:05:05 +01:00
Tom Keffer
f431acd504 Change module name to database_actions 2023-07-28 04:48:27 -07:00
Tom Keffer
3ca794cb4e Remove wee_debug. 2023-07-27 14:07:15 -07:00
Tom Keffer
0907e6e752 Initial documentation of weectl debug 2023-07-27 13:56:23 -07:00
Tom Keffer
6852e8f430 Fix bug caused by no existing database
Refactor debug()

Obfuscate some more keys.

Use f-strings where possible.
2023-07-26 17:46:52 -07:00
Tom Keffer
52db4781a7 Pass option_dict on to get_aggregate()
Make sure first element of optional value is a float.

Fixes issue #881.
2023-07-26 12:27:26 -07:00
Tom Keffer
9861550fd9 Start migration of wee_debug to weectl debug 2023-07-25 08:13:18 -07:00
Tom Keffer
f4677f9699 Consistently use "station data" instead of "user data" 2023-07-19 18:38:06 -07:00
Tom Keffer
3d22889851 Remove wee_database and references to it 2023-07-19 15:27:56 -07:00
Tom Keffer
e6a00095ee Make meta variable names more generic 2023-07-19 12:31:30 -07:00
Tom Keffer
0938b18813 Import user extensions before running database utility 2023-07-19 12:29:56 -07:00