<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on ads' corner</title><link>https://andreas.scherbaum.la/tags/java/</link><description>Recent content in Java on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 29 Apr 2024 00:08:58 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/java/index.xml" rel="self" type="application/rss+xml"/><item><title>Hamburg PostgreSQL Meetup in April 2024</title><link>https://andreas.scherbaum.la/post/2024-04-29_hamburg-postgresql-meetup-in-april-2024/</link><pubDate>Mon, 29 Apr 2024 00:08:58 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-04-29_hamburg-postgresql-meetup-in-april-2024/</guid><description>&lt;p&gt;On April 23rd - after a very long break - the &lt;a href="https://www.meetup.com/hamburg-pug/events/299115907/"&gt;third PostgreSQL Meetup&lt;/a&gt; took place in &lt;em&gt;Hamburg&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;Sascha had temporarily taken over the Meetup group after the previous admins were no longer available. Last year at &lt;em&gt;PGConf.DE 2023&lt;/em&gt; I asked if there is anyone interested who would like to revive the group. Tobias had agreed to do so, and Lenz also joined the effort at the &lt;em&gt;PGConf.EU 2023&lt;/em&gt;. After a few organizational details, the first (or rather third) meetup was scheduled.&lt;/p&gt;</description></item><item><title>Does an openHAB Item exist?</title><link>https://andreas.scherbaum.la/post/2022-03-19_does-an-openhab-item-exist/</link><pubDate>Sat, 19 Mar 2022 23:14:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-03-19_does-an-openhab-item-exist/</guid><description>&lt;p&gt;In a more complex openHAB2 Rule I&amp;rsquo;m writing, I need to find out if a certain Item exist. If I try to access it when it does not exist, the Rule will fail. Not good.&lt;/p&gt;&#10;&lt;p&gt;I could pass in a parameter to the framework which builds the Rule, but that is cumbersome and requires changes on several places.&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s see if I can have the Rule figure this out.&lt;/p&gt;</description></item><item><title>openHAB: stop a ChromeCast</title><link>https://andreas.scherbaum.la/post/2021-02-10_openhab-stop-a-chromecast/</link><pubDate>Wed, 10 Feb 2021 20:09:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-02-10_openhab-stop-a-chromecast/</guid><description>&lt;p&gt;There are a number of &lt;a href="https://andreas.scherbaum.la/tags/chromecast"&gt;ChromeCasts&lt;/a&gt; in our setup. I&amp;rsquo;m adding (physical) switches to turn &lt;a href="https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/"&gt;displays on and off&lt;/a&gt;, and primarily control the volume. When I turn the display off, I also want the &lt;em&gt;ChromeCast&lt;/em&gt; to &lt;a href="https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/"&gt;stop doing whatever it is doing&lt;/a&gt; right now (stop streaming), and go back to the default application (for video CC).&lt;/p&gt;</description></item><item><title>openHAB: timestamp from last Item update</title><link>https://andreas.scherbaum.la/post/2021-01-28_openhab-timestamp-from-last-item-update/</link><pubDate>Thu, 28 Jan 2021 20:25:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-28_openhab-timestamp-from-last-item-update/</guid><description>&lt;p&gt;If &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; has a &lt;a href="https://www.openhab.org/docs/configuration/persistence.html"&gt;Persistence&lt;/a&gt; service configured, the time of the last Item update (and a &lt;a href="https://www.openhab.org/docs/configuration/persistence.html#persistence-extensions-in-scripts-and-rules"&gt;couple other times&lt;/a&gt;) is available in Rules. This makes it quite handy to check if a certain item hasn&amp;rsquo;t been updated in a long time. As example I have the &lt;a href="https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/"&gt;Tankerkoenig Binding installed&lt;/a&gt;, and this data is persisted in &lt;a href="https://www.influxdata.com/products/influxdb/"&gt;InfluxDB&lt;/a&gt;. This way I can see historic gas prices in &lt;em&gt;Grafana&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;When the &lt;em&gt;Telegram&lt;/em&gt; Bot answers the &lt;code&gt;/tanken&lt;/code&gt; question, it appends the timestamp of the last gas prices update.&lt;/p&gt;</description></item><item><title>Online indicator for remote controllable power plugs in openHAB</title><link>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</link><pubDate>Sat, 09 Jan 2021 23:46:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</guid><description>&lt;p&gt;Recently I installed a number of new power sockets (like &lt;a href="https://www.amazon.de/-/en/switchable-Control-Directly-compatible-Compatible/dp/B074PZLX2P"&gt;this one&lt;/a&gt;). The &lt;a href="https://phoscon.de/en/raspbee2"&gt;Hue bridge&lt;/a&gt; can not only add each switch to a light group, but also reports each plug as a &lt;a href="https://www.openhab.org/docs/configuration/things.html"&gt;Thing&lt;/a&gt; in &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;. There I thought it will be a nice touch if &lt;em&gt;openHAB&lt;/em&gt; actually reports when it sees a device plugged in. The power socket has a LED which turns on when the plug is on. The &lt;em&gt;Hue&lt;/em&gt; bridge reports &lt;code&gt;OFFLINE&lt;/code&gt; and &lt;code&gt;ONLINE&lt;/code&gt;. That&amp;rsquo;s useful.&lt;/p&gt;&#10;&lt;p&gt;The plan is to turn the LED light - and the power plug - on and off for a few second.&lt;/p&gt;</description></item><item><title>openHAB: reset DateTime in rules</title><link>https://andreas.scherbaum.la/post/2021-01-01_openhab-reset-datetime-in-rules/</link><pubDate>Fri, 01 Jan 2021 18:26:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-01_openhab-reset-datetime-in-rules/</guid><description>&lt;p&gt;In one of my &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; rules I&amp;rsquo;m using a timestamp to track when an &lt;a href="https://www.openhab.org/docs/configuration/items.html"&gt;Item&lt;/a&gt; went offline. This is used in my monitoring to let the user (me) know how long the Item is already offline.&lt;/p&gt;&#10;&lt;p&gt;Background: we have a couple &lt;a href="https://www.openhab.org/addons/bindings/chromecast/"&gt;ChromeCasts&lt;/a&gt; in our network. When they are connected to a 5GHz Wi-Fi they are quite unstable and often loose the network connection. Usually the openHAB binding reconnects the device quickly, but it happens that the device stays offline. It might have something to do with the router, but nevertheless I want to know when things go offline.&lt;/p&gt;</description></item><item><title>openHAB: Configuration model '....rules' has errors, therefore ignoring it: no viable alternative at input '...'</title><link>https://andreas.scherbaum.la/post/2020-12-25_openhab-configuration-model-....rules-has-errors-therefore-ignoring-it-no-viable-alternative-at-input-.../</link><pubDate>Fri, 25 Dec 2020 10:50:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-12-25_openhab-configuration-model-....rules-has-errors-therefore-ignoring-it-no-viable-alternative-at-input-.../</guid><description>&lt;p&gt;The &lt;em&gt;openHAB&lt;/em&gt; rule system is not very helpful by pointing out when it&amp;rsquo;s missing something, or when there is an error to actually point to the problem.&lt;/p&gt;</description></item><item><title>Add a Google Calendar to openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</link><pubDate>Tue, 27 Oct 2020 22:14:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; can integrate &lt;em&gt;Google&lt;/em&gt; Calendars. The functionality is kind of limited, it can only see the current and the next calendar event, but in my case that is enough. More about the use case in another blog post.&lt;/p&gt;</description></item><item><title>openHAB: faster loading of rules files</title><link>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</link><pubDate>Sat, 24 Oct 2020 19:36:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; rules files are lazy loaded. When a rule is used the first time, the entire rule file is loaded and compiled, which apparently is single-threaded and takes a couple seconds. Even on a reasonable powerful Rasperry Pi 4. This happens both after restarting &lt;em&gt;openHAB&lt;/em&gt; and after changing the rules file. It also means that whatever the rule in question is supposed to do has to wait a couple seconds when requested for the first time. Imagine you have a light switch, enter a room, press the switch, and it takes 5-10 seconds until the light comes on.&lt;/p&gt;&#10;&lt;p&gt;To work around this problem, I add a piece of code in all rules files which triggers an immediate action right after loading the file. This way the rules file is already pre-loaded (which again takes a couple seconds, but likely at a time when the rule is not needed right now).&lt;/p&gt;</description></item><item><title>Audio reminders in openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</link><pubDate>Thu, 15 Oct 2020 21:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</guid><description>&lt;p&gt;A while ago someone mentioned &amp;ldquo;reminders&amp;rdquo; used in their home audio system, and I took that idea and implemented something similar in &lt;a href="https://andreas.scherbaum.la/tags/openhab"&gt;openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The basic idea is that I can send scheduled notifications to any audio sink &lt;em&gt;openHAB&lt;/em&gt; is using, possibly more than one audio sink for one message. Also I want to differentiate between a simple audio sound, and text output.&lt;/p&gt;</description></item><item><title>Google Summer of Code 2020 - Intermediate status update</title><link>https://andreas.scherbaum.la/post/2020-08-21_google-summer-of-code-2020-intermediate-status-update/</link><pubDate>Fri, 21 Aug 2020 22:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-21_google-summer-of-code-2020-intermediate-status-update/</guid><description>&lt;p&gt;The three &lt;a href="https://www.postgresql.org/"&gt;PostgreSQL&lt;/a&gt; projects for this year’s &lt;a href="https://summerofcode.withgoogle.com/"&gt;Google Summer of Code&lt;/a&gt; are on track, and &lt;a href="https://andreas.scherbaum.la/post/2020-06-18_google-summer-of-code-2020-started/"&gt;making good progress&lt;/a&gt;. All projects expect to finish on time.&lt;/p&gt;&#10;&lt;h2 id="performance-farm"&gt;Performance Farm&lt;/h2&gt;&#10;&lt;p&gt;The data gathering for performance farm members is completed, as well as the new implementation for the &lt;em&gt;JSON&lt;/em&gt; data transfer. The project iteratively updated it’s goals, and adjusted for newly identified UI issues.&lt;/p&gt;&#10;&lt;p&gt;Current work centers around making the website more pretty and useful, as well as reducing the number of used &lt;em&gt;JavaScript&lt;/em&gt; libraries. The next step is presenting the work to the &lt;em&gt;PostgreSQL&lt;/em&gt; Community for broader feedback.&lt;/p&gt;</description></item><item><title>openHAB, Telegram Bot and quoting URLs</title><link>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</link><pubDate>Wed, 19 Aug 2020 13:49:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</guid><description>&lt;p&gt;A while ago I &lt;a href="https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/"&gt;integrated DWD warnings&lt;/a&gt; (&lt;em&gt;Deutscher Wetterdienst&lt;/em&gt;) into our home automation system, and receive severe weather notifications ever since then. That works quite good, but it was missing a weblink with more details - or if you want to forward the warning to someone it would be useful to have a link to the warning as well. The &lt;em&gt;DWD&lt;/em&gt; binding does not provide that piece of information, but it is easy enough to add - or so I thought.&lt;/p&gt;</description></item><item><title>Text-to-Speech in openHAB</title><link>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</link><pubDate>Sun, 16 Aug 2020 17:28:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</guid><description>&lt;p&gt;In my ongoing endeavor to improve our home, a while ago I added a notification when the &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;washing machine and the dryer are finished&lt;/a&gt;. The notification is send to a &lt;a href="https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/"&gt;Telegram channel&lt;/a&gt;. Over the summer vacation I added a number new &lt;a href="https://andreas.scherbaum.la/tags/chromecast"&gt;ChromeCast&lt;/a&gt; Audio devices (Google no longer offers the Audio CC, if you need one get one now). One is placed in the kitchen. Not only can I listen to music while eating breakfast, I can also output notifications, by using the CC as an &lt;a href="https://www.openhab.org/docs/configuration/multimedia.html"&gt;audio sink in openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;To make that useful, I decided to use a Text-to-Speech system. &lt;em&gt;openHAB&lt;/em&gt; offers a couple different TTS systems, however most of them need a cloud integration, and therefore a working Internet connection. The &amp;ldquo;&lt;a href="https://www.openhab.org/addons/voice/picotts/"&gt;Pico TTS&lt;/a&gt;&amp;rdquo; works standalone, and was my favorite choice for this implementation.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration - Second iteration</title><link>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</link><pubDate>Sat, 15 Aug 2020 18:25:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;previous blog&lt;/a&gt; post about &amp;ldquo;&lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;&amp;rdquo; I explained the details of how to integrate this binding into &lt;em&gt;openHAB&lt;/em&gt; and provide a &lt;em&gt;Telegram&lt;/em&gt; interface.&lt;/p&gt;&#10;&lt;p&gt;Someone on the &lt;em&gt;openHAB&lt;/em&gt; community forum &lt;a href="https://community.openhab.org/t/openhab-and-tankerkonig-gas-prices-telegram-integration/101410/2"&gt;pointed out&lt;/a&gt; that &lt;em&gt;Telegram&lt;/em&gt; bots allow queries, where one can present the user with options, and the user only has to click on one of the options. That makes it easier to use, and less typing is required as well. I went ahead and implemented that.&lt;/p&gt;&#10;&lt;p&gt;Most of the &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;implementation&lt;/a&gt; does not change, especially all the Things and Items are the same. The Rules change however.&lt;/p&gt;</description></item><item><title>Improve openHAB Rules response time</title><link>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</link><pubDate>Mon, 06 Jul 2020 11:48:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</guid><description>&lt;p&gt;By default, &lt;em&gt;openHAB&lt;/em&gt; only starts &lt;code&gt;5&lt;/code&gt; threads to deal with execution of &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;Rules&lt;/a&gt;. That&amp;rsquo;s not a lot, and if all threads are busy, rules have to wait until a slot is free. This results in slow &lt;code&gt;Rule&lt;/code&gt; response time.&lt;/p&gt;&#10;&lt;p&gt;This can be improved.&lt;/p&gt;</description></item><item><title>openHAB: Turn display on and off for a Video ChromeCast</title><link>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</link><pubDate>Sun, 05 Jul 2020 00:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</guid><description>&lt;p&gt;After figuring out if a &lt;a href="https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/"&gt;ChromeCast is currently used&lt;/a&gt;, it was time to fix a long-standing problem. At home we don&amp;rsquo;t have TVs, just &amp;ldquo;dumb&amp;rdquo; displays, and stream content using &lt;em&gt;ChromeCasts&lt;/em&gt;. However a video &lt;em&gt;ChromeCast&lt;/em&gt; never really turns off, but keeps the display running, using a &lt;code&gt;Backdrop&lt;/code&gt; app. This app keeps showing pictures on the display when the &lt;em&gt;ChromeCast&lt;/em&gt; is not used otherwise, effectively preventing any powersafe mode.&lt;/p&gt;&#10;&lt;p&gt;That&amp;rsquo;s both annoying (who wants to have pictures shown in the living room or working room all night), and consumes energy. It&amp;rsquo;s also &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;intentional by Google&lt;/a&gt;. So far we had to turn the display on and off manually, which is inconvenient.&lt;/p&gt;</description></item><item><title>openHAB: detect if a ChromeCast is currently used or idle</title><link>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</link><pubDate>Sat, 04 Jul 2020 20:38:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</guid><description>&lt;p&gt;We have a couple of Audio and Video &lt;em&gt;ChromeCasts&lt;/em&gt; in use. For an upcoming project I need to figure out if any of them is currently used. That is different for the Audio and the Video devices: the Audio just goes &lt;code&gt;idle=ON&lt;/code&gt;, the Video devices however load the &lt;code&gt;Backdrop&lt;/code&gt; app and show pictures when idling. Google for &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;whatever reason&lt;/a&gt; does not want the attached monitor to go in powersafe mode. So much for saving energy &amp;hellip;&lt;/p&gt;</description></item><item><title>Deutscher Wetterdienst notifications in openHAB and Telegram</title><link>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</link><pubDate>Sun, 28 Jun 2020 17:32:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</guid><description>&lt;p&gt;The &amp;ldquo;&lt;a href="https://www.dwd.de/"&gt;Deutscher Wetterdienst&lt;/a&gt;&amp;rdquo; &lt;em&gt;DWD&lt;/em&gt; (&lt;em&gt;German Weather Service&lt;/em&gt;) provices a service which sends out alarms for upcoming events, like heavy rain, storm, blizzard, strong winds ect. This service is only available for &lt;em&gt;Germany&lt;/em&gt;. And it has a &lt;a href="https://www.openhab.org/addons/bindings/dwdunwetter/"&gt;binding for openHAB&lt;/a&gt;. Time to integrate this, activate a number of regions I&amp;rsquo;m interested in, and send notifications to our mobile phones.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration</title><link>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</link><pubDate>Sat, 27 Jun 2020 01:03:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</guid><description>&lt;p&gt;In &lt;em&gt;Germany&lt;/em&gt;, every gas station must report gas prices online, to the &lt;a href="https://www.bundeskartellamt.de/DE/Wirtschaftsbereiche/Mineral%C3%B6l/MTS-Kraftstoffe/mtskraftstoffe_node.html"&gt;Markttransparenzstelle für Kraftstoffe&lt;/a&gt;. Businesses and users can then fetch this data and provide services. One of these companies is &lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;, and there&amp;rsquo;s also a &lt;a href="https://www.openhab.org/addons/bindings/tankerkoenig/"&gt;Binding for openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;If you are interested in gas prices for certain gas stations, you need to &lt;a href="https://creativecommons.tankerkoenig.de/"&gt;sign up for a (free) API key&lt;/a&gt;, and figure out the IDs of the gas stations. For that &lt;a href="https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html"&gt;go to this website&lt;/a&gt;, Position the blue marker on the location you are interested in, and then click on all the gas stations you want to include. Finally click on &lt;code&gt;Tankstellen übernehmen&lt;/code&gt; - this will open a &lt;em&gt;JSON&lt;/em&gt; with the data, from there extract the &lt;code&gt;id&lt;/code&gt; (and possibly the other data as well).&lt;/p&gt;</description></item><item><title>openHAB and Telegram Bot</title><link>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</link><pubDate>Mon, 22 Jun 2020 10:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; 2 comes with a &lt;em&gt;Telegram&lt;/em&gt; binding which allows to run a &lt;em&gt;Telegram&lt;/em&gt; Bot. This bot can both send messages to users and groups, and can receive commands and respond to them. That&amp;rsquo;s useful: your home automation system can send all kind of details to your mobile phone.&lt;/p&gt;</description></item><item><title>Monitor ChromeCast status in openHAB</title><link>https://andreas.scherbaum.la/post/2020-06-19_monitor-chromecast-status-in-openhab/</link><pubDate>Fri, 19 Jun 2020 13:10:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-19_monitor-chromecast-status-in-openhab/</guid><description>&lt;p&gt;I really like to monitor things, to catch issues early on. In our home we have a couple &lt;a href="https://en.wikipedia.org/wiki/Chromecast"&gt;ChromeCasts&lt;/a&gt;, both Audio and Video. They are all connected to the &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; system, Once in a while they stop working, and need to be restarted (unplugged and plugged in again). Unfortunately you usually only find that out when you want to stream something, and wonder why either the &lt;em&gt;ChromeCast&lt;/em&gt; does not show up in the device list, or does show up but does not accept the media.&lt;/p&gt;</description></item><item><title>Google Summer of Code 2020 started</title><link>https://andreas.scherbaum.la/post/2020-06-18_google-summer-of-code-2020-started/</link><pubDate>Thu, 18 Jun 2020 18:38:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-18_google-summer-of-code-2020-started/</guid><description>&lt;p&gt;The &lt;a href="https://www.postgresql.org/"&gt;PostgreSQL Project&lt;/a&gt; participates in &lt;a href="https://summerofcode.withgoogle.com/"&gt;Google Summer of Code&lt;/a&gt; (&lt;em&gt;GSoC&lt;/em&gt;) &lt;em&gt;2020&lt;/em&gt;, with 3 projects. After the &lt;a href="https://summerofcode.withgoogle.com/how-it-works/#timeline"&gt;“Community Bonding” period finished last week&lt;/a&gt;, we are now in the active development phase - “Coding” as &lt;em&gt;Google&lt;/em&gt; calls it. All three projects make good progress!&lt;/p&gt;</description></item><item><title>openHAB and HP printer</title><link>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</link><pubDate>Thu, 18 Jun 2020 01:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</guid><description>&lt;p&gt;Recent &lt;em&gt;openHAB&lt;/em&gt; versions come with a new &lt;a href="https://www.openhab.org/addons/bindings/hpprinter/"&gt;HP Printer Binding&lt;/a&gt;, which is a big improvement over the more general &lt;a href="https://www.openhab.org/addons/bindings/ipp/"&gt;IPP Binding&lt;/a&gt; for printers.&lt;/p&gt;</description></item><item><title>New OpenWeatherMap channels missing after openHAB upgrade from 2.4 to 2.5</title><link>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</link><pubDate>Sun, 07 Jun 2020 22:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</guid><description>&lt;p&gt;A while ago I upgraded &lt;em&gt;openHAB&lt;/em&gt; from version &lt;code&gt;2.4&lt;/code&gt; to &lt;code&gt;2.5&lt;/code&gt;. That comes with the &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;usual share of problems&lt;/a&gt;, but eventually I got it working.&lt;/p&gt;</description></item><item><title>openhab2: check if alive</title><link>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</link><pubDate>Tue, 28 Apr 2020 15:42:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</guid><description>&lt;p&gt;As mentioned in my previous &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;openHAB blog post&lt;/a&gt;: it seems to be too much to ask to have a reliable and working display in the kitchen.&lt;/p&gt;&#10;&lt;p&gt;Another problem I found is that the &lt;a href="https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/"&gt;weather data&lt;/a&gt; occasionally does not update. Everything seems to work, no errors in the log, just no updated data. Of course this results in outdated weather info in the kitchen, and the threat that &amp;ldquo;someone&amp;rdquo; will buy a regular weather station and render my 7&amp;quot; &lt;em&gt;Raspberry&lt;/em&gt; display useless.&lt;/p&gt;</description></item><item><title>Show raw openHAB Image Type in HABpanel</title><link>https://andreas.scherbaum.la/post/2020-02-22_show-raw-openhab-image-type-in-habpanel/</link><pubDate>Sat, 22 Feb 2020 14:28:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-22_show-raw-openhab-image-type-in-habpanel/</guid><description>&lt;p&gt;In our Home Automation system, I read weather data from &lt;em&gt;OpenWeatherMap&lt;/em&gt;. &lt;a href="https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/"&gt;I blogged about the implementation before&lt;/a&gt;. The weather data provides an icon which can be used to show the current weather:&lt;/p&gt;</description></item><item><title>Weather Forecast in openHAB based on OpenWeatherMap, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</link><pubDate>Fri, 25 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</guid><description>&lt;p&gt;After setting up &lt;a href="https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/"&gt;OpenWeatherMap in openHAB&lt;/a&gt;, I had another project on my list: send a forecast for the next day.&lt;/p&gt;&#10;&lt;p&gt;That is rather easy to do with a &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html#time-based-triggers"&gt;Cron&lt;/a&gt; &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;rule&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Install OpenWeatherMap in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</link><pubDate>Thu, 24 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</guid><description>&lt;p&gt;Next item on my home automation todo list: weather, and forecast. No good system without that data!&lt;/p&gt;&#10;&lt;p&gt;After exploring the options which &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; supports, I settled for &lt;a href="https://openweathermap.org/"&gt;OpenWeatherMap&lt;/a&gt;. Note: you need an account with &lt;em&gt;OWM&lt;/em&gt;, the basic functionality is free, the paid options give you more and better forecast.&lt;/p&gt;</description></item><item><title>Notification when washing machine or dryer are finished, with openHAB</title><link>https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/</link><pubDate>Fri, 06 Jul 2018 18:09:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/</guid><description>&lt;p&gt;As part of my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;home automation project&lt;/a&gt;, I wanted the washing machine and the dryer to send notifications when they are finished. Both machines are in a separate room, and their alarm beeps are hard to hear in the other parts of the flat. Also because of the noise both machines make during operation, the door is usually closed.&lt;/p&gt;&#10;&lt;p&gt;After checking several options how to interact with the washing machine and the dryer (from listening to the audio signals to having light sensors glued over the status led, open the frame and install something inside, and a small cam with picture recognition), I settled with measuring the power consumption. Next step: find the right kit.&lt;/p&gt;</description></item><item><title>Add a FRITZ!Box to openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</link><pubDate>Wed, 04 Jul 2018 14:31:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</guid><description>&lt;p&gt;Next step &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;on my way to add home automation&lt;/a&gt;: the &lt;em&gt;FRITZ!Box&lt;/em&gt;. Mostly for the current IP-address, and call information.&lt;/p&gt;&#10;&lt;p&gt;After some research it became obvious that more manual work is required, hence again something which can be automated.&lt;/p&gt;</description></item><item><title>BOOLEAN datatype with PHP-compatible output</title><link>https://andreas.scherbaum.la/post/2008-01-07_boolean-datatype-with-php-compatible-output/</link><pubDate>Mon, 07 Jan 2008 12:43:31 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2008-01-07_boolean-datatype-with-php-compatible-output/</guid><description>&lt;p&gt;If you use pure &lt;em&gt;PHP&lt;/em&gt; (no database abstraction layer) with &lt;em&gt;PostgreSQL&lt;/em&gt;, you may run into the problem that your &lt;code&gt;BOOLEAN&lt;/code&gt; columns are not recognized by &lt;em&gt;PHP&lt;/em&gt; but the value is instead returned as a string.&lt;/p&gt;</description></item></channel></rss>