Template Variables

1,786 views
Skip to first unread message

pingu

unread,
Jan 6, 2012, 5:22:47 PM1/6/12
to pywws
I am hoping to use one of the soon to be released Raspberry_PI units
to access the data on my weather station and upload to my web site.
Very small and low power fits the bill. So I am working with virtual
box running Debian to test the software.

Being new to pywws, I was looking for an index of all variable names
that can be used in the templates and access each of the processed txt
files ( raw/hourly/daily and monthly) which are being generated
successfully. Is there such a document. The nearest I have found is
pywws.Template.html, which gives some useful instructions, but not all
the potential #variable names# for each txt file.
Any help appreciated
See the Raspberry_PI at http://www.raspberrypi.org/

Jim Easterbrook

unread,
Jan 8, 2012, 5:05:59 AM1/8/12
to py...@googlegroups.com
On 06/01/12 22:22, pingu wrote:
> I am hoping to use one of the soon to be released Raspberry_PI units
> to access the data on my weather station and upload to my web site.
> Very small and low power fits the bill. So I am working with virtual
> box running Debian to test the software.

Interesting. Could be a very interesting platform.

> Being new to pywws, I was looking for an index of all variable names
> that can be used in the templates and access each of the processed txt
> files ( raw/hourly/daily and monthly) which are being generated
> successfully. Is there such a document. The nearest I have found is
> pywws.Template.html, which gives some useful instructions, but not all
> the potential #variable names# for each txt file.
> Any help appreciated

There isn't a documented list (it would soon be out of date!) but you
can see them all in DataStore.py (line 361 onwards).
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Mark Crossley

unread,
May 24, 2012, 1:04:06 PM5/24/12
to py...@googlegroups.com
My turn has come up so I've just put my order in for a 'Pi', it seems there is libusb support, so any other gotcha's anyone can foresee?

Indeed anyone got pywws working on a Pi yet?

Cheers
Mark

Mark Crossley

unread,
May 24, 2012, 1:07:54 PM5/24/12
to py...@googlegroups.com
Ah, just found this discussion, it looks like there may be some USB packet loss issues that need ironing out...


Would pywws cope with the odd lost packet?

Mark

Jim Easterbrook

unread,
May 24, 2012, 1:17:00 PM5/24/12
to py...@googlegroups.com
On 24/05/12 18:07, Mark Crossley wrote:
> Ah, just found this discussion, it looks like there may be some USB
> packet loss issues that need ironing out...
>
> http://www.raspberrypi.org/phpBB3/viewtopic.php?f=6&t=5249
> <http://www.raspberrypi.org/phpBB3/viewtopic.php?f=6&t=5249>
>
> Would pywws cope with the odd lost packet?

No idea. I suspect not, but until someone tries it...

Mark Crossley

unread,
May 24, 2012, 1:21:04 PM5/24/12
to py...@googlegroups.com
Well, RS have given me a delivery date of 5 weeks, so I'll have to wait a bit longer...

Cheers
Mark

--
You received this message because you are subscribed to the Google Groups "pywws" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pywws+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pywws?hl=en.


pingu

unread,
May 26, 2012, 6:54:37 AM5/26/12
to pywws
Got my Pi
Connected up
Loaded the software, loaded libusb and pyusb
Ran TestWeatherStation.py as sudo
Got IOError pywws.device_libusb.USBDevice.read_data failed in
device_pyusb.py
Any suggestion on what I need to check


