Comment on SupportedStations in wfrog

43 views
Skip to first unread message

wf...@googlecode.com

unread,
Nov 12, 2010, 7:06:24 AM11/12/10
to wfrog-a...@googlegroups.com
Comment by p...@massyn.net:

I'm not a Python user... What does it mean to add it to the PYTHONPATH
variable? How do I actually get pywws to work with wfrog? pywws works
fine at home, but I'd love to get wfrog going.

For more information:
http://code.google.com/p/wfrog/wiki/SupportedStations

wf...@googlecode.com

unread,
Nov 12, 2010, 7:58:19 AM11/12/10
to wfrog-a...@googlegroups.com
Comment by laurent.bovet:

Before starting wfrog, execute the following command:

{{{
export PYTHONPATH=/path/to/your/pywws/installation

wf...@googlecode.com

unread,
May 28, 2011, 8:20:56 AM5/28/11
to wfrog-a...@googlegroups.com
Comment by bjda...@gmail.com:

This fix doesn't work for me. I've exported the path as above, but I still
get this:

$ sudo wfrog

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 117, in run
self.station.run(gen, self.enqueue_event)
File "/usr/lib/wfrog/wfdriver/station/wh1080.py", line 45, in run
from pywws import WeatherStation
ImportError: No module named pywws

Any ideas?

Thanks

Laurent Bovet

unread,
May 28, 2011, 1:26:43 PM5/28/11
to wfrog-a...@googlegroups.com
This problem has been already reported, I am going to update the doc.

You have to run all as root

$ sudo su -
# export PYTHONPATH=/path/to/your/pywws/installation
# wfrog

wf...@googlecode.com

unread,
Jun 30, 2011, 5:42:25 PM6/30/11
to wfrog-a...@googlegroups.com
Comment by u...@familie-rathje.de:

Hello,

Two comments on WS1080:
- For correct values please review
http://groups.google.com/group/wfrog-users/browse_frm/thread/bcbfc4101b14535a?pli=1
- When there is no wind always east is stored as wind direction, not the
direction shown on the display

wf...@googlecode.com

unread,
Jun 30, 2011, 5:46:31 PM6/30/11
to wfrog-a...@googlegroups.com

wf...@googlecode.com

unread,
Jan 30, 2013, 11:34:56 PM1/30/13
to wfrog-a...@googlegroups.com
Comment by krr...@gmail.com:

Where do I find ./setup.py ?
Where I put library?

Needs third party ws28xx library (https://github.com/dpeddi/ws-28xx/).

Run sudo ./setup.py install to make it visible to wfrog.

wf...@googlecode.com

unread,
Feb 25, 2013, 8:57:33 AM2/25/13
to wfrog-a...@googlegroups.com
Comment by e...@depieri.net:

about ws28xx... that note was wrongly copied from ws2300...

for installation read README from github code.

wf...@googlecode.com

unread,
Sep 9, 2013, 10:01:12 AM9/9/13
to wfrog-a...@googlegroups.com
Comment by attana...@gmail.com:

Hi. I had to patch the ws2300 driver in order to make in work with the
http://ace-host.stuart.id.au/russell/files/ws2300/ library.

Hope that helps somebody.

{{{
--- /usr/lib/wfrog/wfdriver/station/ws23xx.py 2013-09-09 15:58:48.533311269
+0200
+++ /home/pi/wfrog-0.8.2/wfdriver/station/ws23xx.py 2011-03-13
21:02:26.000000000 +0100
@@ -49,8 +49,10 @@

import ws2300
print(dir(ws2300))
+
while True:
serialPort = ws2300.LinuxSerialPort(self.port)
+ serialPort.open()
try:
ws = ws2300.Ws2300(serialPort)
measures = [
@@ -62,12 +64,12 @@
ws2300.Measure.IDS["rh"],
ws2300.Measure.IDS["rt"],
ws2300.Measure.IDS["ws"],
- ws2300.Measure.IDS["wsh"],
+ ws2300.Measure.IDS["wsm"],
ws2300.Measure.IDS["w0"],
]
raw_data = ws2300.read_measurements(ws, measures)

- data = [ m.conv.binary2value(d) for m, d in zip(measures,
raw_data)]
+ data = [ m.conv.binary2value(d) for m, d in zip(measures,
data)]

finally:
serialPort.close()
Reply all
Reply to author
Forward
0 new messages