Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. (Gelöst) Awattar (Ö) Einspeisepreis automatisch downloaden

    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

    (Gelöst) Awattar (Ö) Einspeisepreis automatisch downloaden

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MCU @muckel last edited by MCU

      @muckel Für Österreich?

      curl "https://api.awattar.at/v1/marketdata"
      curl "https://api.awattar.at/v1/marketdata?start=STARTZEIT&end=ENDZEIT"
      curl "https://api.awattar.at/v1/marketdata/csv/2023/12/"
      

      gilt ein Fair-Use-Limit von 100 Abfragen pro Tag.

      Einspeisepreis
      https://www.e-control.at/marktteilnehmer/oeko-energie/einspeisetarife

      M 1 Reply Last reply Reply Quote 0
      • M
        muckel @MCU last edited by

        @mcu
        Guten Morgen,
        das sind alles Bezugspreise.
        Der Einspeisepreis wird einmal pro Monat ausgerollt.
        Den wollte ich automatisiert downloaden und in IoBroker speichern.

        lg. erich

        M 1 Reply Last reply Reply Quote 0
        • M
          MCU @muckel last edited by

          @muckel Ok, aber wo willst du die Daten herunterladen. Adresse?

          M 1 Reply Last reply Reply Quote 0
          • M
            muckel @MCU last edited by

            @mcu
            Das war ja genau meine Frage, WO kann ich diese Daten (Awattar Österreich Einspeisepreis) downloaden.
            Ich finde nichts.

            M MartinP 2 Replies Last reply Reply Quote 0
            • M
              MCU @muckel last edited by MCU

              @muckel ChatGPT
              In Österreich variieren die Einspeisetarife für Strom aus Photovoltaikanlagen je nach Anbieter und Marktbedingungen. Aktuelle Informationen zu diesen Tarifen werden von der E-Control bereitgestellt. Die E-Control bietet einen Tarifkalkulator-Webservice als REST-API an, der jedoch hauptsächlich für den Vergleich von Strom- und Gasangeboten für Haushalte und Gewerbe konzipiert ist. Diese API deckt die gleichen Funktionalitäten wie der Online-Kalkulator für den Bereich Haushalt und Gewerbe ab. Um Zugriff auf diese Schnittstelle zu erhalten, ist eine Anfrage per E-Mail an tarifkalkulator@e-control.at erforderlich.
              E-CONTROL

              Bezüglich spezifischer Einspeisetarife bietet die E-Control Informationen auf ihrer Website an. Die in das Netz eingespeisten Energiemengen der geförderten Ökostromanlagen werden von der OeMAG, bei Erfüllung der gesetzlichen Voraussetzungen, mit Einspeisetarifen vergütet.
              E-CONTROL

              Einige Energieversorger bieten eigene Einspeisetarife an. Beispielsweise bietet Wien Energie einen Tarif namens "Einspeiser" an, mit dem Sie Ihren Energie-Überschuss aus Ihrer Micro-BHKW oder einer ähnlichen stromerzeugenden Anlage ins Netz einspeisen und dafür eine Vergütung erhalten können.

              https://www.e-control.at/marktteilnehmer/oeko-energie/einspeisetarife

              M 1 Reply Last reply Reply Quote 0
              • M
                muckel @MCU last edited by

                @mcu
                das kenne ich alles. Ein automatischer Download ist dort ebenfalls nicht möglich.
                Den aktuellen Preis kann ich auf der Homepage von Awattar nachlesen.

                Derzeit trage ich den aktuellen Preis händisch am Monatsanfang in IoBroker ein.
                Das wollte ich automatisieren.

                Oder ich stehe am Schlauch, was du mir da zeigst. Ist da ein automatischer Download möglich?

                M 1 Reply Last reply Reply Quote 0
                • M
                  MCU @muckel last edited by MCU

                  @muckel Lt. ChatGPT soll es eine REST-API geben.
                  Die E-Control bietet einen Tarifkalkulator-Webservice als REST-API an

                  Diesen?
                  2dde4b12-57d2-44ad-af45-20b09b348e30-image.png

                  M 1 Reply Last reply Reply Quote 0
                  • MartinP
                    MartinP @muckel last edited by

                    @muckel Wenn der Preis auf der Webseite angezeigt wird, kann man ihn auch crawlen...

                    https://www.awattar.at/tariffs

                    curl https://www.awattar.at/tariffs |find "Einspeisepreis"
                    

                    Gibt zurück:

                    services/fronius/wattpilot">< div style="display:inline-block; width: 40%"><img src="/static/img/partner/froni0us.png" style="max-height: 22px; max-width: 56px; margin-right: 4px;"></div><div style="display:inline-block;">Wattpilot </div></a></li><li><a href="/services/goe"><div style="display:inline-block; width: 40%"><img src="/static/img/partner/g oe.png" style="max-height: 22px; max-width: 56px; margin-right: 4px;"></div><div style="display:inline-block;">go-eCharg8er</div></a></li><li><a href="/services/knv"><div style="display:inline-block; width: 40%"><img src="/static/img/partner2/knv.png" style="max-height: 22px; max-width: 56px; margin-right: 4px;"></div><div style="display:inline-block;">KNV-NIB2E</div></a></li><li><a href="/services/idm"><div style="display:inline-block; width: 40%"><img src="/static/img/partner/9idm.jpg" style="max-height: 22px; max-width: 56px; margin-right: 4px;"></div><di8v style="display:inline-block;">iDM Wärmepumpen</div></a></li><li><a href="/services/loxone"><div style="display:inline -block; width: 40%"><i class="fa-star fa fa-fw fa-lg"></i></div><div style="disp lay:inline-block;">LOXONE API</div></a></li><li><a href="/services/ifttt"><div s tyle="display:inline-block; width: 40%"><img src="/static/img/partner/ifttt.png" style="max-height: 22px; max-width: 56p x; margin-right: 4px;"></div><div style="display:inline-block;">IFTTT &amp; Maker</div></a></li><li><a href="/services/n ymea"><div style="display:inline-block; width: 40%"><im 0 --:--:-- --:--:-- --:--:-- 86229
                    
                    

                    Wenn man den Wust genauer untersucht ...

                    Einspeisepreis<br><small>aktuell </small></td></tr><tr><td style="height: 64px;"><dl><dd>9,205
                    
                    1 Reply Last reply Reply Quote 0
                    • M
                      MCU @MCU last edited by MCU

                      @muckel Mit iobroker.parser

                      c4795d82-843f-4f83-8836-04eef91f0e38-image.png

                      91d8f0c1-21e7-4957-95d5-dcab0b6a33c1-image.png

                      https://www.awattar.at/tariffs/sunny
                      
                      >\s*([\d.,]+)\s*Cent/kWh
                      

                      Oder mit javascript

                      httpGet('https://www.awattar.at/tariffs/sunny', (err, res) => {
                          if (err) {
                              console.error('Fehler beim Abrufen der Webseite:'+ err);
                          } else {
                              const html = res.data;
                              const match = html.match(/>\s*([\d.,]+)\s*Cent\/kWh/);
                              if (match) {
                                  let einspeisepreis = match[1]; // Behalte den Preis als String mit Komma
                                  einspeisepreis = einspeisepreis.replace(',','.')
                                  console.log(`Aktueller Einspeisepreis: ${einspeisepreis} Cent/kWh`);
                                  
                                  // Speichern in ioBroker-Datenpunkt
                                  // setState('0_userdata.0.energy.einspeisepreis', einspeisepreis, true);
                              } else {
                                  console.warn('Kein Einspeisepreis gefunden.');
                              }
                          }
                      });
                      
                      
                      M 1 Reply Last reply Reply Quote 0
                      • M
                        muckel @MCU last edited by

                        @mcu

                        fast perfekt, danke schön.

                        kann ich das komma (,) im Preis durch einen Punkt (.) ersetzen.
                        javascripr ist nicht so meines.

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MCU @muckel last edited by

                          @muckel Oben angepasst

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            muckel @MCU last edited by

                            @mcu

                            Das wars, perfekt.
                            Danke für deine Hilfe.

                            lg. erich

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            640
                            Online

                            31.9k
                            Users

                            80.3k
                            Topics

                            1.3m
                            Posts

                            3
                            13
                            575
                            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