[Feature Request] Add widget to display data from fritzbox #1213
-
Is your feature request related to a service? Please describe. Is your feature request related to a problem? Please describe. Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 18 replies
-
@Buddinski88 (or anybody else that reads this and has a FritzBox with a DSL/ Please keep in mind that UPnP needs to be enabled (found in v7.31 at Heimnetz > Netzwerk > Netzwerkeinstellungen > Zugriff für Anwendungen zulassen und Statusinformationen über UPnP übtragen [both need to be enabled]) and you need the username of the user you login with (System > Fritz!Box-Benutzer > fritzXXXX). Let me know if something about the hacky script doesn't work. Edit: Cable DOES not work with this script |
Beta Was this translation helpful? Give feedback.
-
Hi @t0rb3n, thanks for looking at this topic. buddy@ubuntu-test-graph:~/Downloads$ node test-avm-tr064.js
WANPPPConnection (DSL/CABLE):
events.js:291
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'NewConnectionStatus' of undefined
at /home/buddy/Downloads/test-avm-tr064.js:105:60
at Parser.<anonymous> (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:314:20)
at SAXParser.onclosetag (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:262:26)
at emit (/home/buddy/Downloads/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/buddy/Downloads/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/buddy/Downloads/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/buddy/Downloads/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
Emitted 'error' event on Parser instance at:
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:327:16)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
at exports.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:369:19)
at Request._callback (/home/buddy/Downloads/test-avm-tr064.js:92:17)
at Request.self.callback (/home/buddy/Downloads/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:420:28) Can you take a look at it? I like to test the script again. |
Beta Was this translation helpful? Give feedback.
-
As a first step please paste the output if you go to http://yourFritzBox:49000/tr64desc.xml and http://yourFritzBox:4900/wanpppconnSCPD.xml! Mind the port, it's necessary. Also add a line between 103 and 104 with |
Beta Was this translation helpful? Give feedback.
-
Ok, here the outputs: tr64desc.xml<root xmlns="urn:dslforum-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<systemVersion>
<HW>226</HW>
<Major>154</Major>
<Minor>7</Minor>
<Patch>50</Patch>
<Buildnumber>101716</Buildnumber>
<Display>154.07.50</Display>
</systemVersion>
<device>
<deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>FRITZ!Box 7590</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>FRITZ!Box 7590</modelDescription>
<modelName>FRITZ!Box 7590</modelName>
<modelNumber>7590 - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:X</UDN>
<serialNumber>X</serialNumber>
<originUDN/>
<iconList>
<icon>
<mimetype>image/gif</mimetype>
<width>118</width>
<height>119</height>
<depth>8</depth>
<url>/ligd.gif</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
<serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
<controlURL>/upnp/control/deviceinfo</controlURL>
<eventSubURL>/upnp/control/deviceinfo</eventSubURL>
<SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
<serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
<controlURL>/upnp/control/deviceconfig</controlURL>
<eventSubURL>/upnp/control/deviceconfig</eventSubURL>
<SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:Layer3Forwarding-com:serviceId:Layer3Forwarding1</serviceId>
<controlURL>/upnp/control/layer3forwarding</controlURL>
<eventSubURL>/upnp/control/layer3forwarding</eventSubURL>
<SCPDURL>/layer3forwardingSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANConfigSecurity:1</serviceType>
<serviceId>urn:LANConfigSecurity-com:serviceId:LANConfigSecurity1</serviceId>
<controlURL>/upnp/control/lanconfigsecurity</controlURL>
<eventSubURL>/upnp/control/lanconfigsecurity</eventSubURL>
<SCPDURL>/lanconfigsecuritySCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:ManagementServer:1</serviceType>
<serviceId>urn:ManagementServer-com:serviceId:ManagementServer1</serviceId>
<controlURL>/upnp/control/mgmsrv</controlURL>
<eventSubURL>/upnp/control/mgmsrv</eventSubURL>
<SCPDURL>/mgmsrvSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Time:1</serviceType>
<serviceId>urn:Time-com:serviceId:Time1</serviceId>
<controlURL>/upnp/control/time</controlURL>
<eventSubURL>/upnp/control/time</eventSubURL>
<SCPDURL>/timeSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
<serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
<controlURL>/upnp/control/userif</controlURL>
<eventSubURL>/upnp/control/userif</eventSubURL>
<SCPDURL>/userifSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Storage:1</serviceType>
<serviceId>urn:X_AVM-DE_Storage-com:serviceId:X_AVM-DE_Storage1</serviceId>
<controlURL>/upnp/control/x_storage</controlURL>
<eventSubURL>/upnp/control/x_storage</eventSubURL>
<SCPDURL>/x_storageSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1</serviceType>
<serviceId>urn:X_AVM-DE_WebDAV-com:serviceId:X_AVM-DE_WebDAVClient1</serviceId>
<controlURL>/upnp/control/x_webdav</controlURL>
<eventSubURL>/upnp/control/x_webdav</eventSubURL>
<SCPDURL>/x_webdavSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_UPnP:1</serviceType>
<serviceId>urn:X_AVM-DE_UPnP-com:serviceId:X_AVM-DE_UPnP1</serviceId>
<controlURL>/upnp/control/x_upnp</controlURL>
<eventSubURL>/upnp/control/x_upnp</eventSubURL>
<SCPDURL>/x_upnpSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Speedtest:1</serviceType>
<serviceId>urn:X_AVM-DE_Speedtest-com:serviceId:X_AVM-DE_Speedtest1</serviceId>
<controlURL>/upnp/control/x_speedtest</controlURL>
<eventSubURL>/upnp/control/x_speedtest</eventSubURL>
<SCPDURL>/x_speedtestSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1</serviceType>
<serviceId>urn:X_AVM-DE_RemoteAccess-com:serviceId:X_AVM-DE_RemoteAccess1</serviceId>
<controlURL>/upnp/control/x_remote</controlURL>
<eventSubURL>/upnp/control/x_remote</eventSubURL>
<SCPDURL>/x_remoteSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_MyFritz:1</serviceType>
<serviceId>urn:X_AVM-DE_MyFritz-com:serviceId:X_AVM-DE_MyFritz1</serviceId>
<controlURL>/upnp/control/x_myfritz</controlURL>
<eventSubURL>/upnp/control/x_myfritz</eventSubURL>
<SCPDURL>/x_myfritzSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_VoIP:1</serviceType>
<serviceId>urn:X_VoIP-com:serviceId:X_VoIP1</serviceId>
<controlURL>/upnp/control/x_voip</controlURL>
<eventSubURL>/upnp/control/x_voip</eventSubURL>
<SCPDURL>/x_voipSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_OnTel:1</serviceType>
<serviceId>urn:X_AVM-DE_OnTel-com:serviceId:X_AVM-DE_OnTel1</serviceId>
<controlURL>/upnp/control/x_contact</controlURL>
<eventSubURL>/upnp/control/x_contact</eventSubURL>
<SCPDURL>/x_contactSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Dect:1</serviceType>
<serviceId>urn:X_AVM-DE_Dect-com:serviceId:X_AVM-DE_Dect1</serviceId>
<controlURL>/upnp/control/x_dect</controlURL>
<eventSubURL>/upnp/control/x_dect</eventSubURL>
<SCPDURL>/x_dectSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_TAM:1</serviceType>
<serviceId>urn:X_AVM-DE_TAM-com:serviceId:X_AVM-DE_TAM1</serviceId>
<controlURL>/upnp/control/x_tam</controlURL>
<eventSubURL>/upnp/control/x_tam</eventSubURL>
<SCPDURL>/x_tamSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_AppSetup:1</serviceType>
<serviceId>urn:X_AVM-DE_AppSetup-com:serviceId:X_AVM-DE_AppSetup1</serviceId>
<controlURL>/upnp/control/x_appsetup</controlURL>
<eventSubURL>/upnp/control/x_appsetup</eventSubURL>
<SCPDURL>/x_appsetupSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeauto:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeauto-com:serviceId:X_AVM-DE_Homeauto1</serviceId>
<controlURL>/upnp/control/x_homeauto</controlURL>
<eventSubURL>/upnp/control/x_homeauto</eventSubURL>
<SCPDURL>/x_homeautoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeplug:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeplug-com:serviceId:X_AVM-DE_Homeplug1</serviceId>
<controlURL>/upnp/control/x_homeplug</controlURL>
<eventSubURL>/upnp/control/x_homeplug</eventSubURL>
<SCPDURL>/x_homeplugSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Filelinks:1</serviceType>
<serviceId>urn:X_AVM-DE_Filelinks-com:serviceId:X_AVM-DE_Filelinks1</serviceId>
<controlURL>/upnp/control/x_filelinks</controlURL>
<eventSubURL>/upnp/control/x_filelinks</eventSubURL>
<SCPDURL>/x_filelinksSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Auth:1</serviceType>
<serviceId>urn:X_AVM-DE_Auth-com:serviceId:X_AVM-DE_Auth1</serviceId>
<controlURL>/upnp/control/x_auth</controlURL>
<eventSubURL>/upnp/control/x_auth</eventSubURL>
<SCPDURL>/x_authSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_HostFilter:1</serviceType>
<serviceId>urn:X_AVM-DE_HostFilter-com:serviceId:X_AVM-DE_HostFilter1</serviceId>
<controlURL>/upnp/control/x_hostfilter</controlURL>
<eventSubURL>/upnp/control/x_hostfilter</eventSubURL>
<SCPDURL>/x_hostfilterSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_USPController:1</serviceType>
<serviceId>urn:X_AVM-DE_USPController-com:serviceId:X_AVM-DE_USPController1</serviceId>
<controlURL>/upnp/control/x_uspcontroller</controlURL>
<eventSubURL>/upnp/control/x_uspcontroller</eventSubURL>
<SCPDURL>/x_uspcontrollerSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice - FRITZ!Box 7590</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>LANDevice - FRITZ!Box 7590</modelDescription>
<modelName>LANDevice - FRITZ!Box 7590</modelName>
<modelNumber>7590 - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:X</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration1</serviceId>
<controlURL>/upnp/control/wlanconfig1</controlURL>
<eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration2</serviceId>
<controlURL>/upnp/control/wlanconfig2</controlURL>
<eventSubURL>/upnp/control/wlanconfig2</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<!-- 2 -->
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration3</serviceId>
<controlURL>/upnp/control/wlanconfig3</controlURL>
<eventSubURL>/upnp/control/wlanconfig3</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
<serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
<controlURL>/upnp/control/hosts</controlURL>
<eventSubURL>/upnp/control/hosts</eventSubURL>
<SCPDURL>/hostsSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANEthernetInterfaceConfig:1</serviceType>
<serviceId>urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1</serviceId>
<controlURL>/upnp/control/lanethernetifcfg</controlURL>
<eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
<SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1</serviceId>
<controlURL>/upnp/control/lanhostconfigmgm</controlURL>
<eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
<SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
<device>
<deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice - FRITZ!Box 7590</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANDevice - FRITZ!Box 7590</modelDescription>
<modelName>WANDevice - FRITZ!Box 7590</modelName>
<modelNumber>7590 - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:X</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wancommonifconfig1</controlURL>
<eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
<SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
<serviceId>urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wandslifconfig1</controlURL>
<eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
<SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice - FRITZ!Box 7590</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANConnectionDevice - FRITZ!Box 7590</modelDescription>
<modelName>WANConnectionDevice - FRITZ!Box 7590</modelName>
<modelNumber>7590 - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:X</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_WANMobileConnection:1</serviceType>
<serviceId>urn:X_AVM-DE_WANMobileConnection-com:serviceId:X_AVM-DE_WANMobileConnection1</serviceId>
<controlURL>/upnp/control/x_wanmobileconn</controlURL>
<eventSubURL>/upnp/control/x_wanmobileconn</eventSubURL>
<SCPDURL>/x_wanmobileconnSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
<serviceId>urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1</serviceId>
<controlURL>/upnp/control/wandsllinkconfig1</controlURL>
<eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
<SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1</serviceId>
<controlURL>/upnp/control/wanethlinkconfig1</controlURL>
<eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
<SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:WANPPPConnection-com:serviceId:WANPPPConnection1</serviceId>
<controlURL>/upnp/control/wanpppconn1</controlURL>
<eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
<SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
<controlURL>/upnp/control/wanipconnection1</controlURL>
<eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
<SCPDURL>/wanipconnSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<presentationURL>http://fritz.box</presentationURL>
</device>
</root> wanpppconnSCPD.xml<scpd xmlns="urn:dslforum-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<actionList>
<action>
<name>GetInfo</name>
<argumentList>
<argument>
<name>NewEnable</name>
<direction>out</direction>
<relatedStateVariable>Enable</relatedStateVariable>
</argument>
<argument>
<name>NewConnectionStatus</name>
<direction>out</direction>
<relatedStateVariable>ConnectionStatus</relatedStateVariable>
</argument>
<argument>
<name>NewPossibleConnectionTypes</name>
<direction>out</direction>
<relatedStateVariable>PossibleConnectionTypes</relatedStateVariable>
</argument>
<argument>
<name>NewConnectionType</name>
<direction>out</direction>
<relatedStateVariable>ConnectionType</relatedStateVariable>
</argument>
<argument>
<name>NewName</name>
<direction>out</direction>
<relatedStateVariable>Name</relatedStateVariable>
</argument>
<argument>
<name>NewUptime</name>
<direction>out</direction>
<relatedStateVariable>Uptime</relatedStateVariable>
</argument>
<argument>
<name>NewUpstreamMaxBitRate</name>
<direction>out</direction>
<relatedStateVariable>UpstreamMaxBitRate</relatedStateVariable>
</argument>
<argument>
<name>NewDownstreamMaxBitRate</name>
<direction>out</direction>
<relatedStateVariable>DownstreamMaxBitRate</relatedStateVariable>
</argument>
<argument>
<name>NewLastConnectionError</name>
<direction>out</direction>
<relatedStateVariable>LastConnectionError</relatedStateVariable>
</argument>
<argument>
<name>NewIdleDisconnectTime</name>
<direction>out</direction>
<relatedStateVariable>IdleDisconnectTime</relatedStateVariable>
</argument>
<argument>
<name>NewRSIPAvailable</name>
<direction>out</direction>
<relatedStateVariable>RSIPAvailable</relatedStateVariable>
</argument>
<argument>
<name>NewUserName</name>
<direction>out</direction>
<relatedStateVariable>UserName</relatedStateVariable>
</argument>
<argument>
<name>NewNATEnabled</name>
<direction>out</direction>
<relatedStateVariable>NATEnabled</relatedStateVariable>
</argument>
<argument>
<name>NewExternalIPAddress</name>
<direction>out</direction>
<relatedStateVariable>ExternalIPAddress</relatedStateVariable>
</argument>
<argument>
<name>NewDNSServers</name>
<direction>out</direction>
<relatedStateVariable>DNSServers</relatedStateVariable>
</argument>
<argument>
<name>NewMACAddress</name>
<direction>out</direction>
<relatedStateVariable>MACAddress</relatedStateVariable>
</argument>
<argument>
<name>NewConnectionTrigger</name>
<direction>out</direction>
<relatedStateVariable>ConnectionTrigger</relatedStateVariable>
</argument>
<argument>
<name>NewLastAuthErrorInfo</name>
<direction>out</direction>
<relatedStateVariable>LastAuthErrorInfo</relatedStateVariable>
</argument>
<argument>
<name>NewMaxCharsUsername</name>
<direction>out</direction>
<relatedStateVariable>MaxCharsUsername</relatedStateVariable>
</argument>
<argument>
<name>NewMinCharsUsername</name>
<direction>out</direction>
<relatedStateVariable>MinCharsUsername</relatedStateVariable>
</argument>
<argument>
<name>NewAllowedCharsUsername</name>
<direction>out</direction>
<relatedStateVariable>AllowedCharsUsername</relatedStateVariable>
</argument>
<argument>
<name>NewMaxCharsPassword</name>
<direction>out</direction>
<relatedStateVariable>MaxCharsPassword</relatedStateVariable>
</argument>
<argument>
<name>NewMinCharsPassword</name>
<direction>out</direction>
<relatedStateVariable>MinCharsPassword</relatedStateVariable>
</argument>
<argument>
<name>NewAllowedCharsPassword</name>
<direction>out</direction>
<relatedStateVariable>AllowedCharsPassword</relatedStateVariable>
</argument>
<argument>
<name>NewTransportType</name>
<direction>out</direction>
<relatedStateVariable>TransportType</relatedStateVariable>
</argument>
<argument>
<name>NewRouteProtocolRx</name>
<direction>out</direction>
<relatedStateVariable>RouteProtocolRx</relatedStateVariable>
</argument>
<argument>
<name>NewPPPoEServiceName</name>
<direction>out</direction>
<relatedStateVariable>PPPoEServiceName</relatedStateVariable>
</argument>
<argument>
<name>NewRemoteIPAddress</name>
<direction>out</direction>
<relatedStateVariable>RemoteIPAddress</relatedStateVariable>
</argument>
<argument>
<name>NewPPPoEACName</name>
<direction>out</direction>
<relatedStateVariable>PPPoEACName</relatedStateVariable>
</argument>
<argument>
<name>NewDNSEnabled</name>
<direction>out</direction>
<relatedStateVariable>DNSEnabled</relatedStateVariable>
</argument>
<argument>
<name>NewDNSOverrideAllowed</name>
<direction>out</direction>
<relatedStateVariable>DNSOverrideAllowed</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetConnectionTypeInfo</name>
<argumentList>
<argument>
<name>NewConnectionType</name>
<direction>out</direction>
<relatedStateVariable>ConnectionType</relatedStateVariable>
</argument>
<argument>
<name>NewPossibleConnectionTypes</name>
<direction>out</direction>
<relatedStateVariable>PossibleConnectionTypes</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetConnectionType</name>
<argumentList>
<argument>
<name>NewConnectionType</name>
<direction>in</direction>
<relatedStateVariable>ConnectionType</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetStatusInfo</name>
<argumentList>
<argument>
<name>NewConnectionStatus</name>
<direction>out</direction>
<relatedStateVariable>ConnectionStatus</relatedStateVariable>
</argument>
<argument>
<name>NewLastConnectionError</name>
<direction>out</direction>
<relatedStateVariable>LastConnectionError</relatedStateVariable>
</argument>
<argument>
<name>NewUptime</name>
<direction>out</direction>
<relatedStateVariable>Uptime</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetUserName</name>
<argumentList>
<argument>
<name>NewUserName</name>
<direction>out</direction>
<relatedStateVariable>UserName</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetUserName</name>
<argumentList>
<argument>
<name>NewUserName</name>
<direction>in</direction>
<relatedStateVariable>UserName</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetPassword</name>
<argumentList>
<argument>
<name>NewPassword</name>
<direction>in</direction>
<relatedStateVariable>Password</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetNATRSIPStatus</name>
<argumentList>
<argument>
<name>NewRSIPAvailable</name>
<direction>out</direction>
<relatedStateVariable>RSIPAvailable</relatedStateVariable>
</argument>
<argument>
<name>NewNATEnabled</name>
<direction>out</direction>
<relatedStateVariable>NATEnabled</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetConnectionTrigger</name>
<argumentList>
<argument>
<name>NewConnectionTrigger</name>
<direction>in</direction>
<relatedStateVariable>ConnectionTrigger</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>ForceTermination</name>
</action>
<action>
<name>RequestConnection</name>
</action>
<action>
<name>GetGenericPortMappingEntry</name>
<argumentList>
<argument>
<name>NewPortMappingIndex</name>
<direction>in</direction>
<relatedStateVariable>PortMappingNumberOfEntries</relatedStateVariable>
</argument>
<argument>
<name>NewRemoteHost</name>
<direction>out</direction>
<relatedStateVariable>RemoteHost</relatedStateVariable>
</argument>
<argument>
<name>NewExternalPort</name>
<direction>out</direction>
<relatedStateVariable>ExternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewProtocol</name>
<direction>out</direction>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
</argument>
<argument>
<name>NewInternalPort</name>
<direction>out</direction>
<relatedStateVariable>InternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewInternalClient</name>
<direction>out</direction>
<relatedStateVariable>InternalClient</relatedStateVariable>
</argument>
<argument>
<name>NewEnabled</name>
<direction>out</direction>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
</argument>
<argument>
<name>NewPortMappingDescription</name>
<direction>out</direction>
<relatedStateVariable>PortMappingDescription</relatedStateVariable>
</argument>
<argument>
<name>NewLeaseDuration</name>
<direction>out</direction>
<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetSpecificPortMappingEntry</name>
<argumentList>
<argument>
<name>NewRemoteHost</name>
<direction>in</direction>
<relatedStateVariable>RemoteHost</relatedStateVariable>
</argument>
<argument>
<name>NewExternalPort</name>
<direction>in</direction>
<relatedStateVariable>ExternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewProtocol</name>
<direction>in</direction>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
</argument>
<argument>
<name>NewInternalPort</name>
<direction>out</direction>
<relatedStateVariable>InternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewInternalClient</name>
<direction>out</direction>
<relatedStateVariable>InternalClient</relatedStateVariable>
</argument>
<argument>
<name>NewEnabled</name>
<direction>out</direction>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
</argument>
<argument>
<name>NewPortMappingDescription</name>
<direction>out</direction>
<relatedStateVariable>PortMappingDescription</relatedStateVariable>
</argument>
<argument>
<name>NewLeaseDuration</name>
<direction>out</direction>
<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>AddPortMapping</name>
<argumentList>
<argument>
<name>NewRemoteHost</name>
<direction>in</direction>
<relatedStateVariable>RemoteHost</relatedStateVariable>
</argument>
<argument>
<name>NewExternalPort</name>
<direction>in</direction>
<relatedStateVariable>ExternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewProtocol</name>
<direction>in</direction>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
</argument>
<argument>
<name>NewInternalPort</name>
<direction>in</direction>
<relatedStateVariable>InternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewInternalClient</name>
<direction>in</direction>
<relatedStateVariable>InternalClient</relatedStateVariable>
</argument>
<argument>
<name>NewEnabled</name>
<direction>in</direction>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
</argument>
<argument>
<name>NewPortMappingDescription</name>
<direction>in</direction>
<relatedStateVariable>PortMappingDescription</relatedStateVariable>
</argument>
<argument>
<name>NewLeaseDuration</name>
<direction>in</direction>
<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>DeletePortMapping</name>
<argumentList>
<argument>
<name>NewRemoteHost</name>
<direction>in</direction>
<relatedStateVariable>RemoteHost</relatedStateVariable>
</argument>
<argument>
<name>NewExternalPort</name>
<direction>in</direction>
<relatedStateVariable>ExternalPort</relatedStateVariable>
</argument>
<argument>
<name>NewProtocol</name>
<direction>in</direction>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetExternalIPAddress</name>
<argumentList>
<argument>
<name>NewExternalIPAddress</name>
<direction>out</direction>
<relatedStateVariable>ExternalIPAddress</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>X_GetDNSServers</name>
<argumentList>
<argument>
<name>NewDNSServers</name>
<direction>out</direction>
<relatedStateVariable>DNSServers</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetLinkLayerMaxBitRates</name>
<argumentList>
<argument>
<name>NewUpstreamMaxBitRate</name>
<direction>out</direction>
<relatedStateVariable>UpstreamMaxBitRate</relatedStateVariable>
</argument>
<argument>
<name>NewDownstreamMaxBitRate</name>
<direction>out</direction>
<relatedStateVariable>DownstreamMaxBitRate</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>GetPortMappingNumberOfEntries</name>
<argumentList>
<argument>
<name>NewPortMappingNumberOfEntries</name>
<direction>out</direction>
<relatedStateVariable>PortMappingNumberOfEntries</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetRouteProtocolRx</name>
<argumentList>
<argument>
<name>NewRouteProtocolRx</name>
<direction>in</direction>
<relatedStateVariable>RouteProtocolRx</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>SetIdleDisconnectTime</name>
<argumentList>
<argument>
<name>NewIdleDisconnectTime</name>
<direction>in</direction>
<relatedStateVariable>IdleDisconnectTime</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>X_AVM-DE_GetAutoDisconnectTimeSpan</name>
<argumentList>
<argument>
<name>NewX_AVM-DE_DisconnectPreventionEnable</name>
<direction>out</direction>
<relatedStateVariable>X_AVM-DE_DisconnectPreventionEnable</relatedStateVariable>
</argument>
<argument>
<name>NewX_AVM-DE_DisconnectPreventionHour</name>
<direction>out</direction>
<relatedStateVariable>X_AVM-DE_DisconnectPreventionHour</relatedStateVariable>
</argument>
</argumentList>
</action>
<action>
<name>X_AVM-DE_SetAutoDisconnectTimeSpan</name>
<argumentList>
<argument>
<name>NewX_AVM-DE_DisconnectPreventionEnable</name>
<direction>in</direction>
<relatedStateVariable>X_AVM-DE_DisconnectPreventionEnable</relatedStateVariable>
</argument>
<argument>
<name>NewX_AVM-DE_DisconnectPreventionHour</name>
<direction>in</direction>
<relatedStateVariable>X_AVM-DE_DisconnectPreventionHour</relatedStateVariable>
</argument>
</argumentList>
</action>
</actionList>
<serviceStateTable>
<stateVariable sendEvents="no">
<name>Enable</name>
<dataType>boolean</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>Name</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>ConnectionType</name>
<dataType>string</dataType>
<defaultValue>Unconfigured</defaultValue>
<allowedValueList>
<allowedValue>Unconfigured</allowedValue>
<allowedValue>IP_Routed</allowedValue>
<allowedValue>IP_Bridged</allowedValue>
</allowedValueList>
</stateVariable>
<stateVariable sendEvents="no">
<name>PossibleConnectionTypes</name>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>Unconfigured</allowedValue>
<allowedValue>IP_Routed</allowedValue>
<allowedValue>IP_Bridged</allowedValue>
</allowedValueList>
</stateVariable>
<stateVariable sendEvents="no">
<name>ConnectionStatus</name>
<dataType>string</dataType>
<defaultValue>Unconfigured</defaultValue>
<allowedValueList>
<allowedValue>Unconfigured</allowedValue>
<allowedValue>Connecting</allowedValue>
<allowedValue>Authenticating</allowedValue>
<allowedValue>PendingDisconnect</allowedValue>
<allowedValue>Disconnecting</allowedValue>
<allowedValue>Disconnected</allowedValue>
<allowedValue>Connected</allowedValue>
</allowedValueList>
</stateVariable>
<stateVariable sendEvents="no">
<name>UpstreamMaxBitRate</name>
<dataType>ui4</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>DownstreamMaxBitRate</name>
<dataType>ui4</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>Uptime</name>
<dataType>ui4</dataType>
<defaultValue>0</defaultValue>
<allowedValueRange>
<minimum>0</minimum>
<maximum>4294967295</maximum>
<step>1</step>
</allowedValueRange>
</stateVariable>
<stateVariable sendEvents="no">
<name>NATEnabled</name>
<dataType>boolean</dataType>
<defaultValue>1</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>LastConnectionError</name>
<dataType>string</dataType>
<defaultValue>ERROR_NONE</defaultValue>
<allowedValueList>
<allowedValue>ERROR_NONE</allowedValue>
<allowedValue>ERROR_ISP_TIME_OUT</allowedValue>
<allowedValue>ERROR_COMMAND_ABORTED</allowedValue>
<allowedValue>ERROR_NOT_ENABLED_FOR_INTERNET</allowedValue>
<allowedValue>ERROR_BAD_PHONE_NUMBER</allowedValue>
<allowedValue>ERROR_USER_DISCONNECT</allowedValue>
<allowedValue>ERROR_ISP_DISCONNECT</allowedValue>
<allowedValue>ERROR_IDLE_DISCONNECT</allowedValue>
<allowedValue>ERROR_FORCED_DISCONNECT</allowedValue>
<allowedValue>ERROR_SERVER_OUT_OF_RESOURCES</allowedValue>
<allowedValue>ERROR_RESTRICTED_LOGON_HOURS</allowedValue>
<allowedValue>ERROR_ACCOUNT_DISABLED</allowedValue>
<allowedValue>ERROR_ACCOUNT_EXPIRED</allowedValue>
<allowedValue>ERROR_PASSWORD_EXPIRED</allowedValue>
<allowedValue>ERROR_AUTHENTICATION_FAILURE</allowedValue>
<allowedValue>ERROR_NO_DIALTONE</allowedValue>
<allowedValue>ERROR_NO_CARRIER</allowedValue>
<allowedValue>ERROR_NO_ANSWER</allowedValue>
<allowedValue>ERROR_LINE_BUSY</allowedValue>
<allowedValue>ERROR_UNSUPPORTED_BITSPERSECOND</allowedValue>
<allowedValue>ERROR_TOO_MANY_LINE_ERRORS</allowedValue>
<allowedValue>ERROR_IP_CONFIGURATION</allowedValue>
<allowedValue>ERROR_UNKNOWN</allowedValue>
</allowedValueList>
</stateVariable>
<stateVariable sendEvents="no">
<name>IdleDisconnectTime</name>
<dataType>ui4</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>UserName</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>Password</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>DNSServers</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>MACAddress</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>TransportType</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>ConnectionTrigger</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>ExternalIPAddress</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>LastAuthErrorInfo</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>RemoteHost</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>ExternalPort</name>
<dataType>ui2</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>InternalPort</name>
<dataType>ui2</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>PortMappingProtocol</name>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>TCP</allowedValue>
<allowedValue>UDP</allowedValue>
</allowedValueList>
</stateVariable>
<stateVariable sendEvents="no">
<name>InternalClient</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>PortMappingDescription</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>PortMappingEnabled</name>
<dataType>boolean</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>PortMappingLeaseDuration</name>
<dataType>ui4</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>PortMappingNumberOfEntries</name>
<dataType>ui2</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>MaxCharsUsername</name>
<dataType>ui2</dataType>
<defaultValue>128</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>MinCharsUsername</name>
<dataType>ui2</dataType>
<defaultValue>3</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>AllowedCharsUsername</name>
<dataType>string</dataType>
<defaultValue>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._@()#/%[]{}*+§$&=?!:;,</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>MaxCharsPassword</name>
<dataType>ui2</dataType>
<defaultValue>64</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>MinCharsPassword</name>
<dataType>ui2</dataType>
<defaultValue>3</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>AllowedCharsPassword</name>
<dataType>string</dataType>
<defaultValue>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._@()#/%[]{}*+§$&=?!:;,</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>RSIPAvailable</name>
<dataType>boolean</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>RouteProtocolRx</name>
<dataType>string</dataType>
<defaultValue>Off</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>PPPoEServiceName</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>PPPoEACName</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>DNSOverrideAllowed</name>
<dataType>boolean</dataType>
<defaultValue>0</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>RemoteIPAddress</name>
<dataType>string</dataType>
</stateVariable>
<stateVariable sendEvents="no">
<name>DNSEnabled</name>
<dataType>boolean</dataType>
<defaultValue>1</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>X_AVM-DE_DisconnectPreventionEnable</name>
<dataType>boolean</dataType>
<defaultValue>1</defaultValue>
</stateVariable>
<stateVariable sendEvents="no">
<name>X_AVM-DE_DisconnectPreventionHour</name>
<dataType>ui2</dataType>
<defaultValue>2</defaultValue>
<allowedValueRange>
<minimum>0</minimum>
<maximum>23</maximum>
</allowedValueRange>
</stateVariable>
</serviceStateTable>
</scpd> Logbuddy@ubuntu-test-graph:~/Downloads$ node test-avm-tr064.js
{
'$': {
'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/',
's:encodingStyle': 'http://schemas.xmlsoap.org/soap/encoding/'
},
's:Header': {
'h:Challenge': {
'$': [Object],
Status: 'Unauthenticated',
Nonce: '8D4D0E2B6B710000',
Realm: 'F!Box SOAP-Auth'
}
},
's:Body': {
's:Fault': {
faultcode: 's:Client',
faultstring: 'UPnPError',
detail: [Object]
}
}
}
WANPPPConnection (DSL/CABLE):
events.js:291
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'NewConnectionStatus' of undefined
at /home/buddy/Downloads/test-avm-tr064.js:106:60
at Parser.<anonymous> (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:314:20)
at SAXParser.onclosetag (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:262:26)
at emit (/home/buddy/Downloads/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/buddy/Downloads/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/buddy/Downloads/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/buddy/Downloads/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
Emitted 'error' event on Parser instance at:
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:327:16)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
at exports.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:369:19)
at Request._callback (/home/buddy/Downloads/test-avm-tr064.js:92:17)
at Request.self.callback (/home/buddy/Downloads/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:420:28) |
Beta Was this translation helpful? Give feedback.
-
Could you please print the Sorry, for being this hacky. The errors are not that helpful for me (and the UPnP are not that helpful in general either) :D Also are you sure that you have DSL connection? Reason I ask is, this script WILL always fail if you don't. |
Beta Was this translation helpful? Give feedback.
-
Sure i can try it :) Log
Yes, i have a DSL connection. |
Beta Was this translation helpful? Give feedback.
-
Had an error in the last console.log its supposed to be |
Beta Was this translation helpful? Give feedback.
-
This throws an SyntaxError "Unexpected token '"' |
Beta Was this translation helpful? Give feedback.
-
Sorry, my brain is broken... |
Beta Was this translation helpful? Give feedback.
-
No problem. I have just seen it myself. buddy@ubuntu-test-graph:~/Downloads$ node test-avm-tr064.js
{
UPnPError: {
'$': { xmlns: 'urn:dslforum-org:control-1-0' },
errorCode: '503',
errorDescription: 'Auth. failed'
}
}
WANPPPConnection (DSL/CABLE):
events.js:291
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'NewConnectionStatus' of undefined
at /home/buddy/Downloads/test-avm-tr064.js:106:60
at Parser.<anonymous> (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:314:20)
at SAXParser.onclosetag (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:262:26)
at emit (/home/buddy/Downloads/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/buddy/Downloads/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/buddy/Downloads/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/buddy/Downloads/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
Emitted 'error' event on Parser instance at:
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:327:16)
at Parser.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:5:59)
at exports.parseString (/home/buddy/Downloads/node_modules/xml2js/lib/parser.js:369:19)
at Request._callback (/home/buddy/Downloads/test-avm-tr064.js:92:17)
at Request.self.callback (/home/buddy/Downloads/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage.<anonymous> (/home/buddy/Downloads/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:420:28)
|
Beta Was this translation helpful? Give feedback.
-
It actually is as Auth seems to failing. Not sure why but I will look into it. Currently at work so can't and not sure if I find time for it this evening, probably not. Do you have Discord or something? Dont want to spam here much more. |
Beta Was this translation helpful? Give feedback.
-
@Buddinski88 I had another look at it.. Please change in Line 103 from |
Beta Was this translation helpful? Give feedback.
-
@t0rb3n sure i have discord (Buddinski88#3297). Here the log with the change. logbuddy@ubuntu-test-ui:~/Downloads/test-avm$ node test-avm-tr064.js
CommonLinkProperties:
events.js:291
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'NewPhysicalLinkStatus' of undefined
at /home/buddy/Downloads/test-avm/test-avm-tr064.js:99:60
at Parser.<anonymous> (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:314:20)
at SAXParser.onclosetag (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:262:26)
at emit (/home/buddy/Downloads/test-avm/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/buddy/Downloads/test-avm/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/buddy/Downloads/test-avm/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/buddy/Downloads/test-avm/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:5:59)
Emitted 'error' event on Parser instance at:
at Parser.exports.Parser.Parser.parseString (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:327:16)
at Parser.parseString (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:5:59)
at exports.parseString (/home/buddy/Downloads/test-avm/node_modules/xml2js/lib/parser.js:369:19)
at Request._callback (/home/buddy/Downloads/test-avm/test-avm-tr064.js:92:17)
at Request.self.callback (/home/buddy/Downloads/test-avm/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request.<anonymous> (/home/buddy/Downloads/test-avm/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage.<anonymous> (/home/buddy/Downloads/test-avm/node_modules/request/request.js:1076:12) |
Beta Was this translation helpful? Give feedback.
-
So, how is it going regarding this integration? Any updates ^^ |
Beta Was this translation helpful? Give feedback.
-
@Rabenherz112 I didn't have much time in the last weeks. Also I have no FritzBox with DSL connection to further test stuff. So not sure where to go from there. |
Beta Was this translation helpful? Give feedback.
-
i'm also looking forward this integration. |
Beta Was this translation helpful? Give feedback.
-
I just opened a pull request for a new fritzbox widget: #2387 |
Beta Was this translation helpful? Give feedback.
-
@evorg Cool widget. As you use the max linespeed this should perhaps clearer shown. I first thought to see the actual transfer speed. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Beta Was this translation helpful? Give feedback.
I just opened a pull request for a new fritzbox widget: #2387
Feel free to test it out on my feature branch.