blackw1ng / fritzbox-monitor Goto Github PK
View Code? Open in Web Editor NEWMonitor FritzBox metrics via a telegraf/influxdb/grafana stack that reads data from TR-064
License: MIT License
Monitor FritzBox metrics via a telegraf/influxdb/grafana stack that reads data from TR-064
License: MIT License
Hello, I got this set up so far that data is reaching my influxdb instance.
But now that I'm importing the dashboard to Grafana, data is not shown. On import, it sets the datasource to "Grafana" for every panel filling them with random data when it should be using the templating instead.
Could this be related to the Grafana version I'm using (v8.5.5)? I'm so close to the goal. Maybe you can help me out here! :)
Also, it's nicer when on import it allows you to select the datasource. You could include the following to your json file right after the first opening '{':
"__inputs": [
{
"name": "DS_INFLUXDB_TELEGRAF",
"label": "influxdb_telegraf",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
Then at the bottom of the file replace the datasource with: "datasource": "${DS_INFLUXDB_TELEGRAF}",
For me, it was always using the wrong instance of influxdb as I got two of them set up which is why I added this bit.
Best Regards
Hi,
with the fritzbox 7530 an OS 7,25 i get this error
`Could not query DeviceInfo1 with action GetInfo
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/fritzconnection/fritzconnection.py", line 460, in _get_action
service = self.services[service_name]
KeyError: 'DeviceInfo1:1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./checkfritz.py", line 91, in
deviceinfo = readout('DeviceInfo1', 'GetInfo', 'NewSerialNumber')
File "./checkfritz.py", line 27, in readout
answer_dict = fc.call_action(module, action)
File "/usr/local/lib/python3.7/dist-packages/fritzconnection/fritzconnection.py", line 489, in call_action
action = self._get_action(service_name, action_name)
File "/usr/local/lib/python3.7/dist-packages/fritzconnection/fritzconnection.py", line 462, in _get_action
raise ServiceError('Unknown Service: ' + service_name)
fritzconnection.fritzconnection.ServiceError: Unknown Service: DeviceInfo1:1
`
Is there a possibility you can update the Panel to be compatible with influxdb2 flux querys?
Could be possible to modify source code to have an external language file to translate strings in the GUI in different language?
Hi,
I setup all the needed components, but when i start the script i get the following output:
Could not query WANDSLInterfaceConfig1 with action GetInfo
Traceback (most recent call last):
File "checkfritz.py", line 113, in <module>
info = readout('WANDSLInterfaceConfig1', 'GetInfo')
File "checkfritz.py", line 27, in readout
answer_dict = fc.call_action(module, action)
File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/fritzconnection.py", line 284, in call_action
return self.soaper.execute(service, action_name, arguments)
File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/soaper.py", line 259, in execute
return handle_response(response)
File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/soaper.py", line 241, in handle_response
raise_fritzconnection_error(response)
File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/soaper.py", line 164, in raise_fritzconnection_error
raise exception(message)
fritzconnection.core.exceptions.FritzActionError: UPnPError:
errorCode: 401
errorDescription: Invalid Action
When i do this manuel i get this:
root@inflgraf:/home/telegraf# fritzconnection -i 192.168.232.254 -S WANDSLInterfaceConfig1
fritzconnection v1.9.1
FRITZ!Box 6591 Cable (kdg) at http://192.168.232.254
FRITZ!OS: 7.29
Servicename: WANDSLInterfaceConfig1
Actionnames:
GetInfo
GetStatisticsTotal
X_AVM-DE_GetDSLDiagnoseInfo
X_AVM-DE_GetDSLInfo
So, fritzconnection should work.
And it is a CableBox.
The OS is Ubuntu 20.04 with the latest updates, Python 3.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.