On May 24, 6:21 pm, Mark Crossley <m...@wilmslowastro.com> wrote:
> Well, RS have given me a delivery date of 5 weeks, so I'll have to wait a
> bit longer...
>
> Cheers
> Mark
>
> On 24 May 2012 18:17, Jim Easterbrook <j...@jim-easterbrook.me.uk> wrote:
>
>
>
>
>
>
>
> > On 24/05/12 18:07, Mark Crossley wrote:
>
> >> Ah, just found this discussion, it looks like there may be some USB
> >> packet loss issues that need ironing out...
>
> >>http://www.raspberrypi.org/**phpBB3/viewtopic.php?f=6&t=**5249<http://www.raspberrypi.org/phpBB3/viewtopic.php?f=6&t=5249>
> >> <http://www.raspberrypi.org/**phpBB3/viewtopic.php?f=6&t=**5249<http://www.raspberrypi.org/phpBB3/viewtopic.php?f=6&t=5249>
>
> >> Would pywws cope with the odd lost packet?
>
> > No idea. I suspect not, but until someone tries it...
> > --
> > Jim Easterbrook                 <http://www.jim-easterbrook.**me.uk/<http://www.jim-easterbrook.me.uk/>
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pywws" group.
> > To post to this group, send email to py...@googlegroups.com.
> > To unsubscribe from this group, send email to pywws+unsubscribe@**
> > googlegroups.com <pywws%2Bunsu...@googlegroups.com>.
> > For more options, visit this group athttp://groups.google.com/**
> > group/pywws?hl=en <http://groups.google.com/group/pywws?hl=en>.

Jim Easterbrook

unread,
May 26, 2012, 12:16:19 PM5/26/12
to py...@googlegroups.com
On 26/05/12 11:54, pingu wrote:
> Got my Pi
> Connected up
> Loaded the software, loaded libusb and pyusb
> Ran TestWeatherStation.py as sudo
> Got IOError pywws.device_libusb.USBDevice.read_data failed in
> device_pyusb.py

Hmm, that's not a very accurate error message - there is no
device_libusb any more, so I need to change that. But that's not the
problem.

> Any suggestion on what I need to check

1/ Try running it again, without unplugging or shutting down or
anything. It's possible the USB bus was in a strange state the first time.

2/ Try the lsusb command (with a -v option) to see if it can read the
weather station USB info.

3/ Unplug all other USB devices so only the weather station is connected.

4/ Try a powered hub so the station isn't loading the Pi's power supply
at all.

5/ Try using the cython-hidapi module, if Cython is available for the Pi.

I don't know if any of these suggestions is sensible. I don't have a Pi
so I'm going to have to let other people find out what works and what
doesn't.

pingu

unread,
May 27, 2012, 5:25:12 AM5/27/12
to pywws
Tried with and without powered hub
Same error
Cython-hidapi id not install properly, I will need to look at this in
more detail.

lsusb gives
Bus 001 Device 005: ID 1941:8021 Dream Link WH1080 Weather Station /
USB Missile Launcher
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1941 Dream Link
idProduct 0x8021 WH1080 Weather Station / USB Missile
Launcher
bcdDevice 1.00
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 52
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10

On May 26, 5:16 pm, Jim Easterbrook <j...@jim-easterbrook.me.uk>
wrote:

Steve Wardell

unread,
May 29, 2012, 4:53:05 PM5/29/12
to py...@googlegroups.com
will be watching this topic myself as I am aiming to do something very similar with my RaspberryPi  http://stevewardell.wordpress.com/2012/05/29/raspberry-pi-and-the-weather/ 

Barrie Hall

unread,
May 30, 2012, 4:40:39 AM5/30/12
to py...@googlegroups.com
On Wed, May 30, 2012 at 6:53 AM, Steve Wardell <wardel...@gmail.com> wrote:
will be watching this topic myself as I am aiming to do something very similar with my RaspberryPi  http://stevewardell.wordpress.com/2012/05/29/raspberry-pi-and-the-weather/ 


Yes, me too. When I get my Pi. In 5 MONTHS !!  

