[weewx-user] MQTT extension

2017-12-28 Thread Daniel Jönsson
Hi, I've just installed the MQTT extension ( https://github.com/weewx/weewx/wiki/mqtt) to get my readings into my home automation system (Home Assistant) and it works perfect! But I have a question about the topics sent. But I would like to have the total amount of rain the last 7 days. Not rain

[weewx-user] Re: logrotate

2017-12-28 Thread Daniel Jönsson
either > > > > On Wednesday, 13 December 2017 16:58:01 UTC+2, Daniel Jönsson wrote: > >> Sorry, I meant syslog, as I also wrote in the first post. >> >> >> Den onsdag 13 december 2017 kl. 15:36:53 UTC+1 skrev Andrew Milner: >>> >>> My logrotat

[weewx-user] Re: logrotate

2017-12-13 Thread Daniel Jönsson
op > /etc/init.d/rsyslog start > > > On Wednesday, 13 December 2017 15:56:42 UTC+2, Daniel Jönsson wrote: > >> I understand. I am only familiar with Debian/Ubuntu so I can not help you >> with that. >> And to me it seemed strange. Some times you restart/reload

[weewx-user] Re: logrotate

2017-12-13 Thread Daniel Jönsson
: > > On Wednesday, December 13, 2017 at 4:36:01 AM UTC-5, Daniel Jönsson wrote: >> >> In this logrotate example you are restarting rsyslog postrotate!! Why? >> > > restarting rsyslog is probably not necessary for the most recent operating > systems. > > i found

[weewx-user] logrotate

2017-12-13 Thread Daniel Jönsson
Hello! Seen there is a Issue on Github about the excessive logging from weewx I have been discussing in another thread. Until then I am filtering out all messages from rsyslog to a separate log file as suggested. But when adding a logrotate I noticed something strange in weewx/util/logrotate.

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-12-07 Thread Daniel Jönsson
w > one to pinpoint and spot possible issues caused by situations which do not > necessarily result in weewx stopping - weewx is very reliable and rarely, > if ever, crashes without recovering itself and there being no need for > manual intervention. > > > > On Thursday, 7

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-12-06 Thread Daniel Jönsson
it easier to see if weewx > is running normally or if it has stopped (as in the case of an obscure bug > that did not cause an error message) - although I accept that that could be > determined from examination of the database. > > > On Wednesday, 6 December 2017 21:29:25 UTC+2, Dani

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-12-06 Thread Daniel Jönsson
e.StdQC, weewx.wxservices.StdWXCalculate archive_services = weewx.engine.StdArchive restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS report_services = weewx.e

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-12-06 Thread Daniel Jönsson
27; Dec 6 19:51:03 server weewx[30571]: manager: added record 2017-12-06 19:51:00 CET (1512586260) to daily summary in 'weewx' How could this be considered "normal but significant condition" as per RFC 5424? Den onsdag 6 december 2017 kl. 10:48:14 UTC+1 skrev Daniel Jöns

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-12-06 Thread Daniel Jönsson
7 server weewx[30571]: genimages: Generated 6 images for SmallImages in 0.33 seconds Den fredag 24 november 2017 kl. 01:08:09 UTC+1 skrev mwall: > > On Wednesday, November 22, 2017 at 3:02:53 AM UTC-5, Daniel Jönsson wrote: >> >> >> This was exactly how I understood it to be whe

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-11-22 Thread Daniel Jönsson
ember 21, 2017 at 4:36:10 PM UTC-5, Daniel Jönsson wrote: >> >> I cant seem to get it to work. And I cant find it in the user guide ( >> http://www.weewx.com/docs/usersguide.htm) were to put it. >> I would also very much like to only have errors in my log. >>> >

[weewx-user] Re: Limiting weewx logging only to error/fail

2017-11-21 Thread Daniel Jönsson
I cant seem to get it to work. And I cant find it in the user guide (http://www.weewx.com/docs/usersguide.htm) were to put it. I would also very much like to only have errors in my log. Den torsdag 14 april 2016 kl. 00:42:38 UTC+2 skrev mwall: > > On Wednesday, April 13, 2016 at 12:00:49 PM UTC-4

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-11 Thread Daniel Jönsson
In fact it was a systemd problem. I solved by using the service file you provided. Before I tried whit one I googled. The line missing in my own service file was: PIDFile=/var/run/weewx.pid I'm also new on systemd. But I remember reading something about "problems" about handling pid and the impo

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-11 Thread Daniel Jönsson
Today I updated some packages on the server. Some of them was systemd updates. And after that I get different errors when trying to start weewx with systemd.And it differs from time to time. I tried three times now to start and all three times I got a different error. Still there is no problem s

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
It looks like I have two libusb 0.1.12-28 and 1.0.20-1. pyusb is 1.0.0~b2-2 And yes. Locale is sv_SE.UTF-8 It has been working flawless on this machine for more than a year. This error started when I did a upgrade from Ubuntu 14.04 to 16.04. -- You received this message because you are subscri

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
The log above is when trying to start the demon with the Upstart script (through systemd). If I start a terminal and switch to root and then try start the demon with the exact same exec then it works, and I get this in my log: Nov 8 16:32:49 server weewx[9408]: engine: Initializing weewx versio

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
OK. Here is the result: Nov 8 16:23:17 server systemd[1]: Started weewx weather system. Nov 8 16:23:17 server weewx[8224]: engine: Initializing weewx version 3.6.1 Nov 8 16:23:17 server weewx[8224]: engine: Using Python 2.7.12 (default, Jul 1 2016, 15:12:24) #012[GCC 5.4.0 20160609] Nov 8 16

[weewx-user] Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
Hi, Last week I upgraded my Ubuntu on my server from 14.04 to 16.04. And after the upgrade I can't start weewx on boot any more. I have tried both whit upstart script and systemd. I've tried waiting after the boot is totatally completed and then "sudo /etc/init.d/weewx start" or "*sudo systemct