Comments (7)
You haven't said what you're running it on, but I assume a Raspberry Pi. The Pi's USB implementation has been buggy in the past, so make sure you've updated the firmware and operating system. Another thing you can try is putting a USB hub between the Pi and the weather station, or trying a different hub if you already have one.
from pywws.
Thank you for the fast answer. Yes .. i use an raspberry. And all the things you recommend i have checked :0( Same Error.
from pywws.
Is there an command to write only one livelog in the livedata.log .. not as a loop
from pywws.
The pywws-hourly command will fetch all data since it was last run, process it and then exit. Despite its name it can be run at 15 minute intervals (if you have a 5 minute logging interval).
Pi USB problems are discussed here: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=53832. The 'dwc_otg.fiq_split_enable=0' solution may help.
from pywws.
By the way: This only seems to apply to the original Raspberry Pi. I have the RasPi 2 and never had any problems with USB devices at all. My dad has the RasPi 3 with the WH1080 connected to it and there also were no problems for now.
from pywws.
Hey everyone,
On a completely separate project running a RPi3 I also encountered this problem. In my case, the solution was to explicitly specify the timeouts when reading or writing, particularly for the latter: self.epout.write(arraytosend, 10000)
Regards
from pywws.
I recently bought a Pi Zero W and ran into this problem. After some investigation I discovered that the time outs only happen after about five seconds or more USB inactivity, i.e. when pywws "pauses" as it knows there won't be any new data for another 48 seconds.
I surmised that the Zero's OTG port was temporarily switching from "host" to "peripheral" mode. I cured the problem by editing /boot/config.txt
and adding dtoverlay=dwc2,dr_mode=host
at the end. There's more info about these "overlays" in /boot/overlays/README
.
from pywws.
Related Issues (20)
- WH1080 suddenly fires alarms HOT 5
- version 21.3.0 is crashing after clocks change HOT 5
- pytz dependancy but not explicitly listed HOT 14
- 70.8mm of rain, turned into 7.8mm in pywws HOT 5
- mqtt is missing records HOT 1
- Feature request for mqtt: discovery for Home Assistant HOT 1
- Talk weather HOT 3
- pywws.livelog crashed with math domain error. Impossible to relaunch. HOT 1
- No 'rain' processing should occur if old status is 'lost connection' HOT 2
- Twitter Posting HOT 6
- new version of paho-mqtt breaks mqtt messaging within pywws HOT 2
- error processing hourly HOT 2
- can't run logdata - weather station issue?
- SQLite storage optimisation HOT 5
- libusb HOT 1
- [feature] Improve detection of WS3080 HOT 5
- logdata.py: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' HOT 3
- Enhancement - check for excessive change in temp_out HOT 4
- Problem to run weatherstation.py "No USB libary found" HOT 14
- Can't change station read period HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywws.