Closed zaphod-pab closed 1 year ago
Boxes for cable-connections provide a subset of services for dsl-boxes. Historically fritzconnection is developed with dsl-boxes in mind (here is a service listing of my dsl-box):
fritzconnection v1.4.2
FRITZ!Box 7590 at http://192.168.178.1
FRITZ!OS: 7.21
Servicenames:
any1
WANCommonIFC1
WANDSLLinkC1
WANIPConn1
WANIPv6Firewall1
DeviceInfo1
DeviceConfig1
Layer3Forwarding1
LANConfigSecurity1
ManagementServer1
Time1
UserInterface1
X_AVM-DE_Storage1
X_AVM-DE_WebDAVClient1
X_AVM-DE_UPnP1
X_AVM-DE_Speedtest1
X_AVM-DE_RemoteAccess1
X_AVM-DE_MyFritz1
X_VoIP1
X_AVM-DE_OnTel1
X_AVM-DE_Dect1
X_AVM-DE_TAM1
X_AVM-DE_AppSetup1
X_AVM-DE_Homeauto1
X_AVM-DE_Homeplug1
X_AVM-DE_Filelinks1
X_AVM-DE_Auth1
X_AVM-DE_HostFilter1
WLANConfiguration1
WLANConfiguration2
WLANConfiguration3
Hosts1
LANEthernetInterfaceConfig1
LANHostConfigManagement1
WANCommonInterfaceConfig1
WANDSLInterfaceConfig1
WANDSLLinkConfig1
WANEthernetLinkConfig1
WANPPPConnection1
WANIPConnection1
Seems to be that the fritzstatus module runs into this issue.
Thank you for reporting: would be a nice idea for the next version to write a check for cable models and adapt the fritzstatus module accordingly – at least for a working subset.
Hi kbr, I am trying to use the Servicename DeviceConfig1 to Reboot my fritzbox 7590 V 7.21 via Actionname Reboot but it does not work. This is the command I use to reboot: fritzconnection -i 192.168.70.1 -p 123456 -A DeviceConfig1 Reboot
Am I missing something ? Thanks in advance !
The commandline interface is for the API inspection.
To execute an action on a given service you have to use the call_action
method, i.e. :
from fritzconnection import FritzConnection
fc = FritzConnection(<your parameters here>)
fc.call_action("DeviceConfig1", "Reboot")
Could you please tell me where I need to run this function ? In terminal does not run. I have read the instructions but I cant find where I need to type this function. Thank You !
You can use the interactive python interpreter to tun the code or implement this in a python module.
I suppose this is not a bug. If the topic pops up again and is not because of different router models, please open a new issue.
Hi, just started playing with this beautiful package, but experience issues on my box. Not sure if this is related to the firmware and what could be an elegant way of dealing with the fact that the names seem to differ on different boxes. Br, R.
Here's an example:
I managed to track this to the fact that the services needed to request the status items are named differently from what
fritzconnection/fritzconnection/lib/fritzstatus.py
assumes. E.g.WANIPConn
is calledWANIPConnection
in my case.See the check below.
Here's an overview of what my box reports: