Commit Graph

153 Commits

Author SHA1 Message Date
Tom Keffer
2718866efb Do not fork if using systemd. PR #767. 2022-04-14 08:06:05 -07:00
Rich Bell
9530ab961a systemctl stop sends 2 SIGKILL signals 2022-04-11 15:00:32 -04:00
Rich Bell
ce07f7b454 remove systemd reload implementation 2022-04-11 14:02:13 -04:00
Matthew Wall
6a6cce7d07 handle multiple gettext in a line 2022-01-30 18:43:51 -05:00
Matthew Wall
c281c38ae5 handle multiple gettext in single line 2022-01-30 18:26:31 -05:00
Matthew Wall
ce486b198d weewx is the package, weewxd is the daemone itself 2022-01-27 12:51:32 -05:00
Matthew Wall
6fd9cdf9a0 added freebsd init file for 'service' init 2022-01-27 11:25:42 -05:00
Matthew Wall
a1c7a4dfe6 minor cleanup to i18n report invocation 2022-01-25 19:15:11 -05:00
Matthew Wall
8b9878a0ee provide more feedback 2022-01-25 17:37:11 -05:00
Matthew Wall
6c70d56661 report differences only if they exist 2022-01-25 16:52:26 -05:00
Matthew Wall
df5debe192 rename show-strings to i18n-report 2022-01-25 16:23:50 -05:00
Matthew Wall
df2c661288 improve the i18n reporting 2022-01-25 16:23:11 -05:00
Matthew Wall
72d5c06ab3 optionally specify a single language 2022-01-25 11:34:27 -05:00
Matthew Wall
9c108c1ded added translations for low, ok, unknown and sensor last contact 2022-01-24 17:51:17 -05:00
Matthew Wall
9f6927fb84 remove unused debugging print 2022-01-24 16:23:49 -05:00
Matthew Wall
46bba14193 simple tool to see which strings have been defined in a skin that has been translated 2022-01-24 15:39:47 -05:00
Matthew Wall
2bc69b1f0f fix typo in weewx-multi 2022-01-24 00:41:58 -05:00
Matthew Wall
56e5043b78 VERBOSE not working as intended, so remove it for now 2022-01-17 22:27:59 -05:00
Matthew Wall
732c184901 eliminate tabs. use VERBOSE consistently. use RETVAL consistently for script return, not just function returns. 2022-01-17 12:16:09 -05:00
Matthew Wall
3c44b8fb16 eliminate tabs 2022-01-17 12:13:31 -05:00
Matthew Wall
aa68caca08 clarify rsyslog syntax and the versions they go with 2022-01-17 11:49:07 -05:00
mwall
f32cda6cc2 added sample tmpfiles config file 2021-12-30 08:45:51 -05:00
mwall
5899d15327 fix invocation of start-stop-daemon so that running weewx as non-root user works without janky modifications 2021-12-30 08:44:40 -05:00
Kevin Locke
b3a24a5102 Add $WEEWX_PYTHON_ARGS for python arguments (#708)
Since arguments can no longer be passed to python in `$WEEWX_PYTHON`,
add `$WEEWX_PYTHON_ARGS` for passing [python options], as requested
in https://github.com/weewx/weewx/pull/706#issuecomment-947481005

[python options]: https://docs.python.org/3/using/cmdline.html#miscellaneous-options

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2021-10-22 05:41:34 -07:00
Kevin Locke
41516f1c6e Minor quoting and exec improvements to util/scripts (#706)
* improve quoting in util/scripts

* exec python from util/scripts
2021-10-20 04:31:25 -07:00
gjr80
0ee049ae78 include apache .conf files for apache 2.2 and 2.4 2021-08-05 11:09:53 +10:00
Matthew Wall
a3cf8c8fed davis serial is also using usb identifier ea61 (in addition to ea60) as of at least nov 2020 2021-04-19 14:40:08 -04:00
Tom Keffer
1b5667df98 Moved wmr200 udev rules to its extension. 2021-01-04 11:41:57 -08:00
John Kline
9740ca8376 cc3000 udev rule doesn't work on Raspbian. (#621) 2020-11-25 18:28:18 -08:00
gjr80
dc8e3d6392 - allow units used in .cat file to be specified
- add weathercat example import config to wee_import commenys
- update weathercat example config file
2020-05-12 15:31:53 +10:00
gjr80
3159e132c8 1st cut adding (re-adding) WeatherCat support to wee_import 2020-05-06 22:52:21 +10:00
Matthew Wall
b11b4f8f7a fix rc scripts to all respect /etc/default 2020-04-22 17:27:48 -04:00
Matthew Wall
28f524f1e2 include template default file. update rc scripts for redhat and suse to use default file with sane fallbacks. keep all environment variables in one default file. building on debian now requires python3-distutils instead of python2-setuptools. 2020-04-22 14:38:08 -04:00
gjr80
3ea517d180 Added support for a user defined field delimiter for CSV imports 2020-04-14 06:47:11 +10:00
Matthew Wall
eee1acd8aa forgot the wunderfixer 2020-04-11 09:54:08 -04:00
Matthew Wall
6c818dd84d added stubs for each weewx entry point 2020-04-11 09:53:38 -04:00
Tom Keffer
bbcb7efe0a Removed hard-coded python path from BSD init.d 2020-03-23 05:37:53 -07:00
yesjpm
816c5f2297 Update weewx.conf (#515) 2020-03-13 16:20:54 -07:00
Tom Keffer
ac1ab83cd4 Systemd type changed from "simple" to "forking". 2020-01-20 15:56:28 -08:00
John Kline
dfe31c2da6 Reimplement gen_records(), refactor command(), doc changes, logwatch changes. (#484)
* Robustness enhancements to cc3000 driver including py2/py3 support
cc300.py:
- changes to work on both py2/py3 (tested on both)
- change timeout to 1s (more not needed)
- retry commands when reading cmd echo times out (the signal of failure)
- use timeout of 20s for memory clear (which takes about 12s)
- various changes as assumptions of commands not currently correct (tried on 2 units)
- use weewx.wxformulas.calculate_rain for rain delta
- use weewx.crc16

engine.py:
- Failure to get time from driver is not treated as an error.

rsyncupload.py:
- Add timeout option.
- Change to allow single file to be rsynced.

util/logwatch/scripts/services/weewx:
- Changes to organize very detailed cc3000 output in logwatch reports.

* cc3000 driver cleanup and fixes

* rework genStartup, implement history-since, don't convert to unicode on py2

* fix typo

* fix typo

* Change logwatch script to match capitalization change in wxformulas.calculate_rain

* logwatch change to match engine.py log message change

* Another round of cleaning up the logwatch script.

* remove tabs in logwatch script

* Add missing commands.  Get running under debug=1 in PY3.

* A better _format_bytes.

* Make use of weeutil.y_or_n for prompting.

* rewrite function to download archive records, refactor command function

* minor changes to exec_cmd_with_retries, add all cmds to logwatch script

* Update comments.

* change/add comment
2019-12-29 16:15:13 -07:00
John Kline
1b67d896bc Cleanup of log messages in CC3000 driver. (#479)
* Robustness enhancements to cc3000 driver including py2/py3 support
cc300.py:
- changes to work on both py2/py3 (tested on both)
- change timeout to 1s (more not needed)
- retry commands when reading cmd echo times out (the signal of failure)
- use timeout of 20s for memory clear (which takes about 12s)
- various changes as assumptions of commands not currently correct (tried on 2 units)
- use weewx.wxformulas.calculate_rain for rain delta
- use weewx.crc16

engine.py:
- Failure to get time from driver is not treated as an error.

rsyncupload.py:
- Add timeout option.
- Change to allow single file to be rsynced.

util/logwatch/scripts/services/weewx:
- Changes to organize very detailed cc3000 output in logwatch reports.

* cc3000 driver cleanup and fixes

* rework genStartup, implement history-since, don't convert to unicode on py2

* fix typo

* fix typo

* Change logwatch script to match capitalization change in wxformulas.calculate_rain

* logwatch change to match engine.py log message change

* Another round of cleaning up the logwatch script.

* remove tabs in logwatch script
2019-12-27 04:42:39 -07:00
John Kline
829bc0ee59 Development (#478)
* logwatch change to match engine.py log message change
2019-12-26 18:53:09 -07:00
John Kline
47fd72ca08 Development (#477)
* Change logwatch script to match capitalization change in wxformulas.calculate_rain
2019-12-26 17:21:00 -07:00
John Kline
19980d32d3 Robustness enhancements to cc3000 driver including py2/py3 support (#474)
cc300.py:
- changes to work on both py2/py3 (tested on both)
- change timeout to 1s (more not needed)
- retry commands when reading cmd echo times out (the signal of failure)
- use timeout of 20s for memory clear (which takes about 12s)
- various changes as assumptions of commands not currently correct (tried on 2 units)
- use weewx.wxformulas.calculate_rain for rain delta
- use weewx.crc16

engine.py:
- Failure to get time from driver is not treated as an error.

rsyncupload.py:
- Add timeout option.
- Change to allow single file to be rsynced.

util/logwatch/scripts/services/weewx:
- Changes to organize very detailed cc3000 output in logwatch reports.
2019-12-20 08:09:00 -07:00
gjr80
b1c7db9478 Reworked CSV field map info in both Utilities Guide and example CSV import config file.
Addresses issue #425
2019-12-20 09:42:25 +10:00
tkeffer@gmail.com
05e3c5095e Deleted Pipfile. Too much trouble. 2019-12-11 18:22:03 -07:00
gjr80
ff3065de45 Updated WU import config comments/example to reflect usage of WU API
Minor comment updates
2019-09-18 09:51:35 +10:00
tkeffer@gmail.com
c6ff6edadf Plist for the Mac launcher now includes a log file for stderr. 2019-09-02 15:45:31 -07:00
Tom Keffer
ac93649e95 Catch up merge of branch 'development' into branch 'python3'.
This includes wdimport stuff.

# Conflicts:
#	bin/weeimport/weeimport.py
#	bin/weeimport/wuimport.py
2019-03-11 09:26:49 -07:00
Tom Keffer
12bd590849 Added piwheels source for pip files. 2019-02-25 06:16:57 -08:00