On 4 November 2016 at 01:42, J.L. Blom <[email protected]> wrote:

>
> Glenn,
> Tanks for your reply.
> The most remarkable thing happened. I was running weewxd and did a
> /etc/init.d/weewx status and it showed a lot of old starts but not the
> running weewxd.
> Next I killed weewxd and the started the stansard way:
> ____________________
> joep@kangoo:~ $ sudo kill -9 2303
>

That's likely to be your problem there.
kill -9 is a good way of getting weewx to stop instantly - it's the same as
a head shot. Trouble with that is there is no chance for weewx to pack its
bags, tidy the room and generally exit gracefully, which means there's a
mess left behind to clean up. PID files, uncompleted processess.

kill -15 is a little cleaner, it allows weewx to pack its bags, clean up
and exit stage left. But it still doesn't play well (or vice versa) with
init.d scripts

They do their jobs well. But if you do use them, then expect some
unpredictable results (keyword being unpredictable) - one of them being
that /etc/init.d/weewx start won't necessarily start up again. weewx start
will say it has indeed started but as you've found it's just a hollow
message.

If you use the kill command. The fix is to run* /etc/init.d.weewx stop*
before you do the */etc/init.d/weews start  *(or simply run */etc/init.d/weewx
restart*) That at least cleans up the stale PID file, something else might
be left confused but weewx will more than likely clean that up.

The same logic applies for systemd (service / systemctl)



> [...]




>
> Another annoying problem is that the gauge generator generates 104 lines
> with
> "GaugeGenerator: Cannot decode reading of 'None' for gauge 'windDir'" but
> then it gave a reading followed by another run of the error message.
> I think it is a bug somewhere but it inflates the log file to no use.
> Do you know how to get rid of this?
>


No. I don't have the fix but I agree that it was annoying. I think it was
when I was road testing the Bootstrap skin.




Cheers
 Glenn

rorpi - read only raspberry pi + weewx: now with scripts
<https://github.com/glennmckechnie/rorpi-raspberrypi>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to