Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. JSON Tabelle FuelPriceMonitor [Austria]

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    JSON Tabelle FuelPriceMonitor [Austria]

    This topic has been deleted. Only users with topic management privileges can see it.
    • sigi234
      sigi234 Forum Testing Most Active @liv-in-sky last edited by sigi234

      @liv-in-sky

      Hallo, bitte iQ Tankstelle einbinden.

      IQ.jpg

      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @sigi234 last edited by

        @sigi234

        diese zeile -

        {"firma":"IQ","pic":"/vis.0/Tankstellen/iq.jpg"},
        

        einfügen

        Image 196.png
        und bild hohladen - - ich mach das dann im ersten post noch

        sigi234 1 Reply Last reply Reply Quote 0
        • sigi234
          sigi234 Forum Testing Most Active @liv-in-sky last edited by

          @liv-in-sky sagte in JSON Tabelle FuelPriceMonitor [Austria]:

          und bild hohladen - - ich mach das dann im ersten post noch

          Erledigt.

          1 Reply Last reply Reply Quote 0
          • M
            mrfloppy @liv-in-sky last edited by

            @liv-in-sky
            Ich weis du bastelst noch daran, aber ich wollt bissl spiele/testen.
            Habe mal alle DP aus dem FUELPRICE gelöscht und die Instanz neu gestartet.
            Jetzt habe ich eigentlich überall auch Koordinaten.
            Jedoch ein Phänomen habe ich , das bei der ersten Tankstelle diese nicht in der Karte angezeigt wird, obwohl Koordinaten und Km Entfernung vorhanden.
            Egal ob SUP oder DIE.
            Eine Idee wieso?

            liv-in-sky 2 Replies Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @mrfloppy last edited by

              @mrfloppy wenn in den orginal daten die location fehlt, werden deine home koordinaten eingetragen - damit versteckt sich evtl die erste tankstelle hinter dem home-icon inder karte - das home icon ist im widget ls letztes eingetragen und liegt drüber

              du mußt prüfen, ob die erste tankstelle richtige koordinaten hat in den instanz datenpunkten

              1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @mrfloppy last edited by

                @mrfloppy du kannst auch im vis Editor mal das erste Icon großer machen und sehen ob es irgendwo dahinter ist

                M 1 Reply Last reply Reply Quote 0
                • M
                  mrfloppy @liv-in-sky last edited by

                  @liv-in-sky said in JSON Tabelle FuelPriceMonitor [Austria]:

                  @mrfloppy du kannst auch im vis Editor mal das erste Icon großer machen und sehen ob es irgendwo dahinter ist

                  thx für den Tip. da waren zwei punkte so knapp nebeneinander das man erst weit reinzoomen musste.

                  1 Reply Last reply Reply Quote 1
                  • P
                    papaechokilo @liv-in-sky last edited by papaechokilo

                    [gelöst] @liv-in-sky Danke!
                    Hallo, ich möchte kein Telegram verwenden, da mir die Darstellung in der VIS ausreicht. Wenn ich wie angegeben, in Zeile 4 "let telegramInstanz=""; " eintrage, erhalte ich eine Fehlermeldung.
                    10:34:57.814 error javascript.0 (1918593) script.js.common.Datenimport.Treibstoff_NEU: Error: No instanceName provided or not a string
                    10:34:57.815 error javascript.0 (1918593) at deletetext (script.js.common.Datenimport.Treibstoff_NEU:236:7)
                    10:34:57.815 error javascript.0 (1918593) at delTel (script.js.common.Datenimport.Treibstoff_NEU:55:91)

                    sigi234 1 Reply Last reply Reply Quote 0
                    • sigi234
                      sigi234 Forum Testing Most Active @papaechokilo last edited by sigi234

                      @papaechokilo

                      let telegramInstanz="";
                      
                      

                      @papaechokilo sagte in JSON Tabelle FuelPriceMonitor [Austria]:

                      in Zeile 4 "let telegramInstanz=""; "

                      " zu viel

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        papaechokilo @sigi234 last edited by papaechokilo

                        [gelöst]@sigi234 ja, stimmt. aber auch wenn ich es so eintrage let telgramInstanz=""; kommt derselbe Fehler. Weil in Zeile 236 sendTo(telegramInstanz, { steht und das kann nicht ausgeführt werden.

                        sigi234 liv-in-sky 2 Replies Last reply Reply Quote 0
                        • sigi234
                          sigi234 Forum Testing Most Active @papaechokilo last edited by sigi234

                          @papaechokilo sagte in JSON Tabelle FuelPriceMonitor [Austria]:

                          @sigi234 ja, stimmt. aber auch wenn ich es so eintrage let telgramInstanz=""; kommt derselbe Fehler. Weil in Zeile 236 sendTo(telegramInstanz, { steht und das kann nicht ausgeführt werden.

                          Zeig mal das Skript bis Zeile 35

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            papaechokilo @sigi234 last edited by papaechokilo

                            [gelöst]@sigi234

                            let anzahlAnzeige=30;
                            let mySprit=["DIE"]; //oder ["GAS","DIE","SUP"] je nachdem, was man braucht
                            let telegramInstanz="";  // wenn nicht genutzt:   let telegramInstanz="";
                            let emailInstanz=""; //  hier email instanz eintragen z.B. "email.0" - bei "" wird keine mail gesendet
                            let emailUser="xx@yyyy.at"
                            // Die Bilder müssen unter /vis.0/Tankstellen liegen   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                             
                            const config = getObject('system.config');
                            const mylat =  config.common.latitude  //.replace(/(.*\..+?.+?.+?.+?.+?.+?).+/,"$1"); //*/"48.427656" //l
                            const mylong = config.common.longitude  //.replace(/(.*\..+?.+?.+?.+?.+?.+?).+/,"$1"); log(mylat)
                             
                            const defaultPic="/vis.0/Tankstellen/default.png"
                            const pictures=[{"firma":"BP","pic":"/vis.0/Tankstellen/bp.png"},
                                           {"firma":"Genol","pic":"/vis.0/Tankstellen/genol.png"},
                                           {"firma":"eni","pic":"/vis.0/Tankstellen/eni.png"},
                                           {"firma":"Diskont","pic":"/vis.0/Tankstellen/diskont.png"},
                                           {"firma":"Turmöl","pic":"/vis.0/Tankstellen/turmoel.png"},
                                           {"firma":"paradies","pic":"/vis.0/Tankstellen/treibstoffparadies.png"},
                                           {"firma":"Lohberger","pic":"/vis.0/Tankstellen/lohberger.png"},
                                           {"firma":"SB-Tankstelle","pic":"/vis.0/Tankstellen/sb.jpg"},
                                           {"firma":"Hofer","pic":"/vis.0/Tankstellen/hofer.png"},
                                           {"firma":"AVIA","pic":"/vis.0/Tankstellen/avia.png"},
                                           {"firma":"avanti","pic":"/vis.0/Tankstellen/avanti.png"},
                                           {"firma":"Shell","pic":"/vis.0/Tankstellen/shell.png"},
                                           {"firma":"Aral","pic":"/vis.0/Tankstellen/Aral.png"},
                                           {"firma":"JET","pic":"/vis.0/Tankstellen/jet.png"},
                                           {"firma":"Ultsch","pic":"/vis.0/Tankstellen/ultsch.png"},
                                           {"firma":"bft","pic":"/vis.0/Tankstellen/bft.png"},
                                           {"firma":"Spritkönig","pic":"/vis.0/Tankstellen/Spritkönig.png"},
                                           {"firma":"Oil","pic":"/vis.0/Tankstellen/Oil.png"},
                                           {"firma":"Lagerhaus","pic":"/vis.0/Tankstellen/Lagerhaus.png"},
                                           {"firma":"Gelbmann","pic":"/vis.0/Tankstellen/Gelbmann.png"},
                                           {"firma":"IQ","pic":"/vis.0/Tankstellen/IQ.jpg"}
                                          ]
                            
                            code_text
                            
                            sigi234 1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @papaechokilo last edited by

                              @papaechokilo

                              du hast recht - habe ich nachträglich eingefügt und die abfrage vergessen - das einfügen:

                              async function delTel(){
                                  if(telegramInstanz!=""){
                                  for (let b=0;b<mySprit.length;b++){await wait(2000);
                                     if(getState('0_userdata.0.FUELPRICEMONITOR.'+mySprit[b]+'telegram_chatid').val!="") deletetext(mySprit[b]) // telegram reset !!
                              }}}
                              

                              der teil gehört hier hin/ausgetauscht:

                              Image 197.png

                              1 Reply Last reply Reply Quote 0
                              • sigi234
                                sigi234 Forum Testing Most Active @papaechokilo last edited by sigi234

                                @papaechokilo

                                Zeile 3 Falsch

                                let telegramInstanz="";  // wenn nicht genutzt:   let telegramInstanz="";
                                
                                1 Reply Last reply Reply Quote 0
                                • M
                                  mrfloppy @liv-in-sky last edited by

                                  @liv-in-sky
                                  Ichhabe noch immer ein paar tanken die tageweise keine KM anzeigen.
                                  Gestern hatte sie aber noch eine Km anzeige.
                                  Und in den Objecten unter der ID ist auch eine locatin drinnen.
                                  Eine Idee was das sein könnte?

                                  LG

                                  liv-in-sky 2 Replies Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @mrfloppy last edited by liv-in-sky

                                    @mrfloppy kannst du mir mal ein bild deiner datenpunkte (ganzen tree) zeigen, mit den tanken, die keine km anzeige haben ?

                                    1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @mrfloppy last edited by liv-in-sky

                                      @mrfloppy ich meine die dp mit den location der tankstelle unter der instanz

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        mrfloppy @liv-in-sky last edited by mrfloppy

                                        @liv-in-sky Screenshot 2023-02-13 115445.jpg Screenshot 2023-02-13 115250.jpg Screenshot 2023-02-13 115048.jpg

                                        Wie gesagt an anderen Tagen stimmt die KM Angabe.

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @mrfloppy last edited by

                                          @mrfloppy seltsam - wie weit ist die von dir entfernt bzw was steht den sonst drin oder sollte drin stehen

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            mrfloppy @liv-in-sky last edited by

                                            @liv-in-sky
                                            das kann ich nicht ganz genau sagen aber so 6-7 km.
                                            Ich wei snur das gestern die Km drinnen gestanden sind aber halt ean einer anderen Position.
                                            Ich beobachte das weiter

                                            liv-in-sky 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            69
                                            3537
                                            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