Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. VW-Connect: GPS reversed Search

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    VW-Connect: GPS reversed Search

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      till last edited by till

      Guten Morgen,

      ich habe zwei Fahrzeuge einen e-Up und einen Enyaq.
      Beim e-Up werden die GPS Koordinaten in eine postalische Adresse umgewandelt, beim Enyaq wird dies leider nicht automatisch geliefert. Wäre es möglich, wenn dies evtl. mit dem nächsten Update eingepflegt wird?

      Vielen Dank und beste Grüße,
      Till

      Feuersturm 1 Reply Last reply Reply Quote 0
      • Feuersturm
        Feuersturm @till last edited by Feuersturm

        @till Hi, in diesem Thread bist du mit deinem Wunsch nicht richtig aufgehoben.
        Ein paar mehr Details sind noch notwendig, z.b. zum welchen Adapter es sich überhaupt handelt und bei Wochen Adapter geht es und wo nicht. Das ganze gehört dann in ein eigenes Thema

        @Homoran Kannst du das bitte hier abtrennen?

        Homoran 1 Reply Last reply Reply Quote 1
        • Homoran
          Homoran Global Moderator Administrators @Feuersturm last edited by Homoran

          @feuersturm sagte in [HowTo] Nodejs-Installation und Upgrades unter Debian:

          @Homoran Kannst du das bitte hier abtrennen?

          ja, mach ich gerne.
          Aber wohin? 🤔

          @till hat keinerlei Hinweise gegeben wozu diese Frage gehört.

          EDIT:
          ich hab's mal einfach so abgetrennt, bis ich weiß wohin der Wind weht.

          @till Bitte provisorischen Threadtitel sinnvoll anpassen!

          T 1 Reply Last reply Reply Quote 0
          • T
            TT-Tom @Homoran last edited by

            @homoran das hört sich nachdem VW Adapter an.

            Codierknecht 1 Reply Last reply Reply Quote 1
            • Codierknecht
              Codierknecht Developer Most Active @TT-Tom last edited by Codierknecht

              @tt-tom
              Sehe ich auch so. Das ist der Test-Thread:
              https://forum.iobroker.net/topic/26438/test-adapter-vw-connect-für-vw-id-audi-seat-skoda

              @till
              Dort dürftest Du eher eine Antwort erhalten.

              Ansonsten: Selbst machen! Ist kein Hexenwerk.

              const ids = ['renault.0.xxx.location.gpsLatitude', 'renault.0.xxx.location.gpsLongitude'];
              const key = '1234567890abcdef';
              const axios = require('axios');
              axios.defaults.timeout = 10000;
              const headers = {"User-Agent":"Mozilla/5.0 (compatible; ioBrokerc/1.0)"};
              var locked, timeout;
              
              // Reverse-Geocoding anhand der aktuellen Koordinaten
              async function updateLocation(api = 'komoot') {
                  const latitude = getState('renault.0.xxx.location.gpsLatitude').val;
                  const longitude = getState('renault.0.xxx.location.gpsLongitude').val;
                  let url = '';
                  let response = '';
                  let address = '';
                  switch (api) {
                      case 'komoot':
                          url = `https://photon.komoot.io/reverse?lat=${latitude}&lon=${longitude}`;
                          response = await axios.get(url, {headers});
                          if (response && response.status == 200) {
                              const data = response.data.features[0].properties;  
                              address = (data.street ? data.street : data.name) + (data.housenumber ? ' ' + data.housenumber : '');
                              address += (data.postcode ? ', ' + data.postcode : ', ');
                              address += (data.city ? ' ' + data.city : '');  
                              address += (data.district ? ' (' + data.district + ')' : '');
                              address += (data.county ? ', ' + data.county : '');
                              address += (data.state ? ', ' + data.state : '');
                          };
                          break;
                      case 'geocode':
                          url = `https://geocode.maps.co/reverse?lat${latitude}&lon=${longitude}&api_key=${key}`;
                          response = await axios.get(url, {headers});
                          if (response && response.status == 200) {
                              address = response.data.display_name;  
                          };
                          break;
                  };
                  log('Standort: ' + address);
                  setState('0_userdata.0.Renault.Standort', address, true);
              }
              
              // Bei geänderten Koordinaten: Nach 30 Sekunden den Standort neu bestimmen
              on({id: ids, change: 'ne'}, async function() {
                  if (timeout) { clearTimeout(timeout); timeout = null; };
                  timeout = setTimeout(async () => {
                      updateLocation();
                      timeout = null;
                  }, 30000);
              });
              
              
              
              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Codierknecht last edited by

                @codierknecht sagte in GPS reversed Search:

                Selbst machen! Ist kein Hexenwerk.

                naja, mit den DP von deinem Rennoh kommt er nicht weiter 😁

                1 Reply Last reply Reply Quote 0
                • T
                  till last edited by

                  Guten Abend,

                  puh ihr seid ja schnell....

                  Es geht um den we Connect (VW/SEAT/SKODA etc.) Adapter für ioBroker.
                  Zwischenzeitlich habe ich mir auch ein Skript gebastelt über die API von https://geocode.maps.co

                  Funktioniert sehr gut.

                  Aber der Adapter bietet ja auch die Möglichkeit. Beim unserem e-Up funktioniert das auch, biem Enyaq aber nicht. Daher die Frage, ob dies integriert werden kann.

                  Beste Grüße,
                  Till

                  Homoran Codierknecht 2 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @till last edited by

                    @till sagte in GPS reversed Search:

                    Es geht um den we Connect (VW/SEAT/SKODA etc.) Adapter für ioBroker.

                    Dann bitte den Threadtitel entsprechend anpassen.

                    1 Reply Last reply Reply Quote 0
                    • Codierknecht
                      Codierknecht Developer Most Active @till last edited by

                      @till sagte in VW-Connect: GPS reversed Search:

                      Daher die Frage, ob dies integriert werden kann.

                      Sowas formuliert man besser als Feature-Request in einem Github-Issue.

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

                      Support us

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

                      850
                      Online

                      31.9k
                      Users

                      80.3k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      237
                      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