weewx keeps logging while log success and log failure is set to false

96 views
Skip to first unread message

f4n...@gmail.com

unread,
Mar 4, 2022, 4:20:55 AM3/4/22
to weewx-user
log_success = False
log_failure = False

Restarted the according weewx instance "weewx-interceptor" multiple times but it keeps logging:

Mar  4 10:08:21 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 2.72 seconds
Mar  4 10:08:23 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO weewx.imagegenerator: Generated 13 images for report SeasonsReport in 2.39 seconds
Mar  4 10:08:23 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx_interceptor
Mar  4 10:08:25 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO weewx.reportengine: ftpgenerator: Ftp'd 19 files in 1.91 seconds
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter wswarning=False
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter heatindexf=31.7
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter sunhours=0.07
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter tswarning=False
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter leakwarning=False
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter ptrend1=1
Mar  4 10:08:50 raspi-wsdi1b weewx-weewx-interceptor[6388] INFO user.interceptor: unrecognized parameter windchillf=35.4

and so on...

Did I overlook something?

And question: Will this logs write to sd card with every log? 

Tom Keffer

unread,
Mar 4, 2022, 8:01:12 AM3/4/22
to weewx-user
In the process of internationalizing the skins, it looks like the effect of setting the global log_success got lost. I'll fix that.

In the meantime, you can change the log_success under [StdReport]:

[StdReport]

    log_success = False

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a363f4af-49c2-4acf-b38f-d82f33809d86n%40googlegroups.com.

Tom Keffer

unread,
Mar 4, 2022, 8:52:19 AM3/4/22
to weewx-user

f4n...@gmail.com

unread,
Mar 4, 2022, 10:28:00 AM3/4/22
to weewx-user
Thanks a lot

f4n...@gmail.com

unread,
May 4, 2023, 12:22:27 AM5/4/23
to weewx-user
I updated weewx but the skin stayed on 4.6.2 so I still have this problem even with log_success set to False.
How can I update the skin file while keeping its settings? Do I need to upgrade the interceptor driver too?

Even with 100 MB ram set as log partition, the syslog gets full quite fast and until now I didn't get logrotate to work correctly. I just had to copy the whole system to a new microSD as the old one got trashed in about a year and didn't boot up anymore. So I really have to eliminate any unneeded writes to storage. (Maybe 4 instances @ 1min report/ftp interval was just taking its toll on the microSD anyway, I wonder how long the new long endurance microSD will last...)

vince

unread,
May 4, 2023, 1:45:31 PM5/4/23
to weewx-user
Updated to which version of weewx ?  And which skin are you referring to ?  And what do your logs showing 'this problem' you still have look like now ?

Interceptor hasn't been updated in almost 3 years so updating that likely will not help.

Looking at the interceptor code and your original message it seems to me that you have at least two easy options:
  • (1) make the 'unrecognized parameter'(s) be ignored
  • (2) make them not be typically logged
For the first option, you can edit the driver (save a copy first) around line 1342 in interceptor.py and add the various ones you see logged as unrecognized to the list of labels the driver will ignore. Then it shouldn't log when it sees those.

Look for this block for where to add more labels for the driver to ignore...

IGNORED_LABELS = [ 'ID', 'PASSWORD', 'dateutc', 'softwaretype', 'action', 'realtime', 'rtfreq', 'weather', 'clouds', 'windspdmph_avg2m', 'winddir_avg2m', 'windgustmph_10m', 'windgustdir_10m', ]


For the second option you could up the logging severity needed to log unrecognized parameters to begin with.   There are 4 places where you will see code that looks like:
loginf("unrecognized parameter %s=%s" % (n, data[n]))
Change each of them to use 'logdbg' rather than the 'loginf' it reports now and unless you have weewx.conf setting debug=1 it should not log those messages any more.

If you have a good list of which parameters it's logging the first option is probably best, but the second option requires less thinking to do.



Reply all
Reply to author
Forward
0 new messages