Skip to content

Raspberry Pi watchdog for openHAB

The openHAB display in the kitchen is still the problem child. Occasionally it just stops, other times it does not refresh the HABpanel, even though it has a connection to the openHAB server. Then there is the problem with the network card in the Pi. And - ok, that's a server-side problem - occasionally the weather stops updating. All in all that's a lot of trouble for a display which is just supposed to run standalone.

In the latest iteration I looked into activating the integrated hardware watchdog in the Raspberry Pi. Checking the temperature it never goes above ~55°C celcius, even though the display is in an almost closed frame and can't exchange much heat with the environment. But nevertheless occasionally the Pi just halts, and stops operating.

 

Continue reading "Raspberry Pi watchdog for openHAB"
  • Twitter
  • Bookmark Raspberry Pi watchdog for openHAB at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Raspberry Pi watchdog for openHAB
  • Bloglines Raspberry Pi watchdog for openHAB
  • Technorati Raspberry Pi watchdog for openHAB
  • Fark this: Raspberry Pi watchdog for openHAB
  • Bookmark Raspberry Pi watchdog for openHAB at YahooMyWeb
  • Bookmark Raspberry Pi watchdog for openHAB at Furl.net
  • Bookmark Raspberry Pi watchdog for openHAB at reddit.com
  • Bookmark Raspberry Pi watchdog for openHAB at blinklist.com
  • Bookmark Raspberry Pi watchdog for openHAB at Spurl.net
  • Bookmark Raspberry Pi watchdog for openHAB at Simpy.com
  • Bookmark Raspberry Pi watchdog for openHAB at blogmarks
  • Bookmark Raspberry Pi watchdog for openHAB with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Apache Karaf client in openHAB, and the "Session has been closed" error

Don't you love it when things suddenly stop working?

In my openHAB installation I have a check which verifies that the weather data is up to date. Otherwise it restarts the openhab2 service. And this check stopped working ... Leaving the kitchen display not updated for a longer time. The same display where I expect the entire installation to "just work", and don't create so many different problems. Seems to be a hard problem to have an openHAB installation without any trouble ...

 

Continue reading "Apache Karaf client in openHAB, and the "Session has been closed" error"
  • Twitter
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Apache Karaf client in openHAB, and the "Session has been closed" error
  • Bloglines Apache Karaf client in openHAB, and the "Session has been closed" error
  • Technorati Apache Karaf client in openHAB, and the "Session has been closed" error
  • Fark this: Apache Karaf client in openHAB, and the "Session has been closed" error
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at YahooMyWeb
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at Furl.net
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at reddit.com
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at blinklist.com
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at Spurl.net
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at Simpy.com
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error at blogmarks
  • Bookmark Apache Karaf client in openHAB, and the "Session has been closed" error with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

openHAB HABpanel configuration gets destroyed, HABpanel stays blank

openHAB is a stream of pure joy when it comes to debugging. Especially when all I want is a small display in the kitchen, working autonomous and without the need to restart it all the time or login to fix issues.

The latest installment of that endeavor was a black screen in the browser, with no way to even get to the usual HABpanel controls. After some debugging, it turns out that the file "habpanel.config" (/var/lib/openhab2/config/org/openhab/habpanel.config) on the openHAB server was destroyed, or more accurate: shortened to 4829 bytes. Lucky me I have this file in my Ansible playbooks, and whenever there is a change, a copy of this file is fetched to my Ansible host. From there it goes into my backups, and I can restore a couple dozen versions back, if needed. So not all is bad, but still something is not working as expected. First I installed a copy of this file from my backups - but turns out shortly later the file is shortened again. Later I figured that the file is always shortened when the openHAB service restarts. This particular instance was still running openHAB 2.4, and I used this opportunity to upgrade to 2.5, test my Playbooks (and exclude the one config file from everything) and see if the problem persists. It does. Except that after upgrading to 2.5 the file is no longer shortened to 4829 bytes, but to 4875 bytes.

Every time that happens, the file ends somewhere in the middle of the HABpanel panel configuration - and naturally the HABpanel service can no longer read that file and shows a blank screen. I would wish that it rather shows an error message, or does something useful here, but oh well.

For a while (and mostly because I was busy with other tasks) I helped myself by changing the owner of "habpanel.config" and the directory this files lives in to "root:root". This threw a couple other errors into the logfile, but helped somewhat because the config file got no longer destroyed when the service restarted.

 

