DHT11 sensor with Beaglebone black using python

Hi . I tried to learn python programming to use the hardware interfacing in Beaglebone Black. I am building a weather station, so i need to read data from DHT11 sensor using BBB in python. I tried http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ this by converting the code for Beaglebone but i get some error. Give me shome suggestions and help me?

On Fri, 25 Dec 2015 04:19:51 -0800 (PST), karthi geyan
<kaathi524@gmail.com> declaimed the
following:

Hi . I tried to learn python programming to use the hardware interfacing in
Beaglebone Black. I am building a weather station, so i need to read data
from DHT11 sensor using BBB in python. I tried
DHT11 Humidity & Temperature Sensor Module | UUGear
this by converting the code for Beaglebone but i get some error. Give me
shome suggestions and help me?

  A cut&paste of whatever "some error" would be useful. You don't even
mention if you are trying Python or C language (or even a port to
BoneScript).

He did specifically say Python. Some code or the error would be helpful, you have not given us anything to go on.

Just a word of caution, DHTxx or requivalent AMxxxx type sensors don't
have very good accuracy.

I've been using BME280 and BME180 for humidity/temperature/pressure
measurements with good success.

The BME280/180 use i2c, which is easier to work with, contrasting with
the DHTxx that need precise timing for their proprietary protocol.

regards,
Nuno

On Fri, 25 Dec 2015 09:55:32 -0800 (PST), WZ9V
<dfruehwald@gmail.com> declaimed the
following:

He did specifically say Python. Some code or the error would be helpful, you have not given us anything to go on.

  Okay -- I did miss the lowercase snake... The link had a page with both
languages... The C code looked to be using an Arduino-compatible library...

  From what little I've read on the BBB, I wouldn't want to do any
protocol that needed bit-banging without somehow learning to load the
PRUs... I'm more likely to hook the sensor to an Uno, and use a serial port
to relay readings to the BBB <G>