:( 

pingu

unread,
May 30, 2012, 3:34:43 PM5/30/12
to pywws
I am struggling to get cython-hidapi to compile,getting errors about
converting Pyrex to C:ls
e.g more chid.pxd:1:0 'libc.stddef.pxd' not found


On May 30, 9:40 am, Barrie Hall <bar...@mypond.net> wrote:
> On Wed, May 30, 2012 at 6:53 AM, Steve Wardell <wardell.st...@gmail.com>wrote:
>
> > will be watching this topic myself as I am aiming to do something very
> > similar with my RaspberryPi
> >http://stevewardell.wordpress.com/2012/05/29/raspberry-pi-and-the-wea...

pingu

unread,
May 30, 2012, 3:39:46 PM5/30/12
to pywws
Running in emulator on PC works OK
www.dragontail.co.uk

Peter

unread,
Jun 10, 2012, 3:28:33 AM6/10/12
to pywws
Hi,

Has anyone managed to get this to work?

I have just setup pywws on my new RPI -Model B

I am using pyusb 0.4.3 and libusb and using a powered usb hub and
have unplugged all other USB devices (ie keyboard and mouse).
Havent tried yo setup cpython yet.

See data and error messages below.

Thanks
Peter

Here is the lsusb and lsusb -v output:
------------------------------------------------
pi@raspberrypi:~/weather/pywws-12.05_r521$ lsusb
Bus 001 Device 016: ID 1941:8021 Dream Link WH1080 Weather Station /
USB Missile Launcher
Bus 001 Device 008: ID 058f:6365 Alcor Micro Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-
Port HUB
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -v
-----------------------------------------------------
Bus 001 Device 016: ID 1941:8021 Dream Link WH1080 Weather Station /
Report Descriptor: (length is 52)
Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440
(null)
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage, data= [ 0x02 ] 2
(null)
Item(Main ): Collection, data= [ 0x00 ] 0
Physical
Item(Global): Usage Page, data= [ 0xa1 0xff ] 65441
(null)
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
(null)
Item(Local ): Usage Maximum, data= [ 0x08 ] 8
(null)
Item(Global): Logical Minimum, data= [ 0x80 ] 128
Item(Global): Logical Maximum, data= [ 0x7f ] 127
Item(Global): Physical Minimum, data= [ 0x00 ] 0
Item(Global): Physical Maximum, data= [ 0xff ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Local ): Usage Minimum, data= [ 0x11 ] 17
(null)
Item(Local ): Usage Maximum, data= [ 0x18 ] 24
(null)
Item(Global): Logical Minimum, data= [ 0x80 ] 128
Item(Global): Logical Maximum, data= [ 0x7f ] 127
Item(Global): Physical Minimum, data= [ 0x00 ] 0
Item(Global): Physical Maximum, data= [ 0xff ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)


Here is the error that I get when I run TestWeatherStation.py:
------------------------------------------------------------------------------------------------------------------
pi@raspberrypi:~/weather/pywws-12.05_r521$ sudo python
TestWeatherStation.py
Traceback (most recent call last):
File "TestWeatherStation.py", line 145, in <module>
sys.exit(main())
File "TestWeatherStation.py", line 91, in main
raw_fixed = ws.get_raw_fixed_block()
File "/home/pi/weather/pywws-12.05_r521/pywws/WeatherStation.py",
line 578, in get_raw_fixed_block
self._fixed_block = self._read_fixed_block()
File "/home/pi/weather/pywws-12.05_r521/pywws/WeatherStation.py",
line 610, in _read_fixed_block
result += self._read_block(mempos)
File "/home/pi/weather/pywws-12.05_r521/pywws/WeatherStation.py",
line 598, in _read_block
new_block = self.cusb.read_block(ptr)
File "/home/pi/weather/pywws-12.05_r521/pywws/WeatherStation.py",
line 309, in read_block
return self.dev.read_data(32)
File "/home/pi/weather/pywws-12.05_r521/pywws/device_pyusb.py", line
134, in read_data
raise IOError('pywws.device_libusb.USBDevice.read_data failed')
IOError: pywws.device_libusb.USBDevice.read_data failed
> > > Yes, me too. When I get myPi. In 5 MONTHS !!
>
> > :(

Mark Crossley

unread,
Jun 10, 2012, 3:35:24 AM6/10/12
to py...@googlegroups.com

From the little I have gleaned so far it looks like the libusb package either needs to be a very specific version and/or recompiled on your Pi in order to fix the USB issues with other devices.

Mark

--
sent from my Android ICS Touchpad

--
You received this message because you are subscribed to the Google Groups "pywws" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pywws+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pywws?hl=en.

Peter

unread,
Jun 16, 2012, 10:05:10 PM6/16/12
to py...@googlegroups.com
A bit of an update:

 I have managed to get 

cython-hidapi compiled and libusb-1.0  installed on my Raspberry Pi talking to a WH-1081.

I was having some trouble building all of this, here are some notes:

1. I updated to Cython 0.16 (complied from src)
2. I installed libusb-1.0.9 (compliled from src)
3. I have installed cython-hidapi from https://github.com/gbishop/cython-hidapi.git

Note; I needed to update setup.py in cython-hidapi as it was trying to include /usr/include/libusb-1.0 but libusb has installed into /usr/loca/include/libusb-1.0

TestWeatherstation.py seems to work ok.

but USBQualityTest.py seems to work and then hangs randomly , ie at  0/59, 0/1015, 0/889  not sure if this is related to the usb packet loss that is mentioned elsewhere or not.

As this is intermittent is there a way to set a timeout on the read, so it can be retried?

has anyone else made any progress?

cheers
Peter


On Sunday, June 10, 2012 5:35:24 PM UTC+10, Mark Crossley wrote:

From the little I have gleaned so far it looks like the libusb package either needs to be a very specific version and/or recompiled on your Pi in order to fix the USB issues with other devices.

Mark

--
sent from my Android ICS Touchpad

To unsubscribe from this group, send email to pywws+unsubscribe@googlegroups.com.

Peter

unread,
Jun 16, 2012, 11:35:55 PM6/16/12
to py...@googlegroups.com
oops should have been a WH-1080

Igg

unread,
Jun 25, 2012, 2:41:15 AM6/25/12
to pywws
"Working" here on RPi with ArchLinux for Arm, hidapi combination. I
couldn't get the old libusb/pyusb configuration to work (same error
messages as above). I included the inverted commas because I haven't
played with it very much, and although it appears to read from the
station ok, running the USBQualityTest very quickly leads to the
system hanging on less than 100 reads. At this point, I am unsure
whether this is a station/usb or RPi problem. I have noticed that the
RPi can be rather temperamental, and I wonder about it's long term
stability for this application. Has anyone had it operating
successfully for any length of time?

Regards,

Ian Sutherland
http://thesutherlands.co.uk/weather.php

Ken Mc

unread,
Jun 25, 2012, 4:05:58 AM6/25/12
to py...@googlegroups.com
I've had mine running and talking to the WH1080 since Friday evening. I did reboot it once on Sunday morning, but as of this morning it was still up and talking to the weatherstation.
I'm running the debian image for what it's worth. I'm waiting to get a wifi dongle for it to free it from the cables to the router, and after that I'm going to package it up all nice and pretty and stick it in the spare bedroom out of the way.
I downloaded the pywws web template from weatherforyou last night and got that working reasonably well. I might stick that up on my webhost for a bit while I adjust it to the way I want it; I don't find the graphs as pretty as cumulus makes, and I love the "guages" on cumulus website (e.g.http://goatstownweather.atwebpages.com/gauges.htm)
It'd be great to get it looking similar to that one.
Otherwise I'm happy out.
Message has been deleted

Eivind Teig

unread,
Jun 27, 2012, 3:01:59 AM6/27/12
to py...@googlegroups.com
Hello, not sure If this is the right place. I got my rpi yesterday and i want to connect it to a WS, But what WS should i buy to Get it working, will any USB WS work?

Eivind

Sendt fra min iPhone

Den 26. juni 2012 kl. 21:09 skrev pingu <andyn...@gmail.com>:

Mine appears to be working after a good few hours compiling the files.
The text data feeds uploaded to my web site at www.dragontail.co.uk , but I have an error with the creation of the graphs. Once these are sorted I just need to setup a Cron
Ken, for graphs I have experimented with highcharts and jguages for the guages. 
--
You received this message because you are subscribed to the Google Groups "pywws" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pywws/-/g1r2OhDQ0wAJ.

To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pywws+un...@googlegroups.com.

Jim Easterbrook

unread,
Jun 27, 2012, 12:12:22 PM6/27/12
to py...@googlegroups.com
On 27/06/12 08:01, Eivind Teig wrote:
> Hello, not sure If this is the right place. I got my rpi yesterday and i
> want to connect it to a WS, But what WS should i buy to Get it working,
> will any USB WS work?

pywws should work with any station that uses "EasyWeather" software.
Have a look at the manufacturer's web site and then try your local
suppliers for their own-branded version.
http://www.foshk.com/Weather_Professional/WH1080.htm
http://www.foshk.com/Weather_Professional/WH2080.htm
http://www.foshk.com/Weather_Professional/WH3080.htm

Other software, such as wview http://www.wviewweather.com/, works with a
wider range of weather stations, and might work on the Pi, but you'd
need to ask somewhere else about that.

pingu

unread,
Jun 29, 2012, 4:11:14 PM6/29/12
to py...@googlegroups.com
Now working on the pi, until I get a tutorial together, there is an image available. Instructions on http://www.dragontail.co.uk/raspberry.html

Eivind Teig

unread,
Jun 30, 2012, 7:09:18 AM6/30/12
to py...@googlegroups.com
Thanks alot ;) i will Check it out!

