Hi,

Can't help with your power cycle/port problem but probably best if you 
start a new thread; your problem has nothing to do with the subject of this 
thread.

Gary

On Tuesday, 21 May 2019 19:50:13 UTC+10, Nick wrote:
>
> Good morning all, 
>
> A little help if you please. 
>
> I am running the latest version of wseewx on a centos 7 system 
>
> uname -a provides 
>
> <code> 
> Linux bragi 4.4.108-1.el7.elrepo.x86_64 #1 SMP Mon Dec 25 09:55:39 EST 
> 2017 x86_64 x86_64 x86_64 GNU/Linux 
> </code> 
>
> The install is in /bin/weewxd 
>
> I have a d-link DUB-H7 to which the w/s is connected. 
>
> It hangs ... :-( but the error is not quite that in the wiki - I don't 
> see the 
> "could not detach kernel driver from interface 0: No data available" 
>
> I do get: 
>
> <code> 
> May 20 07:02:50 bragi weewx[26340]: fousb: get_observations failed: 
> [Errno 110] Operation timed out 
> May 20 07:03:35 bragi weewx[26340]: fousb: get_observations failed: 
> [Errno 110] Operation timed out 
> May 20 07:04:20 bragi weewx[26340]: fousb: get_observations failed: 
> [Errno 110] Operation timed out 
> May 20 07:05:05 bragi weewx[26340]: fousb: get_observations failed: 
> [Errno 110] Operation timed out 
> May 20 07:05:05 bragi weewx[26340]: engine: Main loop exiting. Shutting 
> engine down. 
> May 20 07:05:05 bragi weewx[26340]: engine: Shutting down StdReport thread 
> May 20 07:05:05 bragi weewx[26340]: engine: Caught WeeWxIOError: Max 
> retries exceeded while fetching observations 
> May 20 07:05:05 bragi weewx[26340]:    ****  Waiting 60 seconds then 
> retrying... 
> May 20 07:05:34 bragi systemd: Started Multi-router Traffic Grapher. 
> May 20 07:06:05 bragi weewx[26340]: engine: retrying... 
> May 20 07:06:05 bragi weewx[26340]: engine: Using configuration file 
> /etc/weewx/weewx.conf 
> May 20 07:06:05 bragi weewx[26340]: engine: Loading station type 
> FineOffsetUSB (weewx.drivers.fousb) 
> May 20 07:06:05 bragi weewx[26340]: fousb: driver version is 1.9 
> May 20 07:06:05 bragi weewx[26340]: fousb: power cycling enabled for 
> port 4 on hub 001:006 
> May 20 07:06:05 bragi weewx[26340]: fousb: polling mode is PERIODIC 
> May 20 07:06:05 bragi weewx[26340]: fousb: polling interval is 60 
> May 20 07:06:05 bragi weewx[26340]: fousb: found station on USB bus= 
> device= 
> May 20 07:06:05 bragi weewx[26340]: engine: StdConvert target unit is 0x1 
> May 20 07:06:05 bragi weewx[26340]: wxcalculate: The following values 
> will be calculated: barometer=software, windchill=software, 
> dewpoint=software, appTemp=prefer_hardware, rainRate=prefer_hardware, 
> windrun=prefer_hardware, heatindex=prefer_hardware, 
> maxSolarRad=prefer_hardware, humidex=prefer_hardware, 
> pressure=prefer_hardware, inDewpoint=prefer_hardware, 
> ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware 
> May 20 07:06:05 bragi weewx[26340]: wxcalculate: The following 
> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS 
> May 20 07:06:05 bragi weewx[26340]: engine: Archive will use data 
> binding wx_binding 
> May 20 07:06:05 bragi weewx[26340]: engine: Record generation will be 
> attempted in 'software' 
> May 20 07:06:05 bragi weewx[26340]: engine: Using archive interval of 
> 300 seconds (software record generation) 
> May 20 07:06:05 bragi weewx[26340]: engine: Using binding 'wx_binding' 
> to database 'weewx.sdb' 
> May 20 07:06:05 bragi weewx[26340]: manager: Starting backfill of daily 
> summaries 
> May 20 07:06:05 bragi weewx[26340]: restx: StationRegistry: Station will 
> be registered. 
> May 20 07:06:05 bragi weewx[26340]: restx: Wunderground-PWS: Data for 
> station INORFOLK21 will be posted 
> May 20 07:06:05 bragi weewx[26340]: restx: PWSweather: Posting not 
> enabled. 
> May 20 07:06:05 bragi weewx[26340]: restx: CWOP: Posting not enabled. 
> May 20 07:06:05 bragi weewx[26340]: restx: WOW: Posting not enabled. 
> May 20 07:06:05 bragi weewx[26340]: restx: AWEKAS: Posting not enabled. 
> May 20 07:06:05 bragi weewx[26340]: engine: Starting up weewx version 
> 3.9.1 
> May 20 07:06:20 bragi weewx[26340]: fousb: get_records failed: [Errno 
> 110] Operation timed out 
> May 20 07:07:05 bragi weewx[26340]: fousb: get_records failed: [Errno 
> 110] Operation timed out 
> May 20 07:07:50 bragi weewx[26340]: fousb: get_records failed: [Errno 
> 110] Operation timed out 
> May 20 07:08:35 bragi weewx[26340]: fousb: get_records failed: [Errno 
> 110] Operation timed out 
> May 20 07:08:35 bragi weewx[26340]: engine: Main loop exiting. Shutting 
> engine down. 
> May 20 07:08:35 bragi weewx[26340]: engine: Caught WeeWxIOError: Max 
> retries exceeded while fetching records 
> May 20 07:08:35 bragi weewx[26340]:    ****  Waiting 60 seconds then 
> retrying... 
> May 20 07:09:35 bragi weewx[26340]: engine: retrying... 
>
>
> ... 
> </code> 
>
> There is no mention of trying to power cycle the hub/port, and it fails 
> to restore the function. 
>
> If I use the uhubctl I can turn ports on & off at will, but the python 
> version I get a type error ... ? 
>
> <code> 
> ./usb_control-0.6.py 
> Traceback (most recent call last): 
>   File "./usb_control-0.6.py", line 191, in <module> 
>     main() 
>   File "./usb_control-0.6.py", line 188, in main 
>     scan() 
>   File "./usb_control-0.6.py", line 73, in scan 
>     print "device at %s:%03d" % (bus.dirname, dev.devnum) 
> TypeError: %d format: a number is required, not NoneType 
>
> </code> 
>
> The default python version is 2.7 (yum fails under any other version - 
> another issue to fix ? - I 'hate' centos but it is what works with the 
> Wx satellite Rx stuff). 
>
> Ideas? 
>
> If you need more infor - ask 
>
> Regards 
>
> Nick 
> M0HGU 
> -- 
> What your soldier wants 
> -- really, really wants -- is no-one shooting 
> back at him. 
> (alt.fan.pratchett) 
> 10:35:01 up 23 days, 13:54, 10 users, load average: 0.42, 0.49, 0.55 
>
>

-- 
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/32334601-dc77-46cf-8823-1da72652f2bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to