I don't know anything about socketlogger, but it looks like it has not been
ported to Python 3. Try running under Python 2.7

On Mon, Jul 6, 2020 at 11:19 PM richard effsec <[email protected]> wrote:

> Hello,
>
> I installed weewx with a WS1200 weatherstation. I used socketlogger to
> gather weather data using method 2 in
> https://obrienlabs.net/redirecting-weather-station-data-from-observerip/
> Ncat is working and I got readings at port 2999 like:
>
>
> outTemp=60.6,outHumidity=84,dewpoint=55.8,windchill=60.6,windDir=107,windSpeed=0.00,windGust=2.24,dailyrain=0.00,radiation=34.46,UV=1,inTemp=-9999,inHumidity=-9999,barometer=-9999,epoch=1594102395,txBatteryStatus=0
>
> outTemp=60.6,outHumidity=84,dewpoint=55.8,windchill=60.6,windDir=51,windSpeed=0.67,windGust=1.12,dailyrain=0.00,radiation=36.61,UV=1,inTemp=-9999,inHumidity=-9999,barometer=-9999,epoch=1594102422,txBatteryStatus=0
>
> Weewx does not pick up the information, the readings are like there is no
> connection to the weatherstation. The syslog shows that socketlogger.py has
> errors at line 67.
>
> Jul  6 23:21:47 raspberrypi systemd[1]: Starting LSB: weewx weather
> system...
> Jul  6 23:21:47 raspberrypi weewx[22535] INFO __main__: Initializing weewx
> version 4.1.1
> Jul  6 23:21:47 raspberrypi weewx[22535] INFO __main__: Using Python 3.7.3
> (default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]
> Jul  6 23:21:47 raspberrypi weewx[22535] INFO __main__: Platform
> Linux-4.19.118-v7+-armv7l-with-debian-10.4
> Jul  6 23:21:47 raspberrypi weewx[22535] INFO __main__: Locale is
> 'en_US.UTF-8'
> Jul  6 23:21:47 raspberrypi weewx[22535] INFO __main__: PID file is
> /var/run/weewx.pid
> Jul  6 23:21:47 raspberrypi weewx[22539] INFO __main__: Using
> configuration file /etc/weewx/weewx.conf
> Jul  6 23:21:47 raspberrypi weewx[22539] INFO __main__: Debug is 0
> Jul  6 23:21:47 raspberrypi weewx[22539] INFO weewx.engine: Loading
> station type SocketLogger (user.socketlogger)
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__: Caught
> unrecoverable exception:
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  invalid syntax (socketlogger.py, line 67)
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  Traceback (most recent call last):
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  File "/usr/share/weewx/weewxd", line 148, in main
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  engine = weewx.engine.StdEngine(config_dict)
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  File "/usr/share/weewx/weewx/engine.py", line 69, in __init__
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  self.setupStation(config_dict)
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  __import__(driver)
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  File "/usr/share/weewx/user/socketlogger.py", line 67
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  except (socket.error, socket.timeout, socket.herror), ex:
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>                                                    ^
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  SyntaxError: invalid syntax
> Jul  6 23:21:47 raspberrypi weewx[22539] CRITICAL __main__:     ****
>  Exiting.
> Jul  6 23:21:47 raspberrypi weewx[22523]: Starting weewx weather system:
> weewx.
>
> Does anybody know what this means and how to solve this?
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c7fc7ba0-91b0-4642-b32e-e2a881d3f724o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/c7fc7ba0-91b0-4642-b32e-e2a881d3f724o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBZKXgxJkvW86AzMD3Djesiaz%3Dv2%3DRsJAm-ayXKvLycsg%40mail.gmail.com.

Reply via email to