Sendt fra min iPad
--
You received this message because you are subscribed to the Google Groups "pywws" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pywws/-/klf6KswTezoJ.

Andy Berry

unread,
Aug 29, 2012, 2:48:16 PM8/29/12
to py...@googlegroups.com
Would it be any use if I created an image of my system. I will need to rebuild it to reduce the size back to 2gb, 
I have had problems when using other usb devices at the same time. I tried connecting a web cam, which stopped the weather station working

On Tue, Aug 28, 2012 at 5:29 PM, Worcester <worcesterre...@gmail.com> wrote:
Hi Pingu,

Hope you can help, similar issues.

EVENTUALLY got cython-hidapi to compile OK (rmeoved a bunch of processes that were running (apache, mysql :) )

lsusb lists the Weather Station just fine,

It doesn';t appear in the try.py enumeration list, when I hard code it in try.py,

h = hid.device(0x1941, 0x8021)

I get:

Direct to PI
Opening device
Manufacturer: None
Product: Ð
Serial No: Ð
Closing device

In an unpowered or powered hub i get:

Opening device
Manufacturer: Ð
Product: Ð
Serial No: Ð
Closing device

Done the usual, powerer / non powered hubs, direct to Pi, no otther devices (PuTTY) batteris out of W/S (n.b. works fine on windoze EasyWeather/Cumulus)

