WeatherStationUploader¶
- Author
- Version
4.0.0
Share your openHAB weather sensors data with the world! It’s fun, rewarding, and can help others planning out their day or weekend!
About¶
This software is distributed as a community submission to the openhab-helper-libraries. WeatherStationUploader enables personal weather station owners to UPLOAD weather data in real time to Weather Underground.
Prerequisites¶
The meteocalc library is used for some calculations in the script. It must be installed and accessible from within the openHAB jsr223 environment. This is an example of how it can be done on an Ubuntu installation. It might look different on your system.
Run
sudo pip install meteocalc
.openHAB and Jython must be configured to find your downloaded python libraries. There are several ways to do this. One way is to add a
-Dpython.path=mypath1:mypath2
to/etc/default/openhab2
. For example,-Dpython.path=/etc/openhab2/automation/lib/python:/usr/local/lib/python2.7/dist-packages
. You can also modify thesys.path
list in a Jython script that loads early. Or, as an alternative, you can create a symlink likesudo ln -s /usr/local/lib/python2.7/dist-packages/meteocalc /etc/openhab2/automation/lib/python/meteocalc
In this example, the directory/etc/openhab2/automation/lib/python
is already defined as openHAB’s python library search path.Edit classutils.py and change line 5 to
PYTHON2 = 2#sys.version_info.major
.
Installation¶
After the prerequisites are met:
Register a new PWS (Personal Weather Station) at Weather Underground. Note your station ID and station password.
Follow the instruction for how to install a community submitted package.
Edit the configuration dictionary
weatherStationUploader_configuration
that you’ve previously inserted into the openhab-helper-libraries configuration file. Make sure that the Weather Underground station ID and password are set to match the credentials that you were given when registering your PWS.Reload the openhab-helper-libraries configuration as described in Modifying/Reloading Modules.
Watch the openHAB debug output for any errors or warnings.
Release Notices¶
Below are important instructions if you are upgrading weatherStationUploader from a previous version. If you are creating a new installation, you can ignore what follows.
PLEASE MAKE SURE THAT YOU GO THROUGH ALL STEPS BELOW WHERE IT SAYS “BREAKING CHANGE”… DON’T SKIP ANY VERSION
- Version 4.0.0
BREAKING CHANGE: The script is now distributed as a part of openhab-helper-libraries. If lucid had been previously installed, it should be completely removed.
Disclaimer
THIS SOFTWARE IS PROVIDED BY THE AUTHOR “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.