<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tanken on ads' corner</title><link>https://andreas.scherbaum.la/tags/tanken/</link><description>Recent content in Tanken on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 28 Jan 2021 20:25:00 +0100</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/tanken/index.xml" rel="self" type="application/rss+xml"/><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>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>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></channel></rss>