So my presumption is that it is definitely something to do with USB comms, - any ideas?

Any way to test that Cython-0.16 complied correctly?

Thanks
Gordon

--
You received this message because you are subscribed to the Google Groups "pywws" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pywws/-/NkypJKJFqTgJ.

To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pywws+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pywws?hl=en.



--
www.dragontail.co.uk

Andy Berry

unread,
Aug 30, 2012, 5:26:26 PM8/30/12
to py...@googlegroups.com
I have uploaded an image file at http://www.dragontail.co.uk/image/weather.zip
It ended up for an 8gb card. I think it autoexpanded when I updated it.
See if its ok
I tested using
cd ~/dls/pywws-12.05_r521

sudo python TestWeatherStation.py 
and got the correct response.

On Thu, Aug 30, 2012 at 1:58 AM, Worcester Renewables <worcester...@gmail.com> wrote:
Pingu,
That would be absolutely awesome!

 either pop it up on the Dragontail site or email me via my WorcesterRenewables.com website

Thanks
Gordon
To view this discussion on the web visit https://groups.google.com/d/msg/pywws/-/h8IbTZAZ1eoJ.

To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pywws+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pywws?hl=en.

Jon Bartlett

unread,
Aug 30, 2012, 5:38:09 PM8/30/12
to py...@googlegroups.com

Hi Gordon,

 

