Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from foglamp/1.5.2RC
Browse files Browse the repository at this point in the history
1.5.2RC
  • Loading branch information
praveen-garg authored Apr 9, 2019
2 parents c5d2fd6 + f0d9bc6 commit 3925c6e
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 22 deletions.
25 changes: 7 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ FogLAMP South Plugin for DHT11 temperature and humidity sensor, for Raspberry Pi
Hardware
========

A DHT11 pluged directly into the GPIO pins of a Raspberry Pi, the default configuration is to use GPIO4 for the data.
A DHT11 plugged directly into the GPIO pins of a Raspberry Pi, the default configuration is to use GPIO4 for the data.


Installation
============
The plugin can be installed with given `requirements.sh <requirements.sh>`_ or with below manual steps:


.. code-block:: bash
$ sudo apt install -y wiringpi
$ pip3 install -Ir python/requirements-dht.txt --no-cache-dir
Create Debian Package
~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -31,23 +37,6 @@ Create Debian Package
``./make_deb`` will create the debian package inside ``packages/build/``.


Pre Debian Package Install
~~~~~~~~~~~~~~~~~~~~~~~~~~

This plugin uses the Adafruit_Python_DHT python package. There is a known issue with pip package.

https://github.com/adafruit/Adafruit_Python_DHT/issues/99

Hence to install this, perform the following steps:

.. code-block:: bash
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get install build-essential python3-dev
sudo python3 setup.py install
Sensor GPIO access
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion VERSION.south.dht11
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
foglamp_south_dht11_version=1.5.0
foglamp_south_dht11_version=1.5.2
foglamp_version>=1.5
2 changes: 1 addition & 1 deletion packages/Debian/armhf/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: 1.0.0
Section: devel
Priority: optional
Architecture: armhf
Depends: build-essential,python3-dev,foglamp
Depends: foglamp,wiringpi
Conflicts:
Maintainer: Dianomic Systems, Inc. <[email protected]>
Homepage: http://www.dianomic.com
Expand Down
2 changes: 1 addition & 1 deletion packages/Debian/armhf/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ set_files_ownership () {
chown -R root:root /usr/local/foglamp/python/foglamp/plugins/south/dht11
}

# install_deps # FIXME: https://github.com/adafruit/Adafruit_Python_DHT/issues/99
install_deps
set_files_ownership
echo "dht11 plugin installed."
2 changes: 1 addition & 1 deletion python/requirements-dht.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Adafruit_Python_DHT==1.3.2
Adafruit_Python_DHT==1.3.3
26 changes: 26 additions & 0 deletions requirements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

##--------------------------------------------------------------------
## Copyright (c) 2019 Dianomic Systems
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##--------------------------------------------------------------------

##
## Author: Ashish Jabble
##

set -e

sudo apt install -y wiringpi
pip3 install -Ir python/requirements-dht.txt --no-cache-dir

0 comments on commit 3925c6e

Please sign in to comment.