<?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]RSS des Forums unterschiedlich]]></title><description><![CDATA[<p dir="auto">weiß jmd der admins, warum die rss einträge unter recent.rss keine bilder haben bzw der ganze thread gekürzt ist.</p>
<p dir="auto">im rss object der einzelnen thread sind z.b. bilder enthalten</p>
<p dir="auto">soweit ich weiß, können die einträge/beiträge pro user nicht mit rss durchsucht werden - stimmt das ? es gibt zwar die topics des users als rss aber nicht die beiträge</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: Jey-Cee">@<bdi>Jey-Cee</bdi></a>  weißt du da noch was darüber <a class="plugin-mentions-user plugin-mentions-a" href="/user/stabilostick" aria-label="Profile: Stabilostick">@<bdi>Stabilostick</bdi></a> war wohl schon länger nicht mehr online</p>
]]></description><link>https://forum.iobroker.net/topic/40401/gelöst-rss-des-forums-unterschiedlich</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 09:30:42 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/40401.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Jan 2021 11:03:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 13:24:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto">supi - jetzt bin ich schon weiter gekommen - keine unterbrechungen (ent-loggen) mehr - beobachte mal weiter</p>
<p dir="auto"><img src="/assets/uploads/files/1612961478063-image-2.png" alt="Image 2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">jetzt ist halt nur das mit den 8 werten , die ankommen, etwas doof - es stimmt meine anzeige nicht mit der des forums überein, da dort mehr wie 8 sind</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a> - hat sich somit erledigt</p>
]]></description><link>https://forum.iobroker.net/post/578166</link><guid isPermaLink="true">https://forum.iobroker.net/post/578166</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Wed, 10 Feb 2021 13:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:56:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> sagte in <a href="/post/578073">[gelöst]RSS des Forums unterschiedlich</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a> das ist kein echter Token, nur ein Dummy ;-)</p>
</blockquote>
<p dir="auto">natürlich</p>
]]></description><link>https://forum.iobroker.net/post/578074</link><guid isPermaLink="true">https://forum.iobroker.net/post/578074</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:55:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a> das ist kein echter Token, nur ein Dummy ;-)</p>
]]></description><link>https://forum.iobroker.net/post/578073</link><guid isPermaLink="true">https://forum.iobroker.net/post/578073</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:55:33 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:53:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> sagte in <a href="/post/578063">[gelöst]RSS des Forums unterschiedlich</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a> Theoretisch schon, natürlich nur dein eigenes, aber mir ist der API Endpoint dafür nicht bekannt.</p>
</blockquote>
<p dir="auto">wollt nur meinen, weil da oben ein token steht.<br />
das token erhält man doch nach der Authentifizierung<br />
und damit greift man auf die Applikation zu.<br />
Wenn ich jetzt den richtigen request formuliere (oder so wie ich sehe, abreitet das forum hier teilweise über socketio), dann ist das passwort zu dem token da oben geändert. :)</p>
]]></description><link>https://forum.iobroker.net/post/578067</link><guid isPermaLink="true">https://forum.iobroker.net/post/578067</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:52:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a></p>
<p dir="auto">ich hatte mal - vor langer zeit - im forum vom nodebb (forumsoftware) etwas anderes nachgefragt - die waren sehr hilfreich - evtl könntest du dort mal die frage losbringen und das ergebnis weiterleiten</p>
]]></description><link>https://forum.iobroker.net/post/578065</link><guid isPermaLink="true">https://forum.iobroker.net/post/578065</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:49:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a> Theoretisch schon, natürlich nur dein eigenes, aber mir ist der API Endpoint dafür nicht bekannt.</p>
]]></description><link>https://forum.iobroker.net/post/578063</link><guid isPermaLink="true">https://forum.iobroker.net/post/578063</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:48:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a> das weiß nur <a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: Jey-Cee">@<bdi>Jey-Cee</bdi></a></p>
]]></description><link>https://forum.iobroker.net/post/578061</link><guid isPermaLink="true">https://forum.iobroker.net/post/578061</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:47:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a><br />
könnte man mit so einem Token auch Passwörter ändern?</p>
]]></description><link>https://forum.iobroker.net/post/578059</link><guid isPermaLink="true">https://forum.iobroker.net/post/578059</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:42:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> sagte in <a href="/post/578031">[gelöst]RSS des Forums unterschiedlich</a>:</p>
<blockquote></blockquote>
<p dir="auto">bekomme gerade in createSession</p>
<pre><code>{'message':'Request failed with status code 401','name':'Error','stack':'Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/iobroker.javascript/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/iobroker/node_modules/iobroker.javascript/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/iobroker.javascript/node_modules/axios/lib/adapters/http.js:260:11)\n at IncomingMessage.emit (events.js:326:22)\n at IncomingMessage.EventEmitter.emit (domain.js:483:12)\n at endReadableNT (_stream_readable.js:1241:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)','config':{'url':'https://forum.iobroker.net/api/notifications','method':'get','headers':{'Authorization':'Bearer 64e1errrrrrrr6d02f68f2095','user-agent':'liv-in-sky'},'transformRequest':[null],'transformResponse':[null],'timeout':0,'xsrfCookieName':'XSRF-TOKEN','xsrfHeaderName':'X-XSRF-TOKEN','maxContentLength':-1,'maxBodyLength':-1}}
</code></pre>
<p dir="auto">wahrscheinlich bin ich wieder gesperrt und muß warten</p>
]]></description><link>https://forum.iobroker.net/post/578050</link><guid isPermaLink="true">https://forum.iobroker.net/post/578050</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:42:06 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 10:18:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> sagte in <a href="/post/578001">[gelöst]RSS des Forums unterschiedlich</a>:</p>
<blockquote>
<p dir="auto">könnte es sein, dass die anzahl der notification auf 8 begrenzt ist.</p>
</blockquote>
<p dir="auto">Bei mir hat er 13 angezeigt, keine Ahnung wovon das  Abhängt oder wie man das beeinflussen kann.</p>
<p dir="auto">Hier mal ein Funktionierendes Beispiel:</p>
<pre><code>const axios = require('axios');
const BASE_URL = "https://forum.iobroker.net/api/notifications";
const token = '64e1ec8rrrrrrrrrrrr2f68f2095';
const axiosInstance = axios.create({ baseURL: BASE_URL });

const createSession = async () =&gt; {
    console.log("create session");
    const options = {
        headers: {
            'Authorization': `Bearer ${token}`,
            'user-agent': 'liv-in-sky',
        }
    };
    const res = await axios.get(BASE_URL, options);
    const cookie = res.headers["set-cookie"][0]; // get cookie from request
    console.log(cookie);
    axiosInstance.defaults.headers.Cookie = cookie;   // attach cookie to axiosInstance for future requests
};

createSession()
    .then((res) =&gt; {
            getNotificationsSchedule();
}).catch( (err) =&gt; {
    console.log(err);
})

function getNotificationsSchedule() {
    schedule(' * * * * *',  async function () {
        axiosInstance.get(BASE_URL).then( (res) =&gt; {console.log(res.status)})
    })
}
</code></pre>
]]></description><link>https://forum.iobroker.net/post/578031</link><guid isPermaLink="true">https://forum.iobroker.net/post/578031</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Wed, 10 Feb 2021 10:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Wed, 10 Feb 2021 09:43:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alcalzone" aria-label="Profile: AlCalzone">@<bdi>AlCalzone</bdi></a></p>
<p dir="auto">hi - <a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: Jey-Cee">@<bdi>Jey-Cee</bdi></a>  hat mir sehr viel geholfen, ich wollte mir die messages des forums in die vis holen. der zugriff mit axios mit:</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>const axios=require('axios');

function getMyData(){

axios.get('https://forum.iobroker.net/api/notifications', {

 headers: {

   'Authorization': `Bearer b64zzzzzzzzzzzzd02f68f2095`,

   'user-agent': 'liv-in-sky',
   
 }
})

.then((res) =&gt; {
log(JSON.stringify(res.config))
 console.log(JSON.stringify(res.data)) 
let myJSArrNotifier=JSON.parse(JSON.stringify(res.data.notifications))
let count=0
for (let index=0;index&lt;myJSArrNotifier.length;index++){
   if(!myJSArrNotifier[index].read) count++   
}
setState("0_userdata.0.UnreadForumMessages",count)
})
}