I have tried pywws on a couple of Pi's and on a couple of the Debian distros (Wheezy etc since the July releases)

I didn't need to install any of the 'option 2' items from the pywws install instructions - including cython.

I did download and install libusb (although vaguely remember it was already installed in the images).

I have no other USB devices connected - but my libusb is this (Maplin N96GY WH1080 format) :

 

 

Bus 001 Device 004: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher

Couldn't open device, some information will be missing

I have found over a few weeks of running that the logs have been filled with '2012-08-15 09:52:25:pywws:pywws.device_cython_hidapi.USBDevice.read_data failed'

For no apparent reason (ie after running for days this just appears).

The other errors I see (which are frequent and maybe related) are delays/problems/timeouts accessing websites for posting (particularly METoffice for some reason). 

 

I hope this helps.

 

J.

 

 

From: py...@googlegroups.com [mailto:py...@googlegroups.com] On Behalf Of Worcester Renewables
Sent: 30 August 2012 01:59
To: py...@googlegroups.com
Subject: Re: [pywws] Re: Raspberry Pi

 

Pingu,
That would be absolutely awesome!

 either pop it up on the Dragontail site or email me via my WorcesterRenewables.com website

Thanks
Gordon

On Wednesday, August 29, 2012 7:48:17 PM UTC+1, pingu wrote:

To view this discussion on the web visit https://groups.google.com/d/msg/pywws/-/h8IbTZAZ1eoJ.

Worcester

unread,
Sep 3, 2012, 4:42:44 AM9/3/12
to py...@googlegroups.com
Hi Pingu,

Many thanks,

Went away to the paralympics ( absolutely insiprational ), switched Pi on when I can back and it all worked  .....

Weird! (and wonderful !)

Only thing I had to do to get it working as user pi was to set the USB device permissions
as per

http://www.weather-watch.com/smf/index.php?topic=39257


  Create a group weather

  Add pi to it

  Allow weather access to the USB device - create a script ins /etc/udev/rules.d

  Called 38-weather-station.rules

 
# WH-1080 Weather Station
ACTION!="add|change", GOTO="weather_station_end"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", GROUP="weather"

LABEL="weather_station_end"


Many Thanks
Gordon

Worcester

unread,
Sep 3, 2012, 5:08:09 AM9/3/12
to py...@googlegroups.com
Hi Jon,

See post to pingu,

It just fired up :)

and as root, I could run TestWeatherStation.py

As a user it didn't work, so changed the permissions on the USB device, and tada!!

Regards
Gordon

David Byrne

unread,
Oct 2, 2012, 4:45:17 AM10/2/12
to py...@googlegroups.com
Hi Vince,

I followed the instructions at http://www.weather.dragontail.co.uk/index.php?page=station_setup to set up my WH-1080 and Raspberry Pi, including building cython-hidapi, might help you out ?

David

On Monday, 1 October 2012 19:56:04 UTC+1, Vincent Smedley wrote:
Hi Gordon,

Any chance you could let me know what exactly you did to get cython-hidapi to build. I'm getting error I don't understand from the linker(?)

/usr/bin/ld: cannot find -ludev

Any idea's thanks for all the helpful posts on this group.

Vince

Matt Thompson

unread,
Jun 23, 2014, 2:46:11 AM6/23/14
to py...@googlegroups.com, j...@thebartletts.org
Jon,

Appreciate this is an *old* post but did you ever find out why those "pywws.device_cython_hidapi.USBDevice.read_data" errors occured? I'm getting write_data errors now but can't find anything wrong... TestWeatherStation is working ok.

Regards,
Matt

Andy

unread,
Jun 23, 2014, 12:38:13 PM6/23/14
to py...@googlegroups.com

Hi Matt
I reboot my Rasperry every night with a cron job, and had no problem for a few years.

You received this message because you are subscribed to a topic in the Google Groups "pywws" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pywws/KW-bNorY7l8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pywws+un...@googlegroups.com.

To post to this group, send email to py...@googlegroups.com.
Visit this group at http://groups.google.com/group/pywws.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages