|
Post by papa on Jan 28, 2016 15:45:47 GMT
Like me, do you have an older (originally Windows) laptop or desktop on which you installed Linux & now you want to use it for OpenHAB-Mosquitto? In this thread, I narrated my journey of installing & troubleshooting that. Now I will aim to document just what is needed. This assumes that you will have an assembled RFM69 Gateway & End Node to use with the installed OpenHAB. If needed, you can see my Success... thread for detailed documentation on building & programming the Gateway & End Node. Notes: When you see a line starting with $, type it on Terminal & followed it with [Enter]. Text below the $ line shows what the command generated. When you see $ sudo, you'll need to blind type the Linux password chosen when you installed Linux. If a command squawks "Permission denied," re-enter the command with sudo[space] in front of it. Starting after $[space], you may select & copy commands below. Then you may paste them into Terminal & [enter].Using a command from this helpful document, I show below the Linux version where I installed OpenHAB-Mosquitto: $ cat /etc/*release DISTRIB_ID=LinuxMint DISTRIB_RELEASE=17 DISTRIB_CODENAME=qiana DISTRIB_DESCRIPTION="Linux Mint 17 Qiana" NAME="Ubuntu" VERSION="14.04.3 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.3 LTS" VERSION_ID="14.04" Seems good practice to update your Linux first. You may use the Update Manager: Click Refresh to get the latest updates & then click Install Updates to install updates Levels 1-3. Sometimes it works better to use Terminal commands: $ sudo apt-get update $ sudo apt-get upgrade If you get the error, "another synaptic was running in non interactive mode," Synaptic, Add/Remove and Update Manager all use the same system under the hood, and you can't have more than one of them open at once. So try closing anything you opened via the Update Manager or if nothing else restart the computer & try again. [ To be continued ]
|
|
|
Post by papa on Jan 28, 2016 16:54:35 GMT
If your Linux computer does not already have a static or fixed IP address, give it one by logging into & changing your router's settings. Give it the same address as the one you used for mqtt_server in the Gateway programming sketch. If these don't match, the Gateway will not connect to MQTT server on the Linux computer. Added 2/11/2017: The following describes installing OpenHAB 1.8.x. I just installed OpenHAB 2, mostly via this documentation. This document describes moving over from version 1.8.x to 2 & the section, Necessary Changes, near the end tells how to tweak OpenHAB 1.8.x config files to work with OpenHAB 2. With a few config file changes, MQTT seems to be working fine with OpenHAB 2. As soon as I can, I'll post what I changed & keep testing. Install openHAB using the apt-get method in this document & copying simple config files to the proper folders /etc/openhab & /usr/share/openhab Added comments about the above ... I did not need Steps 6 or 11. You might. For Step 9, I did the following ( Updated, Oct. 12, 2016) $ sudo apt-get install openhab-addon-action-mail $ sudo apt-get install openhab-addon-binding-http $ sudo apt-get install openhab-addon-binding-mqtt $ sudo apt-get install openhab-addon-binding-ntp $ sudo apt-get install openhab-addon-binding-weather $ sudo apt-get install openhab-addon-io-myopenhab << Updated 2/6/2017 because obsolete.$ sudo apt-get install openhab-addon-persistence-logging $ sudo apt-get install openhab-addon-persistence-rrd4j To see more add-on & binding packages, use: $ sudo apt-cache search openhab Note OpenHAB File locations: service configuration /etc/default/openhab site configuration /etc/openhab log files /var/log/openhab userdata like rrd4j databases /var/lib/openhab openHAB engine, addons and /webapps folder /usr/share/openhab
|
|
|
Post by papa on Jan 28, 2016 17:01:09 GMT
For Step 10 (OpenHAB Configuration) of the above document ... Caution: On 10/12/2016, the following instructions were changed ...
On 10/11/2016, the .zip of sample config files was updated & renamed to openhab-papa4.zip. I believe they are correct if edited as shown below.
openhab-papa4.zip (235.6 KB) << Here you can download some simple OpenHAB config files I packaged to work with a Gateway, DHT End Node 2, & OpenHAB. On the OpenHAB User Interface, they display some weather data via the OpenHAB Weather Binding. Using these should save time getting started with OpenHAB & will give something relatively simple to learn from & build on. Click on the above zip file link. In the resulting window, choose Save then Save in folder Downloads & OK. ( Sometimes, we get an attachment ID error. If so, just try again until it works.) Run the Caja file browser program. Left click on the Downloads Folder then right click on openhab-papa4.zip then left click Extract here. Now copy the downloaded & extracted files to the OpenHAB configurations folders:
Note: I don't believe we can drag & drop files between two Caja windows in these cases, apparently because the files' destinations are "special folders" that require our permission via sudo.
In the Caja file browser program (if necessary), click on the pencil icon so Caja will show the path of folders. Double click on Downloads in the left column & after "Location:" note the path to Downloads, especially what follows /home/ which will show you what to use for [user] below. For example, if Location; says /home/Rocky... you will use /home/Rocky below instead of /home/[user]. While you're Downloads via Caja, you should see a openhab-papa3 folder which contains a configurations folder & a webapps folder which resulted from you saving & extracting the openhab-papa3.zip files. One by one, you can select & copy the sudo commands below & paste them into Linux's Terminal & hit [enter]:
The following copies in the simple customized version from openhab-papa4.zip (You may need to give permission.): $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/openhab.cfg /etc/openhab/configurations/openhab.cfg $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/items/My.items /etc/openhab/configurations/items/My.items $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/rules/My.rules /etc/openhab/configurations/rules/My.rules $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/sitemaps/My.sitemap /etc/openhab/configurations/sitemaps/My.sitemap $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/persistence/logging.persist /etc/openhab/configurations/persistence/logging.persist $ sudo cp /home/[user]/Downloads/openhab-papa4/configurations/persistence/rrd4j.persist /etc/openhab/configurations/persistence/rrd4j.persist $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/battery.png /usr/share/openhab/webapps/images/battery.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/calendar.png /usr/share/openhab/webapps/images/calendar.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/comfort-level.png /usr/share/openhab/webapps/images/comfort-level.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/garagedoor-closed.png /usr/share/openhab/webapps/images/garagedoor-closed.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/garagedoor-open.png /usr/share/openhab/webapps/images/garagedoor-open.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/humidity.png /usr/share/openhab/webapps/images/humidity.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/network.png /usr/share/openhab/webapps/images/network.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/nodes.png /usr/share/openhab/webapps/images/nodes.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/PushBtn.png /usr/share/openhab/webapps/images/PushBtn.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/secure-closed.png /usr/share/openhab/webapps/images/secure-closed.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/secure-open.png /usr/share/openhab/webapps/images/secure-open.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/sun_clouds.png /usr/share/openhab/webapps/images/sun_clouds.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/switch-on.png /usr/share/openhab/webapps/images/switch-on.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/switch-off.png /usr/share/openhab/webapps/images/switch-off.png $ sudo cp /home/[user]/Downloads/openhab-papa4/webapps/images/temperature.png /usr/share/openhab/webapps/images/temperature.png
|
|
|
Post by papa on Jan 29, 2016 4:07:55 GMT
I believe openhab-papa.zip already provides most of the openhab.cfg edits that you will need in so far, except, do these: (Updated Oct. 12, 2016)
1) Via Caja file browser, go to /etc/openhab/configurations/ Right click on openhab.cfg, select Open as administrator, & give your linux password. Find ( [Ctrl] F ) security:netmask In the decimaled number (192.168.x.0/24), change the “x” to the 3rd number of your computer's IP address which you noted above. 2) Get your location's latitude & longitude here. In openhab.cfg, find weather:location & replace the nearby ##.######'s with your location’s latitude & longitude. 3) Register at Weather Underground (Wunderground) & get an api key: Follow the helpful instructions here. 4) In openhab.cfg, find the line weather:apikey.Wunderground= Put your Wunderground api key following the “=” sign at the end of the line. 5) Save the changed openhab.cfg file ( hold [Ctrl] key & tap "s" key ) Continuing to edit openhab.cfg: 1) Find Mail Action configuration. 2) a) If you use gmail, at mail:username= & mail:from=, replace yourEmailaddress with your address & at mail:password=, replace yourPassword with yours. 2b) If you don't use gmail, for your email service, you'll need to get the right values for: mail:hostname, mail:port, mail:username, mail:password, mail:from, mail:tls, & mail:popbeforesmtp. [To make lines active, be sure they are UNcommented (no # at the line's start) “#” before a line means its “commented” (not active & relying on the default value shown nearby.] Caution added 3/9/2017: In any openhab file that ends in .cfg (like openhab.cfg), to "comment" (to deactivate a code line or to provide an explanatory note), be sure you start each line with the # character. In a .cfg file, do NOT start a commented line with "//" (how we start a commented line in .item, rules, etc files & Arduino sketches) because the .cfg file will become unreadable & throw errors ("openhab.cfg' cannot be read").
Later, you can imitate config file entries to add additional nodes to your setup.
Still needed is the install of the MQTT (Mosquitto) server which will be addressed below.
|
|
|
Post by papa on Jan 29, 2016 4:15:07 GMT
Various ways to start OpenHAB (Steps 7 & 8 in the document )
7. Start openHAB - manually
Init based on sysVinit (e.g. Debian 7 / Ubuntu 14.x and earlier) $ sudo /etc/init.d/openhab start $ sudo /etc/init.d/openhab status ^^ I use these & BTW, to stop, use sudo /etc/init.d/openhab stop
Init based on systemd (e.g. Debian 8 / Ubuntu 15.x and higher): $ sudo systemctl start openhab
Added 1/30/2016: After the Linux computer / OpenHAB was running a while, it stopped responding to these commands until I restarted the computer.
8. Start openHAB - at system startup
Init based on sysVinit: $ sudo update-rc.d openhab defaults Added 1/30/2016: ^^ This one worked for me after I restarted the computer.
Init based on systemd: $ sudo systemctl daemon-reload $ sudo systemctl enable openhab
After OpenHAB config files are necessarily edited & in the right folders (as above) & after OpenHAB is running (documented just above) , you can load the OpenHAB's user interface into your browserwith http://localhost:8080/openhab.app?sitemap=My
After MQTT (Mosquitto) server is installed & running (documented below), after the Gateway is running & connects to MQTT, & after the End Node 02 is running, the OpenHAB user interface should start displaying your data.
|
|
|
Post by papa on Jan 29, 2016 15:52:05 GMT
Install Mosquitto (MQTT) server: $ sudo apt-get install mosquitto $ sudo apt-get install mosquitto-clients
Try starting Mosquitto: $ sudo service mosquitto start
& get a response like: mosquitto start/running, process xxxx [make note of the number after process]
In a new Terminal window, you can enter mosquitto_sub -v -t '#' That subscribes to ANY topic you publish and report the topic name and the payload. It could display messages from OpenHAB & from the Gateway if it is set up properly, powered, & connected to your network.
IF your MQTT server is adequately installed & your Gateway is set up properly & powered & connected to your network, the MQTT LED should light. & if you're using the Gateway's debug mode, the serial monitor should indicate MQTT connection. Then you are pretty much good to go. It seems like once MQTT is running, it will do so even after the Linux computer is rebooted. OpenHAB will need to be set to run at system start as above in step 8
BTW when you need to stop MQTT use: $ sudo service mosquitto stop
[Next post: What to do if the above is NOT adequate.]
|
|
|
Post by papa on Jan 29, 2016 16:57:38 GMT
When the above post does not get your Gateway connected to the Linux computer's MQTT server...
I fussed with & researched this a long time. Various checks told me Mosquitto was running & using port 1883, but the Gateway was not adequately connected to it. Also on a Windows computer on the same network, I installed TT3, a Mosquitto client. With TT3, I could connect with the MQTT server, but could not get a message thru to it. Trying different things in Terminal, I entered $ sudo mosquitto & got: 1453930879: mosquitto version 0.15 (build date 2013-08-23 19:23:41+0000) starting 1453930879: Opening ipv4 listen socket on port 1883. 1453930879: Opening ipv6 listen socket on port 1883. 1453930879: New connection from 192.168.0.203. 1453930879: Invalid protocol "MQTT" in CONNECT from 192.168.0.203. 1453930879: Socket read error on client (null), disconnecting. [The last 2 lines kept repeating.] Hmmm, OK, listening on port 1883, connecting to 192.168.0.203 (the Linux computer with MQTT server) but then Ah-Ha, invalid protocol ... socket read error ..., disconnecting. BIG CLUES!Googling Invalid protocol "MQTT" in CONNECT, I found this helpful article (hereafter called "Invalid MQTT" or "Invalid"). & it uses this helpful location (hereafter called "Mosquitto PPA"). You might want both articles open in separate browser windows AND have the following instructions in another window or printed. First in “Invalid MQTT, just follow instructions through "Roger’s excellent update page, at: -https://launchpad.net..." Then to get needed info for " Invalid's" next step (“Choose your Ubuntu version”), in Terminal, use this command: $ cat /etc/*release Included in my output was VERSION="14.04.3 LTS, Trusty Tahr" so I chose Trusty (14.04) Look for & choose your version name & number. Then select & copy the first “deb” line that shows up and then swap from the browser to Update Manager. [ I did not use the deb-src line. ] Maybe "Invalid's" paragraph starting "In the Update Manager window" will work as is for you but here is how I needed to adapt it: In the Update Manager window, click Edit / Software Sources / PPAs Add a new PPA. Paste in the deb line you copied just above plus if necessary /etc/apt/sources.list.d/additional repositories.list. Click update cache. Again maybe "Invalid's" next paragraph starting "Going back once again to Roger’s page," will work as is for you but here is how I needed to adapt it: In launchpad site, copy Eight digit key just after "/" & just before "(What is this?)" Returning to Update Manager, click on Authentication keys, & there click Download a key. Paste copied key [ok] Here's how I slightly adapted Invalid's next paragraph starting, "Okay, we’re done with the heavy lifting." : Close Software sources. In Update Manager, click Refresh then click Install updates (esp. Mosquitto)
|
|
|
Post by papa on Jan 29, 2016 18:53:34 GMT
Try again on starting Mosquitto: (You did STOP it as "Invalid" told you, right?) $ sudo service mosquitto start
& get a response like: mosquitto start/running, process xxxx [make note of the number after process]
In a new Terminal window, you can enter mosquitto_sub -v -t '#' That subscribes to ANY topic you publish & report the topic name & the payload. It could display messages from OpenHAB & from the Gateway if it is set up properly, powered, & connected to your network.
IF your MQTT server is adequately installed & your Gateway is set up properly & powered & connected to your network, the MQTT LED should light. & if you're using the Gateway's debug mode, the serial monitor should indicate MQTT connection.
If we want OpenHAB to run at system start, I assume we can follow the above mentioned step 8: 8. Start openHAB - at system startup
Init based on sysVinit: $ sudo update-rc.d openhab defaults Added 1/30/2016: ^^ This one worked for me after I restarted the computer.
Init based on systemd: $ sudo systemctl daemon-reload $ sudo systemctl enable openhab
I hope by now that your OpenHAB with Mosquitto is working well on your Linux computer. Best wishes & enjoy!
Added 2/9/2017: 9. Debugging OpenHAB Config File Entries See the Feb 9, 2017 post below with the heading "Helpful Tip for Debugging OpenHAB Config File Entries"
|
|
|
Post by papa on Feb 1, 2016 19:12:10 GMT
Weather-related items in my openhab-papa4.zip config package are not NOW working reliably. (Updated Oct. 12, 2016):
The following is posted at the OpenHAB wiki related to the weather binding: " Important changes for Yahoo provider: In January 2016, Yahoo discontinued the service that allows you to use latitude and longitude to locate your weather location. To continue to use the Yahoo weather provider, you must upgrade the weather binding to 1.8.1 or later and supply a woeid (Where On Earth ID) for your location, as shown in the example below. You can find your woeid by copying the numeric digits at the end of the URL for your location at weather.yahoo.com." Currently with the 1.8.3 version of OpenHAB & its weather binding, weather related items are working. On 10/11/2016, I uploaded an updated openhab-papa4.zip package of config files. (See the Jan 28, 2016 at 11:01am post above.) The included files should contain the configs need to display weather data on OpenHAB's User Interface.
|
|
|
Post by papa on Feb 3, 2016 20:23:52 GMT
This post was restored here on Feb 8, 2017.
Launch An OpenHAB User Interface on Your Linux Computer
In a Web Browser on your computer running OpenHAB, enter this address http://localhost:808/openhab.app?sitemap=My The OpenHAB user interface should appear in the browser showing data & virtual controls. In the user interface, you should see a virtual switch for Node02’s relay, & Node02’s temp & humidity. If you click on the Outside Temp (from Yahoo weather for your location), you get more weather info including a representation of comfort level. To return to the main user interface window, at the top, click on My House or the browser back button. At the bottom is date & time info, current to the last minute. Default was 15 minutes, I’m not sure why. In openhab.cfg, you can change this at ntp:refresh= (divide the number by 1,000 to get how long between refreshes) At the top left of the interface, see a link for Node Health. When clicked, it shows you Node02’s radio signal strength (RSSI) & voltage. This data may take a little while to show up. Whatever RSSI is good enough if you get data. Hurrah, you have a simple, but working DIY Home Automation Network to build on. Awesome, eh? But It Gets Better ... Using the OpenHAB User Interface on Another Computer in Your Local Network
Here's another good reason to assign a fixed IP address to the computer hosting the OpenHAB server program. In your local network, say OpenHAB server is running on a computer with the fixed address 192.168.1.12 & in your /etc/openhab/configurations/sitemaps folder, you have the config file My.sitemap. In a browser address box on another computer in your local network, enter 192.168.1.12:8080/openhab.app?sitemap=My [enter key] Your sitemap user interface should appear within that browser so you can view & control your openHAB network from there. You might put that [192.168... ] address in your bookmarks so you don't need to type it again. Following the above paragraph, your OpenHAB computer could run alone without keyboard, touchpad / mouse or monitor. You could view & control OpenHAB from the other computer in your network. Again this works on another computer within your local network where your OpenHAB computer has an ip address. To use another computer in ANOTHER local network, you must work through the internet as described below.
|
|
|
Post by papa on Feb 5, 2016 23:03:44 GMT
The openHAB Cloud Service has moved so this post was updated on 1/30/2017 Getting Internet Access to your OpenHAB network via MyOpenHAB ( myopenhab.org/ ) Control your OpenHAB user interface on ANY computer with internet connection & an internet browser. Stop the OpenHAB server: $ sudo /etc/init.d/openhab stop If like me you used the OLD openHAB Cloud site (my.openhab.org) ... In openhab.cfg, I did not see any old my.openhab.org stuff to disable. I removed org.openhab.io.myopenhab-1.8.3.jar from addons folder & parked it elsewhere. Documentation for OpenHAB 2 is here. Since I use OpenHAB 1 ... Documentation for OpenHAB 1 is here. Below I summarize that plus other things I learned: Download org.openhab.io.openhabcloud_1.9.0.201612192331.jar to your /usr/share/openhab/addons folder ^^ Link added on 2/6/2017 It's part of an upcoming 1.9.x version, but supposed to work with 1.8.x In my own openhab.cfg file, just before Binding Configurations, I added the following At first, I left them as is & did not edit them. ############################## openHAB Cloud Connector #############################
# The URL of the openHAB Cloud service to connect to. # Optional, default is set to the service offered by the openHAB Foundation # (https://myopenhab.org/) #openhabcloud:baseURL=
# Local port that the openHAB runtime is available through HTTP. # Optional, default is 8080 #openhabcloud:localPort=
# Defines the mode in which you want to operate the connector. # Possible values are: # - notification: Only push notifications are enabled, no remote access is allowed. # - remote: Push notifications and remote access are enabled. # Optional, default is 'remote'. #openhabcloud:mode=
# A comma-separated list of items to be exposed to external services like IFTTT. # Events of those items are pushed to the openHAB Cloud and commands received for # these items from the openHAB Cloud service are accepted and sent to the local bus. # Optional, default is an empty list. #openhabcloud:expose= With a Linux text editor, see & note the contents of C:\openhab\webapps\static\uuid & C:\openhab\webapps\static\secret Prepare a robust password. A password technique I like is aiming for at least 9 characters, choose a phrase from a song or a made up sentence, reduce each word to a single letter (keeping capitalization), maybe add a symbolic mark (like < . , & ^ $ # if permitted) & add a number like a year. For example, "When Johnny comes marching home again 2015" becomes the password: WJcmha2015 This way is a challenge for others to guess, but memorable to you. Register as a NEW USER here. (<< Caution: the site address no longer has a period after "my") You will supply your email address (must be all lower case), a password (see above) for your myopenhab account, AND the information you copy from the uuid & secret files. Notice you are providing like TWO passwords, one for your account & "secret," the code for connecting with your OpenHAB server. Added April, 24, 2016: If you do a new install of OpenHAB later, you must update your myopenhab account with the NEW uuid & secret. Here login to myopenhab by giving your previously registered email address & ACCOUNT password. Then at the upper right, click on your email address then Account. Enter the NEW uuid & secret there. In the Getting Started Guide is the section “Adjusting openHAB security settings to work with my.openHAB.” I included most of this in your downloaded openhab.cfg files. If you followed the directions above, you should have finished the rest. << Not sure about this. Need to check. Restart OpenHAB server: $ sudo /etc/init.d/openhab start. Once all this is accomplished you should be able to use any computer to log in to your OpenHAB user interface via my.openhab.org/login Even Better: Controlling OpenHAB with your (internet- or cellular- connected) Apple or Android device
Get OpenHAB iOS App at App Store. Or get OpenHAB Android App at Google Play. Also updated, 1/30/2017: Configuring openHAB iOS and Android apps can't be easier. Just set remote URL to myopenhab.org/ in your app's settings and set username (email address) and password (account password) to the same ones (see above) you use to log in to myopenhab.org website, and you are done. << If you used the OLD openHAB Cloud Service, the remote URL must be changed (no period after "my"). Change the password if you registered with one different than what you used with the old openHAB cloud site. Once you’ve registered at my.openhab.org & your app is configured as above, you can use the app to see & control your OpenHAB server with the same user interface you see on the browser where the server is running.
|
|
|
Post by papa on Oct 12, 2016 15:16:56 GMT
Based on further experience, this thread was updated on Oct. 12, 2016. Posts edited: Jan 28, 2016 at 10:54am, Jan 28, 2016 at 11:01am, Jan 28, 2016 at 10:07pm, Feb 1, 2016 at 1:12pm, & Feb 3, 2016 at 2:23pm.
The changes in the indicated posts include an updated openhab-papa4.zip collection of sample OpenHAB config files (see the Jan 28, 2016 at 11:01am post) & instructions on installing & customizing them.
|
|
|
Post by bubembo on Oct 21, 2016 14:43:07 GMT
Hello papa,
When i load your configuration and look at the openhab page I have the ___Node_Health___ without any formatting, have i missed something?
Furthermore I have noticed that in order to put the temperature in Celsius you need to remove the unit=fahrneit. Furthermore I've noticed that the chart is not being written did I miss something overhere?
|
|
|
Post by papa on Oct 22, 2016 13:05:02 GMT
Quick answer for some. Must leave shortly for a couple days.
When i load your configuration and look at the openhab page I have the ___Node_Health___ without any formatting, have i missed something? Papa: No, it's just a link to see node voltage & signal strength on another page. Makes more sense when you have multiple nodes. Added: Of course this depends on a working Node02 that is communicating voltage & signal strength to OpenHAB
Furthermore I have noticed that in order to put the temperature in Celsius you need to remove the unit=fahrneit. Papa: That's right.
Furthermore I've noticed that the chart is not being written did I miss something overhere? Papa: That can happen. I'll give you a possible solution in a couple days unless someone else does it first.
|
|
|
Post by papa on Oct 24, 2016 20:33:19 GMT
bubembo, on Oct. 21, you wrote, "Furthermore I've noticed that the [weather data] chart is not being written did I miss something overhere?" Papa: Yes, that can happen when one changes the persistence database configuration (which is needed to chart the weather data). I found this hint in an OpenHAB community post & it worked for me: For rrd4j persistence to work after its configuration is changed, one may need to delete all its data base (db) files so new db files are created. To expand the above hint a bit ... Stop OpenHAB Find the folder that holds the .rrd files & delete all those .rrd files. For Linux (including Raspberry Pi), that folder is found at /var/lib/openhab/persistence/rrd4j Start OpenHAB again & see if the weather data is now charting. ============================ P.S. the openhab-papa4.zip file is an edited, sample of my own working OpenHAB configuration. To test the sample config files briefly, I disabled my full set of configuration files & used these files. I believe I looked through the results sufficiently to see that they should work. However, I have made past errors. I appreciate hearing about corrections that may need to be made & try to do so promptly.
|
|
|
Post by papa on Jan 30, 2017 20:30:11 GMT
The OpenHAB Cloud Service has moved, requiring changes.
In the Feb 5, 2016 post that includes " Getting Internet Access to your OpenHAB network via MyOpenHAB" I updated getting remote access to your OpenHAB User Interface via an internet browser or smart phone app.
|
|
|
Post by papa on Feb 9, 2017 14:25:07 GMT
Helpful Tip for Debugging OpenHAB Config File EntriesIn this thread, I posted the following on Feb 21, 2016, but did not put it in this thread until now.
On Linux / Raspberry PI, How to View Continuous Updates to Log Files
I find value in older threads on this forum, real treasure troves. I just came across Raspberry Pi better way to view changing log files? which began: [ Papa: When I moved from Windows to Linux / Raspberry PI, I had the same disappointment & desire. ] Computourist suggested: Start Openhab manually using a remote terminal program like Putty: log in and: > sudo /opt/openhab/start.sh and you'll see events in realtime.. [ Papa: Same for me. I did find start.sh among OpenHAB downloads, but did not get it to work. ] Papa: In describing demondreamer's situation, computourist also described mine & the solution. So now in a local or remote terminal window, I can enter the following & see an ongoing display of events, updates of various OpenHAB states: tail -f /var/log/openhab/events.log I can enter the following & see OpenHAB's startup messages, error messages, & shut down messages: tail -f /var/log/openhab/openhab.log I can enter the follow & see OpenHAB's GETs for Feb 21, 2016: tail -f /var/log/openhab/2016_02_21.request.logI can have one or all of the above terminal windows open to monitor how OpenHAB is doing. On these displays, watch for where config file entries are working or not. Use the scroll button to move around in the display or to halt it from scrolling by. (Of course, you can also open an openhab log file in a text error & search for problems there.) Then you can internet search for the wording of the error message. Thanks, demondreamer for asking, & thanks computourist for answering.
|
|
|
Post by papa on Feb 11, 2017 5:42:34 GMT
This thread has assumed installing & working with OpenHAB 1.8.x. I just installed OpenHAB 2, mostly via this documentation. This document describes migrating from version 1.8.x to 2 & the section, Necessary Changes, near the end tells how to tweak OpenHAB 1.8.x config files to work with OpenHAB 2. With a few config file changes, MQTT seems to be working fine with OpenHAB 2. As soon as I can, I'll post what I changed in my existing config files & keep testing. ================================== Update 3/23/2017:See this post from jimkernsjr about how to avoid filling up limited disk space on an older Linux machine or a Raspberry Pi
|
|