Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. PV Datenabfrage von neoom / ntuity

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    PV Datenabfrage von neoom / ntuity

    This topic has been deleted. Only users with topic management privileges can see it.
    • Christoph Jahn
      Christoph Jahn @paul53 last edited by

      @paul53 so wie ich es bis jetzt verstanden habe, ist Modbus von neoom "belegt" und kann nicht ohne das ich die "neoom cloud" (Beaam) Rausschmeiße verwendet werden.. 3x Wechselrichter Solax X3 Hybrid G2

      Über die Solax Cloud habe ich es auch schon versucht.. hier bekomme ich über den Adapter zwar Daten geliefert, aber nur von einem Wechselrichter, hier müsste man die Leistungsdaten der 3 WR dann erst miteinander verrechnen (das ist mir momentan etwas zu hoch) und die Daten sind immer mindestens 5min alt.

      von neoom würde ich nahezu Echtzeit Daten herausbekommen über die API.

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Christoph Jahn last edited by paul53

        @christoph-jahn sagte: ist Modbus von neoom "belegt"

        Wie der Name schon sagt, handelt es sich um ein Bus-Protokoll.
        Weshalb 3 Wechselrichter?

        Christoph Jahn 1 Reply Last reply Reply Quote 0
        • Christoph Jahn
          Christoph Jahn @paul53 last edited by

          @paul53 schon klar, seitens Solax wurde genug unternommen das der direkte Datenabgriff sehr aufwendig gemacht wurde.. Hier soll es anzuscheinend nur mit dem WLAN Modul möglich sein modbus "hausintern" abzugreifen.. ein irrsinn bei einer Verkabelten Anlage.

          ..30kw Anlage je WR 10kw, aufgeteilt auf zwei Gebäude

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Christoph Jahn last edited by paul53

            @christoph-jahn sagte: WLAN Modul möglich sein modbus "hausintern" abzugreifen.

            Immer noch besser als über das Internet (Cloud). Wenn mit den Werten etwas gesteuert werden soll, würde ich mich nie auf einen funktionierenden Cloud-Zugriff verlassen.

            1 Reply Last reply Reply Quote 0
            • Christoph Jahn
              Christoph Jahn last edited by

              Gesteuert wird nichts.. Wird für eine LED Matrix Anzeige benötigt.. also nicht "lebensnotwendig" darum würde mir die Abfrage der Cloud völlig ausreichen.

              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Christoph Jahn last edited by paul53

                @christoph-jahn sagte: Abfrage der Cloud völlig ausreichen.

                Dann versuche es mal mit request() (Blockly / Javascript).

                Blockly_temp.JPG

                Deine ID eintragen!
                Man muss aber wohl mittels eines Token sichern. Davon habe ich keine Ahnung.

                Christoph Jahn 1 Reply Last reply Reply Quote 0
                • Christoph Jahn
                  Christoph Jahn @paul53 last edited by

                  @paul53 Unbenannt.JPG
                  Na.. so einfach will es nicht gehen..

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @Christoph Jahn last edited by

                    @christoph-jahn sagte: so einfach will es nicht gehen..

                    Poste mal den erzeugten Javascript-Code ohne die letzte Zeile in Code tags.
                    Ich wundere mich über "fetch".

                    Christoph Jahn 1 Reply Last reply Reply Quote 0
                    • Christoph Jahn
                      Christoph Jahn @paul53 last edited by

                      @paul53 Unbenannt.JPG

                      Homoran paul53 2 Replies Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @Christoph Jahn last edited by

                        @christoph-jahn hat du globale Skripte?

                        Christoph Jahn 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Christoph Jahn last edited by

                          @christoph-jahn sagte: @paul53 Unbenannt.JPG

                          Sehr schlecht zu lesen! Deshalb: In das Forum kopieren und in Code tags (oben: </>) setzen.
                          Es ist kein "fetch" zu sehen.

                          Christoph Jahn 1 Reply Last reply Reply Quote 0
                          • Christoph Jahn
                            Christoph Jahn @paul53 last edited by Homoran

                            @paul53

                            </>var result;
                            
                            
                            schedule("* * * * *", async function () {
                              try {
                                require("request")('https://api.ntuity.io/v1/sites/xxxx/energy-flow/latest', async function (error, response, result) {
                                  console.log(result);
                                }).on("error", function (e) {console.error(e);});
                              } catch (e) { console.error(e); }
                            });
                            

                            MOD-EDIT: Code in code-tags gesetzt!

                            Christoph Jahn 1 Reply Last reply Reply Quote 0
                            • Christoph Jahn
                              Christoph Jahn @Christoph Jahn last edited by

                              @christoph-jahn said in PV Datenabfrage von neoom / ntuity:

                              @paul53

                              </>var result;

                              schedule("* * * * *", async function () {
                              try {
                              require("request")('https://api.ntuity.io/v1/sites/xxxx/energy-flow/latest', async function (error, response, result) {
                              console.log(result);
                              }).on("error", function (e) {console.error(e);});
                              } catch (e) { console.error(e); }
                              });

                              Sorry bin da nicht so der Hero 😄

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Christoph Jahn
                                Christoph Jahn @Homoran last edited by

                                @homoran Wie gesagt bin nicht so drinn in der Materie... Was sind Globale Skripte?

                                Homoran 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Christoph Jahn last edited by

                                  @christoph-jahn sagte in PV Datenabfrage von neoom / ntuity:

                                  Sorry bin da nicht so der Hero

                                  dann sieh dir mal deinen letzten Post an, lies hier
                                  https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

                                  und beantworte meine Frage

                                  @homoran sagte in PV Datenabfrage von neoom / ntuity:

                                  @christoph-jahn hat du globale Skripte?

                                  1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Christoph Jahn last edited by

                                    @christoph-jahn sagte in PV Datenabfrage von neoom / ntuity:

                                    Was sind Globale Skripte?

                                    im Expertenmodus befindet sich in dem Skript explorer ein Verzeichnis global
                                    ist da ein Skript drin?

                                    Christoph Jahn 1 Reply Last reply Reply Quote 0
                                    • Christoph Jahn
                                      Christoph Jahn @Homoran last edited by

                                      @homoran Unbenannt.JPG
                                      Ja da ist tatsächlich was drinnen..

                                      Homoran paul53 2 Replies Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Christoph Jahn last edited by Homoran

                                        @christoph-jahn sagte in PV Datenabfrage von neoom / ntuity:

                                        Ja da ist tatsächlich was drinnen..

                                        warum?
                                        woher?

                                        und da ist auch der fetch

                                        1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 @Christoph Jahn last edited by paul53

                                          @christoph-jahn sagte: da ist tatsächlich was drinnen..

                                          Lösche das Skript unter der Gruppe "global".
                                          Dann trage in die Konfiguration der JS-Instanz unter "Zusätzliche NPM-Module" ein: api
                                          Dann erstelle dieses Skript laut Doku unter der Gruppe "common":

                                          const sdk = require('api')('@ntuity/v1#6m6q34l263sbor');
                                          
                                          sdk.auth('token');
                                          sdk.getSitesIdEnergyFlowLatest({id: 'id'})
                                            .then(({ data }) => console.log(data))
                                            .catch(err => console.error(err));
                                          

                                          "token" und "id" durch Deine Sachen ersetzen.

                                          Christoph Jahn 2 Replies Last reply Reply Quote 0
                                          • Christoph Jahn
                                            Christoph Jahn @paul53 last edited by Homoran

                                            @paul53 said in PV Datenabfrage von neoom / ntuity:

                                            '

                                            9.6.2023, 19:40:16.839	[info ]: javascript.0 (826423) Stop script script.js.common.ntuity
                                            9.6.2023, 19:40:16.848	[info ]: javascript.0 (826423) Start javascript script.js.common.ntuity
                                            9.6.2023, 19:40:16.881	[info ]: javascript.0 (826423) script.js.common.ntuity: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                            9.6.2023, 19:40:17.263	[info ]: javascript.0 (826423) script.js.common.ntuity: {'power_consumption':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_consumption_calc':{'value':1727,'time':'2023-06-09T17:40:15.002Z'},'power_production':{'value':1284,'time':'2023-06-09T17:40:15.002Z'},'power_storage':{'value':404,'time':'2023-06-09T17:40:15.002Z'},'power_grid':{'value':39,'time':'2023-06-09T17:40:15.002Z'},'power_charging_stations':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_heating':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_appliances':{'value':1727,'time':'2023-06-09T14:59:30.004Z'},'state_of_charge':{'value':99,'time':'2023-06-09T16:57:55.002Z'},'self_sufficiency':{'value':98,'time':'2023-06-09T17:40:15.002Z'},'max_network_utilization':20000,'consumers_total_count':0,'consumers_online_count':0,'producers_total_count':1,'producers_online_count':1,'storages_total_count':2,'storages_online_count':2,'heatings_total_count':0,'heatings_online_count':0,'charging_points_total_count':0,'charging_points_online_count':0,'grids_total_count':1,'grids_online_count':1}
                                            

                                            MOD-EDIT: Code in code-tags gesetzt!

                                            Wow klasse, jetzt werden die Daten ausgegeben!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            825
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            31
                                            1628
                                            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