schedule(" */2 * * * *", getMyData);

getMyData();
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto">klappt auch. das problem - bei zu vielen aufrufen (5) werde ich aus dem forum im browser ausgeloggt bzw. muss mich neu anmelden, wenn das script läuft. die lösung wäre eine verbindung offenzulassen und die daten dann immer mit einem cookie zu holen. dazu hat mir Jey-Cee einen link gepostet. dieser zeig auf, wie man dies machen könnte <a href="https://stackoverflow.com/questions/49482429/axios-on-nodejs-wont-retain-session-on-requested-server-while-postman-does" rel="nofollow ugc">https://stackoverflow.com/questions/49482429/axios-on-nodejs-wont-retain-session-on-requested-server-while-postman-does</a>  . leider bekomme ich das nicht hin.</p>
<p dir="auto">mein script sieht so aus - aber da kommt dann eine fehlermeldung <a href="https://forum.iobroker.net/post/577651">https://forum.iobroker.net/post/577651</a></p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>
const axios=require('axios');
const BASE_URL = "https://forum.iobroker.net/api/notifications";
const axiosInstance = axios.create({ baseURL: BASE_URL });

const createSession = async () =&gt; {
 log("create session");
 const headers = {


   'Authorization': `Bearer 64e1ec8rrrrrrrrrrrr2f68f2095`,

   'user-agent': 'liv-in-sky',
 };
 const res = await axios.get(BASE_URL, headers);
 const cookie = res.headers["set-cookie"][0]; // get cookie from request
 axiosInstance.defaults.headers.Cookie = cookie;   // attach cookie to axiosInstance for future requests
};



  

schedule(' */2 * * * *',  async function () {
    log(axiosInstance.defaults.headers)
 const resp =  await axiosInstance.get('/protected') .then((resp) =&gt; {log("123")
                                                            console.log(JSON.stringify(resp.data))
                                                            let myJSArrNotifier=JSON.parse(JSON.stringify(resp.data.notifications))
                                                            let count=0
                                                            for (let index=0;index&lt;myJSArrNotifier.length;index++){
                                                                                                                  if(!myJSArrNotifier[index].read) count++   
                                                                                                                  }
                                                            setState("0_userdata.0.UnreadForumMessages",count)
 })
});


</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto">hast du evtl lust, mir damit zu helfen. ich glaube mittlerweile, dass es kein cookie ankommt - bzw, das man auf diese art der auth kein cookie bekommt (in meinem script) - falls du zeit und lust hast, könntest du gerne meinen token benutzen (über chat)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: Jey-Cee">@<bdi>Jey-Cee</bdi></a><br />
könnte es sein, dass die anzahl der notification auf 8 begrenzt ist. ich hatte nämlich 4 ungelesene nachrichten und über 10 benachrichtigungen im browser. das json aber brachte nur 2 ungelesene und insgesmt 8 notifications. die 2 anderen ungelesenen waren nacchtricht 10 und 11 und somit nicht mehr im json</p>
]]></description><link>https://forum.iobroker.net/post/578001</link><guid isPermaLink="true">https://forum.iobroker.net/post/578001</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Wed, 10 Feb 2021 09:43:36 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 15:32:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> aber so wie es aussieht wird die session nicht gemacht - das log "create session" fehlt im iobroker log - zeile 9</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>


const axios=require('axios');
const BASE_URL = "https://forum.iobroker.net/api/notifications";
const axiosInstance = axios.create({ baseURL: BASE_URL });

const createSession = async () =&gt; {
 log("create session");
 const headers = {


   'Authorization': `Bearer 64e1fffffffffff02f68f2095`,

   'user-agent': 'liv-in-sky',
 };
 const res = await axios.get(BASE_URL, headers);
 const cookie = res.headers["set-cookie"][0]; // get cookie from request
 axiosInstance.defaults.headers.Cookie = cookie;   // attach cookie to axiosInstance for future requests
};



  