Continue reading "openHAB HABpanel configuration gets destroyed, HABpanel stays blank"
  • Twitter
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg openHAB HABpanel configuration gets destroyed, HABpanel stays blank
  • Bloglines openHAB HABpanel configuration gets destroyed, HABpanel stays blank
  • Technorati openHAB HABpanel configuration gets destroyed, HABpanel stays blank
  • Fark this: openHAB HABpanel configuration gets destroyed, HABpanel stays blank
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at YahooMyWeb
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at Furl.net
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at reddit.com
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at blinklist.com
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at Spurl.net
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at Simpy.com
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank at blogmarks
  • Bookmark openHAB HABpanel configuration gets destroyed, HABpanel stays blank with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Show raw openHAB Image Type in HABpanel

In our Home Automation system, I read weather data from OpenWeatherMap. I blogged about the implementation before. The weather data provides an icon which can be used to show the current weather:

Image	homeCurrentIcon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:current#icon" }
Image	homef03Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours03#icon" }
Image	homef06Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours06#icon" }
Image	homef09Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours09#icon" }
Image	homef12Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours12#icon" }
Image	homef15Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours15#icon" }
Image	homef18Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours18#icon" }
Image	homef21Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours21#icon" }
Image	homef24Icon		"Icon"		{ channel="openweathermap:weather-and-forecast:home:forecastHours24#icon" }

On the openHAB server side, this reads the picture data into the Item itself:

2020-02-20 00:39:38.476 [vent.ItemStateChangedEvent] - homeCurrentIcon changed from raw type (image/png): 3801 bytes to raw type (image/png): 2773 bytes
2020-02-20 03:59:47.156 [vent.ItemStateChangedEvent] - homeCurrentIcon changed from raw type (image/png): 2773 bytes to raw type (image/png): 2565 bytes
2020-02-20 04:19:48.006 [vent.ItemStateChangedEvent] - homeCurrentIcon changed from raw type (image/png): 2565 bytes to raw type (image/png): 2922 bytes

The really interesting question is: how can I display this icon directly in HABpanel. The available documentation is sparse to non-existent.

 

Continue reading "Show raw openHAB Image Type in HABpanel"
  • Twitter
  • Bookmark Show raw openHAB Image Type in HABpanel at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Show raw openHAB Image Type in HABpanel
  • Bloglines Show raw openHAB Image Type in HABpanel
  • Technorati Show raw openHAB Image Type in HABpanel
  • Fark this: Show raw openHAB Image Type in HABpanel
  • Bookmark Show raw openHAB Image Type in HABpanel at YahooMyWeb
  • Bookmark Show raw openHAB Image Type in HABpanel at Furl.net
  • Bookmark Show raw openHAB Image Type in HABpanel at reddit.com
  • Bookmark Show raw openHAB Image Type in HABpanel at blinklist.com
  • Bookmark Show raw openHAB Image Type in HABpanel at Spurl.net
  • Bookmark Show raw openHAB Image Type in HABpanel at Simpy.com
  • Bookmark Show raw openHAB Image Type in HABpanel at blogmarks
  • Bookmark Show raw openHAB Image Type in HABpanel with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Raspberry Pi: take a screenshot from a display with no keyboard and mouse

The Raspberry Pi in the kitchen runs relatively stable, but recently the browser (which is showing the openHAB HABpanel) popped up a warning in the upper right corner. That's annoying, because this area in HABpanel shows the outside temperature.

Before investigating what's going on, I had to figure out a way to get a screenshot of the display - without running into the kitchen with my mobile phone. And without attaching a keyboard all the time (to press the "Print" button).

 

Continue reading "Raspberry Pi: take a screenshot from a display with no keyboard and mouse"
  • Twitter
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Raspberry Pi: take a screenshot from a display with no keyboard and mouse
  • Bloglines Raspberry Pi: take a screenshot from a display with no keyboard and mouse
  • Technorati Raspberry Pi: take a screenshot from a display with no keyboard and mouse
  • Fark this: Raspberry Pi: take a screenshot from a display with no keyboard and mouse
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at YahooMyWeb
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at Furl.net
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at reddit.com
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at blinklist.com
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at Spurl.net
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at Simpy.com
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse at blogmarks
  • Bookmark Raspberry Pi: take a screenshot from a display with no keyboard and mouse with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Hide the mouse cursor on a Raspberry Pi

The openHAB HABpanel we have in the kitchen runs on a Raspberry Pi and uses a touchscreen display. The browser starts in fullscreen mode, and shows a specific HABpanel screen for this display. That's all nice, but by default the mouse cursor is in the way. Let's get rid of it.

 

