<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[gelöst] parser adapter - problem mit foreca.com]]></title><description><![CDATA[<p dir="auto">Ich glaub, der parser und ich werden keine Freunde. :(<br />
Nicht nur das Verstehen (was geht mir regexp), sondern auch, weil wohl "gültiges" nicht zu funktionieren scheint... <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<p dir="auto">Versuche von <a href="https://www.foreca.com/Germany/Saarbrucken" rel="nofollow ugc">https://www.foreca.com/Germany/Saarbrucken</a> Temperatur und rel. Luftfeuchtigkeit auszulesen.</p>
<p dir="auto">Die Temperatur:</p>
<pre><code>&lt;span class="warm txt-xxlarge"&gt;&lt;strong&gt;+30&lt;/strong&gt; °C&lt;/span&gt;&lt;br /&gt;
</code></pre>
<p dir="auto">haut hin mit<br />
regexp</p>
<pre><code>warm txt-xxlarge"&gt;&lt;strong&gt;(.?\d+)&lt;\/strong&gt;
</code></pre>
<p dir="auto">aber die LF</p>
<pre><code>Relative Feuchtigkeit:   &lt;strong&gt;25.3%&lt;/strong&gt;&lt;br /&gt;
</code></pre>
<p dir="auto">nicht, obwohl <a href="https://regex101.com/" rel="nofollow ugc">https://regex101.com/</a> sagt, die regexp</p>
<pre><code>Relative Feuchtigkeit:   &lt;strong&gt;(\d+\.\d)%
</code></pre>
<p dir="auto">wäre gültig und findet auch den Wert.<br />
Aber im Adapter log steht "cannot find number in answer". :(</p>
<pre><code>{
  "_id": "parser.0.hum",
  "common": {
    "name": "hum",
    "write": false,
    "read": true,
    "unit": "",
    "type": "string",
    "role": "temperature"
  },
  "native": {
    "link": "https://www.foreca.com/Germany/Saarbrucken",
    "regex": "Relative Feuchtigkeit:   &lt;strong&gt;(\\d+\\.\\d)%",
    "interval": "",
    "factor": 1,
    "item": 0,
    "offset": 0,
    "substitute": "",
    "substituteOld": false,
    "comma": false
  },
  "type": "state",
  "from": "system.adapter.admin.0",
  "ts": 1563809908397,
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}
</code></pre>
]]></description><link>https://forum.iobroker.net/topic/23992/gelöst-parser-adapter-problem-mit-foreca-com</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 23:00:15 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/23992.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jul 2019 16:10:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 17:11:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a> sagte in <a href="/post/283816">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto">PS ich hatte mit der folgenden Seite gearbeitet:<br />
<a href="https://www.foreca.de/Deutschland/Saarland/Saarbrucken" rel="nofollow ugc">https://www.foreca.de/Deutschland/Saarland/Saarbrucken</a></p>
</blockquote>
<p dir="auto">Ah, cool.<br />
Bringt  mich auf eine Idee, glaube, ich versuche es mal mit<br />
<a href="https://m.foreca.de/Deutschland/Saarland/Saarbrucken" rel="nofollow ugc">https://m.foreca.de/Deutschland/Saarland/Saarbrucken</a><br />
verursacht vermutlich weniger traffic. <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f923.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--rolling_on_the_floor_laughing" style="height:23px;width:auto;vertical-align:middle" title=":rolling_on_the_floor_laughing:" alt="🤣" /></p>
]]></description><link>https://forum.iobroker.net/post/283820</link><guid isPermaLink="true">https://forum.iobroker.net/post/283820</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 17:11:26 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 17:03:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a><br />
Aaah: Inline code!</p>
<p dir="auto">Ich habe helles Theme, da sehe ich das nicht</p>
<p dir="auto">PS ich hatte mit der folgenden Seite gearbeitet:</p>
<p dir="auto"><a href="https://www.foreca.de/Deutschland/Saarland/Saarbrucken" rel="nofollow ugc">https://www.foreca.de/Deutschland/Saarland/Saarbrucken</a></p>
]]></description><link>https://forum.iobroker.net/post/283816</link><guid isPermaLink="true">https://forum.iobroker.net/post/283816</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 17:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 17:02:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a> sagte in <a href="/post/283811">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a> sagte in <a href="/post/283810">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto">BTW, wie macht man das hier im Forum mit Text weiß hinterlegen?</p>
</blockquote>
<p dir="auto">???</p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1563814899820-wei%C3%9F.jpg" alt="weiß.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Hab's jetzt beim Zitieren gefunden, man muss `` um den Text machen. =)</p>
]]></description><link>https://forum.iobroker.net/post/283815</link><guid isPermaLink="true">https://forum.iobroker.net/post/283815</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 17:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:52:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a> sagte in <a href="/post/283810">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto">BTW, wie macht man das hier im Forum mit Text weiß hinterlegen?</p>
</blockquote>
<p dir="auto">???</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a> sagte in <a href="/post/283810">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto">das ? am Schluss muss natürlich auch hin, sonst gehen einstellige Werte nicht</p>
</blockquote>
<p dir="auto">nein, für Einstellige Werte hast du das \d+ an Anfang</p>
<p dir="auto">das ? am Schluss ist für fehlende Nachkommastellen</p>
]]></description><link>https://forum.iobroker.net/post/283811</link><guid isPermaLink="true">https://forum.iobroker.net/post/283811</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:50:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a><br />
Jo, das mit der "25" hatte ich schon gesehen und gefixt.<br />
Danke, das ? am Schluss muss natürlich auch hin, sonst gehen einstellige Werte nicht. <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f633.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--flushed" style="height:23px;width:auto;vertical-align:middle" title=":flushed:" alt="😳" /> (wobei das bei der Luftfeuchtigkeit in Deutschland, vermutlich eher selten vorkommt. ;) )</p>
<p dir="auto">BTW, wie macht man das hier im Forum mit Text weiß hinterlegen?</p>
]]></description><link>https://forum.iobroker.net/post/283810</link><guid isPermaLink="true">https://forum.iobroker.net/post/283810</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:50:50 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:45:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a> sagte in <a href="/post/283807">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a></p>
<p dir="auto">hab im Moment</p>
<pre><code>(\d+\.?\d)%
</code></pre>
</blockquote>
<p dir="auto">Eben waren es glatte 25 ohne Punkt und nachkommastelle.<br />
ich glaube da klappt dein Regex nicht mehr</p>
]]></description><link>https://forum.iobroker.net/post/283808</link><guid isPermaLink="true">https://forum.iobroker.net/post/283808</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:44:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a></p>
<p dir="auto">hab im Moment</p>
<pre><code>(\d+\.?\d)%
</code></pre>
<p dir="auto">scheint, laut regexp101 mit und ohne Komma zu treffen...</p>
]]></description><link>https://forum.iobroker.net/post/283807</link><guid isPermaLink="true">https://forum.iobroker.net/post/283807</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:44:54 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:41:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a></p>
<p dir="auto">nimm bitte <code>ht"&gt;(\d+\.?\d?)%</code></p>
]]></description><link>https://forum.iobroker.net/post/283806</link><guid isPermaLink="true">https://forum.iobroker.net/post/283806</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:35:02 GMT]]></title><description><![CDATA[<p dir="auto">Hab das Problem.</p>
<p dir="auto">Die Seite, die ich sehe, ist deutsch.<br />
Die Seite, die der Parser adapter bekommt, ist Englisch.<br />
Meine regexp kann also gar nicht feuern. :(<br />
Auf den Quelltext angepasst, der im Parser angezeigt wird, geht's. :D</p>
]]></description><link>https://forum.iobroker.net/post/283802</link><guid isPermaLink="true">https://forum.iobroker.net/post/283802</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:35:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:42:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a></p>
<p dir="auto">Mein Fehler, ich meinte die ganze Seite</p>
<p dir="auto">ABER...</p>
<p dir="auto">ich fürchte dass foreca etwas gegen automatische Auslesung hat.<br />
Es gibt zwei URL, einmalmit Saarbrücken und einmal mit Saarbrucken.</p>
<p dir="auto">Da du aber bei regex101 keinen URL eingeben kannst, sondern den Quelltext, den du aus deinem Browser geholt hast, klappt es da.</p>
<p dir="auto">Eine automatische Auslesung bei Saarbrücken gibt den Fehler "your browser sent an invalid request"<br />
bei Saarbrucken scheint es sich um die mobile Seite zu handeln, da dort auch Auflösungen mit enthalten sind</p>
]]></description><link>https://forum.iobroker.net/post/283800</link><guid isPermaLink="true">https://forum.iobroker.net/post/283800</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:42:49 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:26:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a><br />
<img src="/assets/uploads/files/1563812755831-regex.jpg" alt="regex.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/283798</link><guid isPermaLink="true">https://forum.iobroker.net/post/283798</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:17:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a></p>
<p dir="auto">Mach mal einen screenshot vom Regex im Adapter (Bleistift)</p>
]]></description><link>https://forum.iobroker.net/post/283797</link><guid isPermaLink="true">https://forum.iobroker.net/post/283797</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:16:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a><br />
Macht keinen Unterschied.<br />
Hatte erst "number", aber auch damit lief es nicht.<br />
Dachte mit dann, um allen typ Problemen aus dem Weg zu gehen, versuche ich mal "string", das sollte ja alles schlucken - hat's aber auch nicht. ;)</p>
]]></description><link>https://forum.iobroker.net/post/283796</link><guid isPermaLink="true">https://forum.iobroker.net/post/283796</guid><dc:creator><![CDATA[padrino]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:16:35 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] parser adapter - problem mit foreca.com on Mon, 22 Jul 2019 16:12:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/padrino" aria-label="Profile: padrino">@<bdi>padrino</bdi></a> sagte in <a href="/post/283793">parser adapter - funktioniert nicht mit foreca.com</a>:</p>
<blockquote>
<p dir="auto">"type": "string",</p>
</blockquote>
<p dir="auto">was ist jetzt mit Number?</p>
]]></description><link>https://forum.iobroker.net/post/283794</link><guid isPermaLink="true">https://forum.iobroker.net/post/283794</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Mon, 22 Jul 2019 16:12:13 GMT</pubDate></item></channel></rss>