This repository has been archived by the owner on Jan 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from foglamp/1.6.0RC
1.6.0RC to master
- Loading branch information
Showing
7 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FogLAMP South DHT11 plugin for Raspberry PI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# A set of variables that define how we package this repository | ||
# | ||
plugin_name=dht11 | ||
plugin_type=south | ||
plugin_install_dirname=${plugin_name} | ||
|
||
# Now build up the runtime requirements list. This has 3 components | ||
# 1. Generic packages we depend on in all architectures and package managers | ||
# 2. Architecture specific packages we depend on | ||
# 3. Package manager specific packages we depend on | ||
requirements="foglamp,wiringpi" | ||
|
||
case "$arch" in | ||
x86_64) | ||
;; | ||
armhf) | ||
;; | ||
aarch64) | ||
;; | ||
esac | ||
case "$package_manager" in | ||
deb) | ||
if [ "$arch" != "armhf" ]; then | ||
echo "Deb Package building for ${plugin_name} is only supported on armhf architecture!!" | ||
exit 0 | ||
fi | ||
;; | ||
rpm) | ||
echo "RPM Package building for ${plugin_name} is not supported on $arch architecture!!" | ||
exit 0 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
foglamp_south_dht11_version=1.5.2 | ||
foglamp_version>=1.5 | ||
foglamp_south_dht11_version=1.6.0 | ||
foglamp_version>=1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: foglamp-south-dht11 | ||
Version: 1.0.0 | ||
Section: devel | ||
Priority: optional | ||
Architecture: armh64 | ||
Depends: foglamp,wiringpi | ||
Conflicts: | ||
Maintainer: Dianomic Systems, Inc. <[email protected]> | ||
Homepage: http://www.dianomic.com | ||
Description: South plugin for the DHT11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
##-------------------------------------------------------------------- | ||
## Copyright (c) 2019 Dianomic Systems Inc | ||
## | ||
## 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. | ||
##-------------------------------------------------------------------- | ||
|
||
##-------------------------------------------------------------------- | ||
## | ||
## @postinst DEBIAN/postinst | ||
## This script is used to execute post installation tasks. | ||
## | ||
## Author: Ivan Zoratti, Praveen Garg, Mark Riddoch | ||
## | ||
##-------------------------------------------------------------------- | ||
|
||
set -e | ||
|
||
install_deps () { | ||
pip3 install -Ir /usr/local/foglamp/python/requirements-dht.txt --no-cache-dir | ||
} | ||
|
||
set_files_ownership () { | ||
chown -R root:root /usr/local/foglamp/python/foglamp/plugins/south/dht11 | ||
} | ||
|
||
install_deps | ||
set_files_ownership | ||
echo "dht11 plugin installed." |