Continue reading "Hide the mouse cursor on a Raspberry Pi"
  • Twitter
  • Bookmark Hide the mouse cursor on a Raspberry Pi at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Hide the mouse cursor on a Raspberry Pi
  • Bloglines Hide the mouse cursor on a Raspberry Pi
  • Technorati Hide the mouse cursor on a Raspberry Pi
  • Fark this: Hide the mouse cursor on a Raspberry Pi
  • Bookmark Hide the mouse cursor on a Raspberry Pi at YahooMyWeb
  • Bookmark Hide the mouse cursor on a Raspberry Pi at Furl.net
  • Bookmark Hide the mouse cursor on a Raspberry Pi at reddit.com
  • Bookmark Hide the mouse cursor on a Raspberry Pi at blinklist.com
  • Bookmark Hide the mouse cursor on a Raspberry Pi at Spurl.net
  • Bookmark Hide the mouse cursor on a Raspberry Pi at Simpy.com
  • Bookmark Hide the mouse cursor on a Raspberry Pi at blogmarks
  • Bookmark Hide the mouse cursor on a Raspberry Pi with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)

In one of my earlier blog posts I reported that occasionally the HABpanel will disconnect from the server. Turns out it's not HABpanel, but it's the Pi itself which is causing the trouble. Part of the problem why it took me so long to investigate is that the display is in the kitchen, and someone had to have a look and spot the small red error message. To work around that problem, I hooked the device up in the network monitoring, and had an alarm triggered when the device is not reachable. Sure enough, that happens occasionally.

Because I moved /var/log to a small RAM disk to avoid wearing out the SDcard, all logs are lost once the device is rebooted. Had to bring keyboard and mouse to the kitchen in order to save the logfiles once the device was no longer reachable over the network.

 

Continue reading "Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)"
  • Twitter
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)
  • Bloglines Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)
  • Technorati Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)
  • Fark this: Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at YahooMyWeb
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at Furl.net
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at reddit.com
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at blinklist.com
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at Spurl.net
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at Simpy.com
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) at blogmarks
  • Bookmark Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Occasional HABpanel disconnect from the openHAB server

The new display showing HABpanel works quite nice. But occasionally the fullscreen browser will lose the network connection. As far as I can see, it's not a Wi-Fi problem of the Raspberry Pi, but still annoying: in the morning the browser shows a small red warning that the connection to the openHAB server is lost, time is still correct, but temperature and the status of other devices is outdated. To fix that, I have to leave fullscreen mode, hit reload - and then there is no keyboard for going into fullscreen mode again (that's using the F11 key).

 

Continue reading "Occasional HABpanel disconnect from the openHAB server"
  • Twitter
  • Bookmark Occasional HABpanel disconnect from the openHAB server at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Occasional HABpanel disconnect from the openHAB server
  • Bloglines Occasional HABpanel disconnect from the openHAB server
  • Technorati Occasional HABpanel disconnect from the openHAB server
  • Fark this: Occasional HABpanel disconnect from the openHAB server
  • Bookmark Occasional HABpanel disconnect from the openHAB server at YahooMyWeb
  • Bookmark Occasional HABpanel disconnect from the openHAB server at Furl.net
  • Bookmark Occasional HABpanel disconnect from the openHAB server at reddit.com
  • Bookmark Occasional HABpanel disconnect from the openHAB server at blinklist.com
  • Bookmark Occasional HABpanel disconnect from the openHAB server at Spurl.net
  • Bookmark Occasional HABpanel disconnect from the openHAB server at Simpy.com
  • Bookmark Occasional HABpanel disconnect from the openHAB server at blogmarks
  • Bookmark Occasional HABpanel disconnect from the openHAB server with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel

The Raspberry Pi with the touch display for the home automation system is coming along nicely. One problem to solve: how to display the openHAB HABpanel, and which browser to use?

Firefox and Chrome don't run on Raspbian. However "Chromium" (the open source part of the Chrome browser) is. That's a good start. But how to start the browser automatically, and in full screen?

 

Continue reading "Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel"
  • Twitter
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel
  • Bloglines Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel
  • Technorati Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel
  • Fark this: Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at YahooMyWeb
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at Furl.net
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at reddit.com
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at blinklist.com
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at Spurl.net
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at Simpy.com
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel at blogmarks
  • Bookmark Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time

Recently I installed a Raspberry Pi with Raspbian, and attached a touchscreen to it. The device is supposed to work as a display for our openHAB home automation system. All nice and shiny, except the Pi occasionally disconnects from the Wi-Fi - apparently in order to safe power. Once the network device is needed, the Wi-Fi is reconnected. That is the default setting.

That is quite annoying, because the HABpanel will lose it's connection to the openHAB server, and no longer show widget updates. Some widgets like "time" will just continue to work, but other widgets like status of the washing machine, or the current outside temperature just show the last state, and never update.

 

Continue reading "Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time"
  • Twitter
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time
  • Bloglines Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time
  • Technorati Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time
  • Fark this: Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at YahooMyWeb
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at Furl.net
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at reddit.com
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at blinklist.com
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at Spurl.net
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at Simpy.com
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time at blogmarks
  • Bookmark Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca