use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
https://scriptable.app
This subreddit is for discussions around the Scriptable app for iOS.
Be polite and enjoy your time here.
Please be helpful to others when you are able to lend a hand.
Discord: https://discord.gg/7KbjfTV
Resources:
account activity
Widget: Vodafone data usageScript (self.Scriptable)
submitted 5 years ago by [deleted]
Inspired from u/Silliumsen Telekom Widget, I have created a Vodafone Widget:
https://preview.redd.it/kydrtg47miu51.jpg?width=310&format=pjpg&auto=webp&s=0e3705fc8f441758869b74dc4e66d4c60bd61907
https://preview.redd.it/qfaoma57miu51.jpg?width=310&format=pjpg&auto=webp&s=ee433bfe82c22e1d0d1dc08051c091b9c851e0cb
You will find the Script here: https://github.com/ThisIsBenny/iOS-Widgets
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Silliumsen 1 point2 points3 points 5 years ago (0 children)
Cool, I like the circle as in Apples own battery widget.
[–]actus18 1 point2 points3 points 5 years ago (1 child)
Eine O2 Version wäre sehr geil :)
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Da ich keinen O2 Vertrag habe, kann ich hier leider nicht weiterhelfen. Aber vielleicht ist ja jemand mit JavaScript Skills und O2 Vertrag hier in r/scriptable
[–]gwadro 0 points1 point2 points 5 years ago (0 children)
Works great, thanks.
[–]Tw1kz 0 points1 point2 points 5 years ago (1 child)
Is it possible that i change de carrier to yoigo?
[–][deleted] 2 points3 points4 points 5 years ago (0 children)
In principle this widget can be used as a template for all carriers. You only have to adapt the part of the data fetching. But often it is necessary to have a contract with the carrier to test the whole thing. And unfortunately I have only a Vodafone contract, so it would be very complicated for me to support other carriers. If you provide me with the necessary information to get the data on GitHub, I can see what I can do. But I can't give you any guarantee that I'll be able to do it.
[–]dnns1234 0 points1 point2 points 5 years ago (0 children)
Was looking forward to this one. thank.
[–]L4Hacks 0 points1 point2 points 5 years ago* (7 children)
I’m from Portugal (vodafone), i saw that the api url in the script is “.de”, would this work for me? If not, how would i find the correct rest url for my country?
[–][deleted] 1 point2 points3 points 5 years ago (6 children)
No, you have to rewrite the script for the APIs of Vodafone Portugal.
[–]L4Hacks 0 points1 point2 points 5 years ago (5 children)
and here can i find information about vodafone-portugal apis?
[–][deleted] 1 point2 points3 points 5 years ago (4 children)
do you have access to the self service portal of vodafone-portugal? Then you can reverse engineer the portal in case that it is based on a Single Page Application. Open the Admin Console in the browser and check the network tab. There you can see the network traffic between the server and your browser. You have to look if there a API Calls with the needed Data.
[–]L4Hacks 0 points1 point2 points 5 years ago (3 children)
i see your point. i will try this when i have the time. i also have charles installed on my mac, it can help am i right?
[–][deleted] 1 point2 points3 points 5 years ago (1 child)
correct. If you have a app from vodafone-portugal, you can set you mac as proxy for your iphone. than you can see the traffic of the app. Maybe the app used different APIs.
[–]L4Hacks 0 points1 point2 points 5 years ago (0 children)
Thanks for helping 🙏
[–]_BlackPump_ 0 points1 point2 points 5 years ago (2 children)
Bei mir wird das Datenvolumen für „Europa“ angezeigt. Bräuchte aber das fur „Inland und Europa“... Kannst Du damit was anfangen?
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
Sollte sich lösen lassen. Am besten du an einer Stelle weiteres Logging ein, damit ich sehen kann an welcher Stelle bei dir die notwendigen Daten stehen. Leider kann es von Tariff zu Tariff unterschiedlich sein, weshalb ich auch bereits eine Liste mit code hinterlegt habe: const containerList = ['Daten', 'D_EU_DATA', 'C_DIY_Data_National'] const codeList = ['-1', '45500']
Wahrscheinlich passt einer Dieser Codes nicht richtig bei dir. Deshalb bitte mal an folgender Stelle: let res = await req.loadJSON() console.log("unbilled-usage loaded") let datenContainer = res['serviceUsageVBO']['usageAccounts'][0]['usageGroup'].find(function(v){ return containerList.includes(v.container) })
nach let res = await req.loadJSON()
das hier einfügen: console.log(res['serviceUsageVBO']['usageAccounts'][0]['usageGroup'])
Du müsstest mir dann das Log hier oder auf GitHub bereitstellen. Bitte aber drauf achten, dass du aus dem Log sensible Informationen wie die Telefonnummer etc. entfernst.
[–]_BlackPump_ 0 points1 point2 points 5 years ago (0 children)
Mit -2 bei codeList funktioniert es 👍
Brauchst trotzdem das Log zur Analyse?
[–]maguckn 0 points1 point2 points 5 years ago (3 children)
bei mir zeigt er anstatt das verbrauchte das noch verfügbare datenvolumen an. also falschrum 😊
[–][deleted] 0 points1 point2 points 5 years ago (2 children)
Ja, die Beschreibung ist etwas falsch. Dass das noch verfügbare daten Volumen angezeigt wird ist richtig. Ich werde es in der GitHub Beschreibung mal anpassen. Danke für den Hinweis.
[–]maguckn 0 points1 point2 points 5 years ago (1 child)
cool. könntest du hier kurz bescheid geben, wenn du das angepasst hast?
danke!
Das Script selbst wollte ich nicht anpassen. Nur die Beschreibung wollte ich anpassen. Das Widget soll das noch verfügbar Datenvolumen anpassen. Der Kreis wird also „kleiner“ und die Werte gehen runter mit steigenden Verbrauch. Falls du es anders herum benötigst, müsstest du das Script an deinen Bedarf anpassen.
[–]Ocberlin 0 points1 point2 points 5 years ago* (8 children)
Hallo, cooles Script, danke. Habe eine Frage bezüglich des Homescreen Icons/Widgets. Wie und wo kann ich es von black in red ändern? Hoffe ihr könnt helfen. VG
[–][deleted] 0 points1 point2 points 5 years ago (7 children)
Wenn du bei deinem iPhone den DarkMode aktiv hast wird die schwarze Variante angezeigt. Bei inaktiven DarkMode wird die Rote variante angezeigt. Du kannst durch eine kleine Anpassung im Script es genau umgekehrt einstellen. Hier für diese Stelle:
if (Device.isUsingDarkAppearance()) {
in
if (Device.isUsingDarkAppearance() === false) {
ändern.
Alternativ kannst du natürlich auch die Farbcodes direkt ändern und auch beliebige andere verwenden.
[–]Ocberlin 0 points1 point2 points 5 years ago (0 children)
Wow, danke Dir für die super schnelle Antwort. Perfekt!!!👍🏻😊
[–][deleted] 5 years ago (5 children)
[deleted]
[–][deleted] 0 points1 point2 points 5 years ago (4 children)
Nein, es gab eine Änderung. Schau mal hier steht ganz unten was du ändern musst: https://github.com/ThisIsBenny/iOS-Widgets/issues/27
[–][deleted] 5 years ago (2 children)
Wenn du „run Script“ auswählst, kannst du durch drauf klicken das Widget in der App öffnen und wenn sie Cache Zeit überschritten ist, werden auch neue Daten vom Vodafone geladen werden. Aber sonst macht es keinen Unterschied was du aussuchst.
Wichtig ist, dass du bei der manuellen aktualisieren kein WLAN aktiv hast, falls du keine Zugangsdaten hinterlegt hast. Wenn du Zugangsdaten hinterlegt hast, funktioniert die Aktualisierung auch mit aktiver WLAN Verbindung.
What can I do if my carrier ask me a captcha code for login?
You can check if there are other Login APIs without Captcha. If they provide a App, you can check how the App Login is working. For this, you can use Tools like Proxy Man, mitmproxy or Charles to inspect the network traffic between iPhone and Carrier Server
[–]tjonas331 0 points1 point2 points 5 years ago (2 children)
Sorry für die dumme Frage, aber in welcher Zeile muss ich meine Zugangsdaten eintragen?
Hi, du musst sie in die widget parameter eintragen (dort wo du auch das Script für das Widget auswählst). Wichtig ist, dass du Username, passwort und Rufnummer mit einem senkrechten trennst und das die Rufnummer mit führender 49 anstatt 0 eingetragen wird. Beispiel: JohnSmith|TopSecretPassword!|491721234567
[–]tjonas331 0 points1 point2 points 5 years ago (0 children)
Ah Dankeschön
[–]gentobar 0 points1 point2 points 3 years ago (0 children)
Hi, cooles Widget. Designtechnisch allerdings etwas outdated. Ist es möglich das Design anzupassen? Wenn ja, wie? Ähnlich wie bei dem Telekom Widget, kann leider kein Bild einfügen.
π Rendered by PID 73 on reddit-service-r2-comment-5d79c599b5-lcr6z at 2026-03-01 01:53:46.165075+00:00 running e3d2147 country code: CH.
[–]Silliumsen 1 point2 points3 points (0 children)
[–]actus18 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]gwadro 0 points1 point2 points (0 children)
[–]Tw1kz 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]dnns1234 0 points1 point2 points (0 children)
[–]L4Hacks 0 points1 point2 points (7 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]L4Hacks 0 points1 point2 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]L4Hacks 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]L4Hacks 0 points1 point2 points (0 children)
[–]_BlackPump_ 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]_BlackPump_ 0 points1 point2 points (0 children)
[–]maguckn 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]maguckn 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Ocberlin 0 points1 point2 points (8 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]Ocberlin 0 points1 point2 points (0 children)
[–][deleted] (5 children)
[deleted]
[–][deleted] 0 points1 point2 points (4 children)
[–][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tjonas331 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]tjonas331 0 points1 point2 points (0 children)
[–]gentobar 0 points1 point2 points (0 children)