Ankündigung

Einklappen
Keine Ankündigung bisher.

AVM Plugin

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    ich suche dir mal einen curl auf /upnp/control/deviceinfo

    Ich vermute, dass einige der Items auch geupdated werden?

    Kommentar


      Ich habe keinen gefunden. Was mir auffällt ist, dass diese drei Haken für die Benutzerfreigaben im neuen Fritz!OS gar nicht mehr verfügbar sind. Oder ich sie nur nicht mehr finde. Danke dir.

      Kommentar


        Teste bspw mal
        Code:
        curl 'https://fritz.box:49443/upnp/control/deviceinfo' -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:dslforum-org:service:DeviceInfo:1#GetSecurityPort' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:GetSecurityPort xmlns:u="urn:dslforum-org:service:DeviceInfo:1"> </u:GetSecurityPort> </s:Body> </s:Envelope>' -s -k

        Kommentar


          Zitat von psilo Beitrag anzeigen
          Teste bspw mal
          Code:
          curl 'https://fritz.box:49443/upnp/control/deviceinfo' -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:dslforum-org:service:DeviceInfo:1#GetSecurityPort' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:GetSecurityPort xmlns:u="urn:dslforum-org:service:DeviceInfo:1"> </u:GetSecurityPort> </s:Body> </s:Envelope>' -s -k
          Code:
          <?xml version="1.0"?>
          <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <s:Body>
          <u:GetSecurityPortResponse xmlns:u="urn:dslforum-org:service:DeviceInfo:1">
          <NewSecurityPort>49443</NewSecurityPort>
          </u:GetSecurityPortResponse>
          </s:Body>
          </s:Envelope>

          Kommentar


            Was ich nicht sagen kann ist, ob es am Fritz!OS Update liegt oder ob es am SHNG Update auf 1.5.1 liegt. Das habe ich fast zeitgleich gemacht.

            Kommentar


              So gefühlt 2h später: das hier sollte der zu testende sein:

              Code:
              curl  --anyauth -u user:'pwd' 'https://192.168.178.1:49443/upnp/control/deviceinfo' -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:dslforum-org:service:DeviceInfo:1#GetInfo' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:GetInfo xmlns:u="urn:dslforum-org:service:DeviceInfo:1"> </u:GetInfo> </s:Body> </s:Envelope>' -s -k
              Response:
              Code:
              <?xml version="1.0"?>
              <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
              <s:Body>
              <u:GetInfoResponse xmlns:u="urn:dslforum-org:service:DeviceInfo:1">
              <NewManufacturerName>AVM</NewManufacturerName>
              <NewManufacturerOUI>00010E</NewManufacturerOUI>
              <NewModelName>FRITZ!Box 7590</NewModelName>
              <NewDescription>FRITZ!Box 7590 154.07.00</NewDescription>
              <NewProductClass>FRITZ!Box</NewProductClass>
              <NewSerialNumber>E1256E4851EA</NewSerialNumber>
              <NewSoftwareVersion>154.07.00</NewSoftwareVersion>
              <NewHardwareVersion>FRITZ!Box 7590</NewHardwareVersion>
              <NewSpecVersion>1.0</NewSpecVersion>
              <NewProvisioningCode></NewProvisioningCode>
              <NewUpTime>773897</NewUpTime>
              <NewDeviceLog>...</NewDeviceLog>
              </u:GetInfoResponse>
              </s:Body>
              </s:Envelope>
              Wenn das per Shell geht, musst Du im Code debuggen. Ich kann es nicht nachstellen, daher nicht anderweitig helfen.
              Zuletzt geändert von psilo; 02.08.2018, 16:22.

              Kommentar


                Code:
                <?xml version="1.0"?>
                <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                <s:Body>
                <s:Fault>
                <faultcode>s:Client</faultcode>
                <faultstring>UPnPError</faultstring>
                <detail>
                <UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
                <errorCode>401</errorCode>
                <errorDescription>Invalid Action</errorDescription>
                </UPnPError>
                </detail>
                </s:Fault>
                </s:Body>
                </s:Envelope>
                ne, geht nicht. Trotzdem danke für deine Hilfe.

                Hat sich zu 1.5. oder 1.5.1. etwas geändert, was man im Plugin beachten muss?

                Kommentar


                  bruepe der curl von 16:51 liefert das? etwas seltsam wg invalid action, sicher, dass du alles richtig rüberpastest???

                  Wenn der CURL fehlschlägt kann das plugin nichts dazu.. das einzige was sich geändert hat sind die instanz-"@"s an bestimmten childattributen.. das hat aber nichts mit dem service zu tun, der bei dir zickt...

                  und nochmal die frage: updaten andere items vom avm plugin als die, die diesen service nutzen?

                  Kommentar


                    Ja, der curl liefert das ergebnis. ich habe es exakt rauskopiert und user und password ersetzt. Ich habe auch die Gänsefüßchen mal getauscht, quasi genauso angepasst wie die curl-Beispiele aus der readme. Es kommt immer der 401 mit invalid action

                    Findest du denn im neuen Fritz!OS diese drei Haken für die Freigabe bei dir noch? Bei mir sind die weg!

                    Ich weiß nicht welche genau diesen Service nutzen. Ich denke es sind alle die diesen Service nutzen, zumindest wird kein einziges item geupdatet. Ich habe alle durchgeschaut.

                    Kommentar


                      mein smarthome benutzer hat folgende rechte:
                      rechte.JPG

                      Kommentar


                        zu den items: nutze das avm webif das über die pluginliste im backend verlinkt ist. da siehst du alle items auf einen blick

                        Kommentar


                          und unter heimnetz -> netzwerk gibts die noch (hinweis auf TR-064!)

                          rechte2.JPG
                          Zuletzt geändert von psilo; 02.08.2018, 16:15.

                          Kommentar


                            Zitat von psilo Beitrag anzeigen
                            mein smarthome benutzer hat folgende rechte:
                            rechte.JPG
                            exakt dasselbe bei mir. Dachte da waren noch weitere Einstellungen irgendwo unter Netzwerk -> Netzwerkeinstellungen

                            Kommentar


                              So, nach langem hin und her geht es nun wieder, aber nur ohne SSL. In der Fritzbox wird auch ein anderer Port für SSL Verbindungen angezeigt, der wohl bei jedem anders ist. Aber selbst mit dem konnte ich mich via https nicht verbinden. Ohne https, also via http und Port 49000 geht es weiterhin ohne Probleme.

                              Kommentar


                                möchte das plugin dazu nutzen, festzustellen ob jemand zu hause ist oder nicht.
                                dazu möchte ich ermitteln, ob mein smartphone oder das meiner Faru im WLAN angemeldet sind.
                                das scheint zu funktionieren.

                                zwei Probleme möchte ich hier aber bitte klären:
                                1. Beim Restart von smarthomeNG ( 1.5.1.master (cc1288de) ) erhalte ich folgende Meldung:
                                  Code:
                                  	2018-09-30  18:11:18 INFO     lib.plugin        Stop plugins
                                  	2018-09-30  18:11:19 INFO     plugins.simulation Exit Simulation
                                  	2018-09-30  18:11:19 WARNING  lib.plugin        Error while stopping plugin 'avm', instance 'fritzbox_7490''
                                  	2018-09-30  18:11:19 INFO     lib.plugin        Stop of plugins finished
                                  	2018-09-30  18:11:19 INFO     lib.module        Stop Modules
                                2. einige Werte werden nicht geliefert:
                                  Code:
                                  	2018-09-30  18:11:33 INFO     lib.plugin        Start of plugins finished
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute serial_number not available on the FritzDevice
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute hardware_version not available on the FritzDevice
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute wan_upstream not available on the FritzDevice
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute wan_downstream not available on the FritzDevice
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute wan_total_packets_sent not available on the FritzDevice
                                  	2018-09-30  18:11:35 ERROR    plugins.avm       Attribute wan_total_packets_received not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wan_total_bytes_sent not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wan_total_bytes_received not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wan_link not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlanconfig not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlanconfig_ssid not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlanconfig not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlanconfig not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlanconfig_ssid not available on the FritzDevice
                                  	2018-09-30  18:11:36 ERROR    plugins.avm       Attribute wlan_guest_time_remaining not available on the FritzDevice
                                  	2018-09-30  18:11:38 INFO     logics.hello      Hello World!
                                Es handelt sich um eine Fritz Box 7490 mit aktueller Software: 07.01

                                Hier auch noch ein screenshot des web-Interfaces:

                                avm1.JPG

                                Kommentar

                                Lädt...
                                X