Fixed issues on page 06 in the docs
.. Links
.. |these INSTALLATION| raw:: html
- <a href="04_installation.html">these</a>
+ <a href="../04_installation.html">these</a>
.. |Getting Started| raw:: html
- <a href="03_getting_started.html#building-foglamp">here</a>
+ <a href="../03_getting_started.html#building-foglamp">here</a>
.. Links in new tabs
.. |setting OMF| raw:: html
- <a href="05_testing.html#setting-the-omf-translator-plugin">here</a>
+ <a href="../05_testing.html#setting-the-omf-translator-plugin">here</a>
.. |DHT Repo| raw:: html
.. |DHT Description| raw:: html
- <a href="http://www.aosong.com/en/products/details.asp?id=109" target="_blank">DHT11 Product Description</a>
+ <a href="https://www.adafruit.com/product/386" target="_blank">DHT11 Product Description</a>
.. |DHT Manual| raw:: html
.. |GPIO| raw:: html
- <a href="https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/README.md" target="_blank">here</a>
+ <a href="https://www.raspberrypi.org/documentation/usage/gpio/README.md" target="_blank">here</a>
.. =============================================
@@ -123,6 +123,12 @@ This is the code for the plugin:
.. code-block:: python
+ # -*- coding: utf-8 -*-
+
+ # FOGLAMP_BEGIN
+ # See: http://foglamp.readthedocs.io/
+ # FOGLAMP_END
+
""" Plugin for a DHT11 temperature and humidity sensor attached directly
to the GPIO pins of a Raspberry Pi
@@ -140,10 +146,9 @@ This is the code for the plugin:
allow FogLAMP access to the device.
"""
+
from datetime import datetime, timezone
- import Adafruit_DHT
import uuid
- import copy
from foglamp.common import logger
from foglamp.services.south import exceptions
@@ -175,6 +180,7 @@ This is the code for the plugin:
_LOGGER = logger.setup(__name__)
""" Setup the access to the logging system of FogLAMP """
+
def plugin_info():
""" Returns information about the plugin.
