Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Daten aus PW geschützte Website

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Daten aus PW geschützte Website

    This topic has been deleted. Only users with topic management privileges can see it.
    • OliverIO
      OliverIO @Negalein last edited by

      @negalein

      ja leider

      F 1 Reply Last reply Reply Quote 0
      • F
        fastfoot @OliverIO last edited by

        @oliverio sagte in Daten aus PW geschützte Website:

        @negalein

        ja leider

        doch, geht grundsätzlich

        let p=require('node:process');
        //p.env.TZ='Europe/Berlin';
        p.env.TZ='America/New_York';
        log(new Date().toString())
        
        OliverIO 1 Reply Last reply Reply Quote 1
        • OliverIO
          OliverIO @fastfoot last edited by

          @fastfoot

          super, danke, funktioniert

          1 Reply Last reply Reply Quote 0
          • OliverIO
            OliverIO @Negalein last edited by

            @negalein

            die folgenden 2 Zeilen an der angegebenen Stelle einfügen

            //ab hier nix verändern
            let p=require('node:process');
            p.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
            const axios = require('axios');
            

            dann müsste es wieder laufen.
            bitte belegentlich mal das skript komplett stoppen,
            dann die Zeile p.env auskommentieren und neu starten
            um zu schauen ob der fehler weg ist.

            F Negalein Dr. Bakterius 3 Replies Last reply Reply Quote 1
            • F
              fastfoot @OliverIO last edited by

              @oliverio sagte in Daten aus PW geschützte Website:

              um zu schauen ob der fehler weg ist.

              das wird nicht reichen, das environment verändert sich durch Stoppen nicht mehr(vorhin mit der TZ getestet). Ein restart des JS-Adapters sollte es aber tun

              1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @OliverIO last edited by

                @oliverio sagte in Daten aus PW geschützte Website:

                let p=require('node:process');
                p.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;

                kommt nichts aktuelles an

                OliverIO 1 Reply Last reply Reply Quote 0
                • OliverIO
                  OliverIO @Negalein last edited by OliverIO

                  @negalein

                  hier mal nochmal das ganze skript

                  //hier bitte konfigurieren
                  //datenpunkt sollte vor skriptstart bereits existieren und mit Typ Text erstellt worden sein
                  const dpPrices = "0_userdata.0.IQ_Sprit.IQ_Sprit";
                  let user = "xxx";
                  let pass = "xxx";
                  
                  //ab hier nix verändern
                  let p=require('node:process');
                  p.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
                  const axios = require('axios');
                  const cheerio = require("cheerio");
                  const tough = require('tough-cookie');
                  const { wrapper } = require('axios-cookiejar-support');
                  
                  const cookieJar = new tough.CookieJar();
                  const client = wrapper(axios.create({
                      jar: cookieJar,
                      withCredentials: true,
                  }));
                  
                  let $;
                  async function main() {
                  
                      const optionsStart = {
                          method: 'GET',
                          url: 'https://netservice.iqcard.at/de/Kunden',
                          "headers": {
                              "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                              "accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7",
                              "cache-control": "no-cache",
                              "pragma": "no-cache",
                              "priority": "u=0, i",
                              "sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
                              "sec-ch-ua-mobile": "?0",
                              "sec-ch-ua-platform": "\"Windows\"",
                              "sec-fetch-dest": "document",
                              "sec-fetch-mode": "navigate",
                              "sec-fetch-site": "none",
                              "sec-fetch-user": "?1",
                              "upgrade-insecure-requests": "1",
                              "Referrer-Policy": "strict-origin-when-cross-origin"
                          }
                      };
                  
                      const optionsPreisinfo = {
                          method: 'GET',
                          url: 'https://netservice.iqcard.at/de/netservice/Preisinfo',
                          "headers": {
                              "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                              "accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7",
                              "cache-control": "no-cache",
                              "pragma": "no-cache",
                              "priority": "u=0, i",
                              "sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
                              "sec-ch-ua-mobile": "?0",
                              "sec-ch-ua-platform": "\"Windows\"",
                              "sec-fetch-dest": "document",
                              "sec-fetch-mode": "navigate",
                              "sec-fetch-site": "same-origin",
                              "sec-fetch-user": "?1",
                              "upgrade-insecure-requests": "1",
                              'Referer': 'https://netservice.iqcard.at/de/Kunden',
                              "Referrer-Policy": "strict-origin-when-cross-origin"
                          }
                      };
                  
                      let responseStart, responseLogin, responsePreis;
                      try {
                          responseStart = await client(optionsStart);
                          responseLogin = await client(getLoginOptions(responseStart));
                          responsePreis = await client(optionsPreisinfo);
                  
                      } catch (error) {
                          console.error('Error making the request:');
                          console.error(error);
                          return;
                      }
                      const data = analyze(responsePreis.data);
                      writeDatapoint(data)
                  }
                  
                  function getLoginOptions(response) {
                      //   jQuery("#content > div.col_one_third.nobottommargin > div > form > input[type=hidden]").attr("value")
                      $ = cheerio.load(response.data);
                      let token = $("#content > div.col_one_third.nobottommargin > div > form > input[type=hidden]").attr("value");
                      return {
                          method: 'POST',
                          url: 'https://netservice.iqcard.at/de/Kunden?handler=SignInDb',
                          data: `Username=${user}&Password=${pass}&__RequestVerificationToken=${token}`,
                          "headers": {
                              "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                              "accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7",
                              "cache-control": "no-cache",
                              "content-type": "application/x-www-form-urlencoded",
                              "pragma": "no-cache",
                              "priority": "u=0, i",
                              "sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
                              "sec-ch-ua-mobile": "?0",
                              "sec-ch-ua-platform": "\"Windows\"",
                              "sec-fetch-dest": "document",
                              "sec-fetch-mode": "navigate",
                              "sec-fetch-site": "same-origin",
                              "sec-fetch-user": "?1",
                              "upgrade-insecure-requests": "1",
                              'Referer': 'https://netservice.iqcard.at/de/Kunden',
                              "Referrer-Policy": "strict-origin-when-cross-origin"
                          },
                          maxRedirects: 5, // Anzahl der zu folgenden Redirects
                          withCredentials: true // für das Cookie-Handling
                      };
                  }
                  
                  function writeDatapoint(data) {
                      log("write dpPrices");
                      log(data);
                      setState(dpPrices, JSON.stringify(data));
                  }
                  
                  function analyze(body) {
                      $ = cheerio.load(body);
                      let countrys = $(".row > div > fieldset");
                      let data = {}
                      for (var i = 1; i < countrys.length; i++) {
                          let country = getCountry(countrys[i]);
                          data[country.countryname] = country;
                      }
                      return data;
                  }
                  function getCountry(country) {
                      let data = {};
                      data.services = {};
                      data.info = "";
                      data.countryname = $(country).find("> legend").text().trim();
                      let sections = $(country).find(".accordion-item");
                      for (var i = 0; i < sections.length; i++) {
                          let section = $(sections[i]);
                  
                          let fields = $(section.find("fieldset div"));
                          if (fields.length > 0) {
                              let title = section.find("legend").text().trim();
                              data.services[title] = getGasPrices(fields);
                          } else {
                              let title = $(section).find(".accordion-header button").text().replace(/(\r\n|\n|\r|\t)/gm, "")
                              data.services[title] = getOtherServices(section);
                          }
                      }
                      if (sections.length == 0) data.info = $(country).contents().filter((i, el) => el.nodeType == 3).text().trim();
                      return data;
                  }
                  function getGasPrices(fields) {
                      let data = [];
                      for (var i = 0; i < fields.length; i++) {
                          let field = $(fields[i]).contents();
                          let date = $(field[0]).text().trim();
                          let price = $(field[1]).text().trim();
                          data.push({ date: date, price: price });
                      }
                      return data;
                  }
                  function getOtherServices(fields) {
                      return $(fields).find(".accordion-body").text().replace(/(\r\n|\n|\r|\t)/gm, "");
                  }
                  
                  main();
                  

                  das produziert folgenden output. in zeile 4 sind die daten drin

                  javascript.0	19:18:27.139	info	Start JavaScript script.js.netservice (Javascript/js)
                  javascript.0	19:18:27.170	info	script.js.netservice: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                  javascript.0	19:18:29.730	info	script.js.netservice: write dpPrices
                  javascript.0	19:18:29.731	info	script.js.netservice: { 'ÖSTERREICH': { services: { 'Super Plus Preise': [Array], 'Super Preise': [Array], 'Normal Preise': [Array], 'Diesel Preise': [Array], 'Premium Diesel Preise': [Array], 'IQ Motoröle und Chemie': '10 % Rabatt', 'Autowäsche': '10 % Rabatt' }, info: '', countryname: 'ÖSTERREICH' }, 'BOSNIEN UND HERZEGOWINA': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BOSNIEN UND HERZEGOWINA' }, BELGIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BELGIEN' }, BULGARIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BULGARIEN' }, TSCHECHIEN: { services: { 'Diesel Preise': [Array] }, info: '', countryname: 'TSCHECHIEN' }, DEUTSCHLAND: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'DEUTSCHLAND' }, 'DÄNEMARK': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'DÄNEMARK' }, SPANIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SPANIEN' }, FRANKREICH: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'FRANKREICH' }, 'GROßBRITANNIEN': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'GROßBRITANNIEN' }, UNGARN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'UNGARN' }, ITALIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'ITALIEN' }, LITAUEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'LITAUEN' }, LUXEMBURG: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'LUXEMBURG' }, NIEDERLANDE: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'NIEDERLANDE' }, NORWEGEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'NORWEGEN' }, POLEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'POLEN' }, 'RUMÄNIEN': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'RUMÄNIEN' }, SCHWEDEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SCHWEDEN' }, SLOWENIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SLOWENIEN' } }
                  javascript.0	19:18:29.735	warn	at writeDatapoint (script.js.netservice:117:5)
                  javascript.0	19:18:29.736	warn	at main (script.js.netservice:80:5)
                  

                  aktiviere dazu auch bitte mal in den skript einstellungen die beiden häkchen DEBUG und verbose

                  Negalein 1 Reply Last reply Reply Quote 1
                  • Negalein
                    Negalein Global Moderator @OliverIO last edited by

                    @oliverio sagte in Daten aus PW geschützte Website:

                    aktiviere dazu auch bitte mal in den skript einstellungen die beiden häkchen DEBUG und verbose

                    läuft, mit 1 Warn

                    
                    javascript.1	19:35:12.270	info	Stopping script script.js.common.IQ-Sprit
                    javascript.0	19:35:12.273	info	Stopping script script.js.common.IQ-Sprit
                    javascript.0	19:35:12.280	info	Start JavaScript script.js.common.IQ-Sprit (Javascript/js)
                    javascript.0	19:35:12.289	info	script.js.common.IQ-Sprit: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                    javascript.0	19:35:13.471	info	script.js.common.IQ-Sprit: write dpPrices
                    javascript.0	19:35:13.472	info	script.js.common.IQ-Sprit: { 'ÖSTERREICH': { services: { 'Super Plus Preise': [Array], 'Super Preise': [Array], 'Normal Preise': [Array], 'Diesel Preise': [Array], 'Premium Diesel Preise': [Array], 'IQ Motoröle und Chemie': '10 % Rabatt', 'Autowäsche': '10 % Rabatt' }, info: '', countryname: 'ÖSTERREICH' }, 'BOSNIEN UND HERZEGOWINA': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BOSNIEN UND HERZEGOWINA' }, BELGIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BELGIEN' }, BULGARIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'BULGARIEN' }, TSCHECHIEN: { services: { 'Diesel Preise': [Array] }, info: '', countryname: 'TSCHECHIEN' }, DEUTSCHLAND: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'DEUTSCHLAND' }, 'DÄNEMARK': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'DÄNEMARK' }, SPANIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SPANIEN' }, FRANKREICH: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'FRANKREICH' }, 'GROßBRITANNIEN': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'GROßBRITANNIEN' }, UNGARN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'UNGARN' }, ITALIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'ITALIEN' }, LITAUEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'LITAUEN' }, LUXEMBURG: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'LUXEMBURG' }, NIEDERLANDE: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'NIEDERLANDE' }, NORWEGEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'NORWEGEN' }, POLEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'POLEN' }, 'RUMÄNIEN': { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'RUMÄNIEN' }, SCHWEDEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SCHWEDEN' }, SLOWENIEN: { services: {}, info: 'Sie tanken zum aktuellen Pumpenabgabepreis', countryname: 'SLOWENIEN' } }
                    javascript.0	19:35:13.472	info	script.js.common.IQ-Sprit: setForeignState(id=0_userdata.0.IQ_Sprit.IQ_Sprit, state={"val":"{\"ÖSTERREICH\":{\"services\":{\"Super Plus Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,571 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,602 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,614 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,643 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,647 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,665 EUR\"}],\"Super Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,439 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,494 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,517 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,515 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,533 EUR\"}],\"Normal Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,439 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,494 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,517 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,515 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,533 EUR\"}],\"Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,463 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,506 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,511 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,523 EUR\"}],\"Premium Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,686 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,710 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,710 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,734 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,739 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,751 EUR\"}],\"IQ Motoröle und Chemie\":\"10 % Rabatt\",\"Autowäsche\":\"10 % Rabatt\"},\"info\":\"\",\"countryname\":\"ÖSTERREICH\"},\"BOSNIEN UND HERZEGOWINA\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BOSNIEN UND HERZEGOWINA\"},\"BELGIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BELGIEN\"},\"BULGARIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BULGARIEN\"},\"TSCHECHIEN\":{\"services\":{\"Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"31,932 CZK\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"32,549 CZK\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"32,791 CZK\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"33,263 CZK\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"33,517 CZK\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"33,638 CZK\"}]},\"info\":\"\",\"countryname\":\"TSCHECHIEN\"},\"DEUTSCHLAND\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"DEUTSCHLAND\"},\"DÄNEMARK\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"DÄNEMARK\"},\"SPANIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SPANIEN\"},\"FRANKREICH\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"FRANKREICH\"},\"GROßBRITANNIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"GROßBRITANNIEN\"},\"UNGARN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"UNGARN\"},\"ITALIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"ITALIEN\"},\"LITAUEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"LITAUEN\"},\"LUXEMBURG\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"LUXEMBURG\"},\"NIEDERLANDE\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"NIEDERLANDE\"},\"NORWEGEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"NORWEGEN\"},\"POLEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"POLEN\"},\"RUMÄNIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"RUMÄNIEN\"},\"SCHWEDEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SCHWEDEN\"},\"SLOWENIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SLOWENIEN\"}}","ack":false,"ts":1725989713472,"q":0,"from":"system.adapter.javascript.0","lc":1725989320807,"c":"script.js.common.IQ-Sprit"})
                    javascript.0	19:35:13.473	warn	script.js.common.IQ-Sprit: setForeignState(id=0_userdata.0.IQ_Sprit.IQ_Sprit, state={"val":"{\"ÖSTERREICH\":{\"services\":{\"Super Plus Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,571 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,602 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,614 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,643 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,647 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,665 EUR\"}],\"Super Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,439 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,494 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,517 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,515 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,533 EUR\"}],\"Normal Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,439 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,494 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,517 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,515 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,533 EUR\"}],\"Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,463 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,482 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,506 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,511 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,523 EUR\"}],\"Premium Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"1,686 EUR\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"1,710 EUR\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"1,710 EUR\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"1,734 EUR\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"1,739 EUR\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"1,751 EUR\"}],\"IQ Motoröle und Chemie\":\"10 % Rabatt\",\"Autowäsche\":\"10 % Rabatt\"},\"info\":\"\",\"countryname\":\"ÖSTERREICH\"},\"BOSNIEN UND HERZEGOWINA\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BOSNIEN UND HERZEGOWINA\"},\"BELGIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BELGIEN\"},\"BULGARIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"BULGARIEN\"},\"TSCHECHIEN\":{\"services\":{\"Diesel Preise\":[{\"date\":\"09.09.2024 - 15.09.2024 :\",\"price\":\"31,932 CZK\"},{\"date\":\"02.09.2024 - 08.09.2024 :\",\"price\":\"32,549 CZK\"},{\"date\":\"26.08.2024 - 01.09.2024 :\",\"price\":\"32,791 CZK\"},{\"date\":\"19.08.2024 - 25.08.2024 :\",\"price\":\"33,263 CZK\"},{\"date\":\"12.08.2024 - 18.08.2024 :\",\"price\":\"33,517 CZK\"},{\"date\":\"05.08.2024 - 11.08.2024 :\",\"price\":\"33,638 CZK\"}]},\"info\":\"\",\"countryname\":\"TSCHECHIEN\"},\"DEUTSCHLAND\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"DEUTSCHLAND\"},\"DÄNEMARK\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"DÄNEMARK\"},\"SPANIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SPANIEN\"},\"FRANKREICH\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"FRANKREICH\"},\"GROßBRITANNIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"GROßBRITANNIEN\"},\"UNGARN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"UNGARN\"},\"ITALIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"ITALIEN\"},\"LITAUEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"LITAUEN\"},\"LUXEMBURG\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"LUXEMBURG\"},\"NIEDERLANDE\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"NIEDERLANDE\"},\"NORWEGEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"NORWEGEN\"},\"POLEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"POLEN\"},\"RUMÄNIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"RUMÄNIEN\"},\"SCHWEDEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SCHWEDEN\"},\"SLOWENIEN\":{\"services\":{},\"info\":\"Sie tanken zum aktuellen Pumpenabgabepreis\",\"countryname\":\"SLOWENIEN\"}}","ack":false,"ts":1725989713472,"q":0,"from":"system.adapter.javascript.0","lc":1725989320807,"c":"script.js.common.IQ-Sprit"}) - wurde nicht ausgeführt, während der Debug-Modus aktiv ist
                    
                    
                    OliverIO 1 Reply Last reply Reply Quote 0
                    • OliverIO
                      OliverIO @Negalein last edited by

                      @negalein

                      dann debug und verbose wieder ausschalten. dann müsste das warn weg sein
                      und der datenpunkt auch beschrieben werden

                      Negalein 1 Reply Last reply Reply Quote 0
                      • Negalein
                        Negalein Global Moderator @OliverIO last edited by

                        @oliverio sagte in Daten aus PW geschützte Website:

                        dann müsste das warn weg sein
                        und der datenpunkt auch beschrieben werden

                        Danke, funktioniert 🙂

                        1 Reply Last reply Reply Quote 0
                        • Dr. Bakterius
                          Dr. Bakterius Most Active @OliverIO last edited by

                          @oliverio sagte in Daten aus PW geschützte Website:

                          die folgenden 2 Zeilen an der angegebenen Stelle einfügen

                          Danke, damit läuft es bei mir auch wieder.👍

                          1 Reply Last reply Reply Quote 0
                          • Negalein
                            Negalein Global Moderator last edited by

                            @OliverIO
                            diese verflixte IQ-Seite raubt einem die Nerven.

                            Funktioniert schonwieder nicht. 😞

                            Debug & Verbose

                            javascript.0	14:11:27.442	info	Stopping script script.js.common.IQ-Sprit
                            javascript.1	14:11:27.444	info	Stopping script script.js.common.IQ-Sprit
                            javascript.0	14:11:27.449	info	Start JavaScript script.js.common.IQ-Sprit (Javascript/js)
                            javascript.0	14:11:27.461	info	script.js.common.IQ-Sprit: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                            javascript.0	14:11:27.983	info	script.js.common.IQ-Sprit: write dpPrices
                            javascript.0	14:11:27.983	info	script.js.common.IQ-Sprit: {}
                            javascript.0	14:11:27.983	info	script.js.common.IQ-Sprit: setForeignState(id=0_userdata.0.IQ_Sprit.IQ_Sprit, state={"val":"{}","ack":false,"ts":1728994287983,"q":0,"from":"system.adapter.javascript.0","lc":1728994237253,"c":"script.js.common.IQ-Sprit"})
                            javascript.0	14:11:27.984	warn	script.js.common.IQ-Sprit: setForeignState(id=0_userdata.0.IQ_Sprit.IQ_Sprit, state={"val":"{}","ack":false,"ts":1728994287983,"q":0,"from":"system.adapter.javascript.0","lc":1728994237253,"c":"script.js.common.IQ-Sprit"}) - wurde nicht ausgeführt, während der Debug-Modus aktiv ist
                            
                            Dr. Bakterius OliverIO 2 Replies Last reply Reply Quote 0
                            • Dr. Bakterius
                              Dr. Bakterius Most Active @Negalein last edited by

                              @negalein sagte in Daten aus PW geschützte Website:

                              Funktioniert schonwieder nicht.

                              Gerade getestet - bei mir wurden die Daten korrekt abgefragt.

                              1 Reply Last reply Reply Quote 0
                              • OliverIO
                                OliverIO @Negalein last edited by

                                @negalein

                                ja hier auch.
                                evtl hatte die seite schluckauf

                                es kann natürlich immer sein, das die die seite umstellen und dann die html elemente nicht mehr so gefunden werden. aber diesmal nicht

                                Negalein 1 Reply Last reply Reply Quote 0
                                • Negalein
                                  Negalein Global Moderator @OliverIO last edited by

                                  @oliverio sagte in Daten aus PW geschützte Website:

                                  evtl hatte die seite schluckauf

                                  hier funktionierts auch wieder 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate
                                  FAQ Cloud / IOT
                                  HowTo: Node.js-Update
                                  HowTo: Backup/Restore
                                  Downloads
                                  BLOG

                                  858
                                  Online

                                  31.6k
                                  Users

                                  79.5k
                                  Topics

                                  1.3m
                                  Posts

                                  7
                                  126
                                  7089
                                  Loading More Posts
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  Community
                                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                  The ioBroker Community 2014-2023
                                  logo