Mudi 7 - Traffic used/left

Hi,

is it possible to add the Traffic stats of my sim card on the internet-Web-gui?
I use Telekom germany - the JSON API URL is https://pass.telekom.de/api/service/generic/v1/status and the response:

{
  "initialVolume": 21474836480,
  "initialVolumeStr": "20 GB",
  "isRoaming": true,
  "nextUpdate": 600,
  "passName": "MagentaMobil Prepaid M",
  "passStage": 1,
  "passType": 103,
  "remainingSeconds": 567740,
  "sessionState": 0,
  "subscriptions": [
    "tns",
    "xtraSpeed",
    "xtraRLH"
  ],
  "title": "",
  "usedAt": 1781596453000,
  "usedPercentage": 84,
  "usedVolume": 18008015479,
  "usedVolumeStr": "16,77 GB",
  "validityPeriod": 4
}

Would be fine if this can be added to the internet page in the firmware.

If not: how can i add a JS-import to the internet page in the web-gui to add this for myself?

Hi

Thank you for the suggestion.

We will make a note of it and discuss it with the product team.

That said, it may be difficult for us to integrate this feature directly because different carriers use different methods, those methods may change over time, and the associated logic could quickly increase the size and complexity of the firmware.

If you are familiar with frontend development, you might consider modifying the content under the /www (should be /www/views/gl-sdk4-ui-internet.common.js.gz) directory and implementing the feature yourself.

1 Like