schedule(' * * * * *',  async function () {
    log(axiosInstance.defaults.headers)
 const resp =  await axiosInstance.get('/protected') .then((resp) =&gt; {log("123")
                                                            console.log(JSON.stringify(resp.data))
                                                            let myJSArrNotifier=JSON.parse(JSON.stringify(resp.data.notifications))
                                                            let count=0
                                                            for (let index=0;index&lt;myJSArrNotifier.length;index++){
                                                                                                                  if(!myJSArrNotifier[index].read) count++   
                                                                                                                  }
                                                            setState("0_userdata.0.UnreadForumMessages",count)
 })
});



</code></pre>
<p dir="auto"></p></section></section><p></p>
]]></description><link>https://forum.iobroker.net/post/577679</link><guid isPermaLink="true">https://forum.iobroker.net/post/577679</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 15:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 15:27:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto">habe das schedule mal so geändert - das log des headers zeigt kein cookie, was ja in der instanz sein sollte</p>
<pre><code> schedule(' * * * * *',  async function () {
     log(axiosInstance.defaults.headers)
  const resp =  await axiosInstance.get('/protected') .then((resp) =&gt; {log("123")
                                                             console.log(JSON.stringify(resp.data))
                                                             let myJSArrNotifier=JSON.parse(JSON.stringify(resp.data.notifications))
                                                             let count=0
                                                             for (let index=0;index&lt;myJSArrNotifier.length;index++){
                                                                                                                   if(!myJSArrNotifier[index].read) count++   
                                                                                                                   }
                                                             setState("0_userdata.0.UnreadForumMessages",count)
  })
});
</code></pre>
<p dir="auto">ich brauch mal ne pause - habe jetzt soviel gelesen, dass ich garnix mehr weiß :-)</p>
]]></description><link>https://forum.iobroker.net/post/577676</link><guid isPermaLink="true">https://forum.iobroker.net/post/577676</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 15:27:29 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 15:06:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> der token muss ohne $("") da rein.<br />
Das wird vermutlich auch das problem sein.</p>
]]></description><link>https://forum.iobroker.net/post/577666</link><guid isPermaLink="true">https://forum.iobroker.net/post/577666</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Tue, 09 Feb 2021 15:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 15:02:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto">sorry - weiter komm ich nicht - dann wirft es einen fehler aus</p>
<p dir="auto"><img src="/assets/uploads/files/1612881851693-image-7.png" alt="Image 7.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">ist echt nicht meine stärke - das daten holen</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>


const axios=require('axios');
const BASE_URL = "https://forum.iobroker.net/api/notifications";
const axiosInstance = axios.create({ baseURL: BASE_URL });

const createSession = async () =&gt; {
 console.log("create session");
 const headers = {


   'Authorization': `Bearer ${"b64e1eyyyyyyyyyyyyf68f2095"}`,

   'user-agent': 'liv-in-sky',
 };
 const res = await axios.get(BASE_URL, headers);
 const cookie = res.headers["set-cookie"][0]; // get cookie from request
 axiosInstance.defaults.headers.Cookie = cookie;   // attach cookie to axiosInstance for future requests
};



  

schedule(' * * * * *',  async function () {
    log(axiosInstance.defaults.headers)
 const resp =  await axiosInstance.get('/protected') .then((resp) =&gt; {log("123")
                                                            console.log(JSON.stringify(resp.data))
                                                            let myJSArrNotifier=JSON.parse(JSON.stringify(resp.data.notifications))
                                                            let count=0
                                                            for (let index=0;index&lt;myJSArrNotifier.length;index++){
                                                                                                                  if(!myJSArrNotifier[index].read) count++   
                                                                                                                  }
                                                            setState("0_userdata.0.UnreadForumMessages",count)
 })
});
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto">der fehler kommt vor(das log erscheint nicht mehr - nur das schedule wird noch aufgerufen):</p>
<pre><code> const resp = axiosInstance.get('/protected') .then((resp) =&gt; {log("123")
</code></pre>
]]></description><link>https://forum.iobroker.net/post/577651</link><guid isPermaLink="true">https://forum.iobroker.net/post/577651</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 15:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 13:52:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto"><img src="/assets/uploads/files/1612878670631-image-5.png" alt="Image 5.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">passiert wenn ich</p>
<p dir="auto"><img src="/assets/uploads/files/1612878715190-image-6.png" alt="Image 6.png" class=" img-fluid img-markdown" /><br />
drücke</p>
]]></description><link>https://forum.iobroker.net/post/577625</link><guid isPermaLink="true">https://forum.iobroker.net/post/577625</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 13:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 13:35:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto"><img src="/assets/uploads/files/1612877699112-image-4.png" alt="Image 4.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/577618</link><guid isPermaLink="true">https://forum.iobroker.net/post/577618</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 13:35:04 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 15:04:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> ja funktioniert, den Token hab ich für dich.<br />
Mit Axios funktioniert das so:</p>
<pre><code>axios.get('https://forum.iobroker.net/api/notifications', {
  headers: {
    'Authorization': `Bearer access_token`,
    'user-agent': 'liv-in-sky',
  }
})
.then((res) =&gt; {
  console.log(res.data)
})
</code></pre>
]]></description><link>https://forum.iobroker.net/post/577551</link><guid isPermaLink="true">https://forum.iobroker.net/post/577551</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Tue, 09 Feb 2021 15:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Tue, 09 Feb 2021 11:16:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> sagte in <a href="/post/569661">[gelöst]RSS des Forums unterschiedlich</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> geht schon über die API aber Authentifiziert musst du sein.<br />
Geht aber nur mit token. Ich schau mir mal an wie das geht.</p>
</blockquote>
<p dir="auto">hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: Jey-Cee">@<bdi>Jey-Cee</bdi></a>  - hattest du schon mal zeit bzw eine idee dazu</p>
]]></description><link>https://forum.iobroker.net/post/577545</link><guid isPermaLink="true">https://forum.iobroker.net/post/577545</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 09 Feb 2021 11:16:43 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Fri, 29 Jan 2021 07:23:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a> das wäre klasse - request und token ist nicht meine stärke</p>
]]></description><link>https://forum.iobroker.net/post/569829</link><guid isPermaLink="true">https://forum.iobroker.net/post/569829</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Fri, 29 Jan 2021 07:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Thu, 28 Jan 2021 20:42:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> geht schon über die API aber Authentifiziert musst du sein.<br />
Geht aber nur mit token. Ich schau mir mal an wie das geht.</p>
]]></description><link>https://forum.iobroker.net/post/569661</link><guid isPermaLink="true">https://forum.iobroker.net/post/569661</guid><dc:creator><![CDATA[Jey Cee]]></dc:creator><pubDate>Thu, 28 Jan 2021 20:42:32 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Thu, 28 Jan 2021 18:46:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jey-cee" aria-label="Profile: jey-cee">@<bdi>jey-cee</bdi></a></p>
<p dir="auto">hätte noch eine frage - komme ich irgendwie an die anzahl meiner momentanen notification im forum dran ? ohne webseiten einloggen und html parsen - wieder über api - oder ist das gesperrt, weil user spezifisch</p>
<p dir="auto">evtl sogar, welche da noch nicht gelesen sind</p>
]]></description><link>https://forum.iobroker.net/post/569565</link><guid isPermaLink="true">https://forum.iobroker.net/post/569565</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Thu, 28 Jan 2021 18:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Sat, 02 Jan 2021 14:24:15 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">bin mir noch nicht sicher - erstmal sehen was dabei rauskommt - wenn es sinn macht, wird geteilt</p>
]]></description><link>https://forum.iobroker.net/post/549398</link><guid isPermaLink="true">https://forum.iobroker.net/post/549398</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Sat, 02 Jan 2021 14:24:15 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]RSS des Forums unterschiedlich on Sat, 02 Jan 2021 14:15:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> sagte in <a href="/post/549324">[gelöst]RSS des Forums unterschiedlich</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">du wirst auch in meinem script überwacht werden 😈</p>
</blockquote>
<p dir="auto">und du wirst sicherlich dieses Skript <strong>incl. Tabelle</strong> wieder teilen</p>
]]></description><link>https://forum.iobroker.net/post/549387</link><guid isPermaLink="true">https://forum.iobroker.net/post/549387</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sat, 02 Jan 2021 14:15:32 GMT</pubDate></item></channel></rss>