-
-
Save icsAT/1b832fa894fbe3fc1df99272c6ffd567 to your computer and use it in GitHub Desktop.
// Look at https://github.com/icsAT/Weather-Cal |
Additional Functions:
tmobile:
This item shows your data left from your T-Mobile Germany data plan.
It requires data connectivity over the mobile network to get or refresh the data. A red antenna means there is no data connectivity over the mobile network (you are using wifi f.e.) or it is read from cache since it's not outdated. A green antenna means you got fresh data over the mobile network. The green bullet means you used less than 75% of your data plan, it turns orange between 75% and less than 90% and red if you have used 90% or more.
You can change the text after the volume left in the configuration section (see below) of the code.
c19de:
This item shows yesterday's new covid-19 cases from the Robert-Koch Institute.
You can change the text after the new cases in the configuration section (see above) of the code.
c19rki:
This item shows yesterday's incidence value and new covid-19 cases from the Robert-Koch Institute.
You are able to set the limits for the color bullets, the number of letters for the area name, your own area name and geodata for a fixed place in the configurations section (see below) of the code.
Version 0.87 (02/17/2022)
- Changed the RKI COVID-19 API call since thr RKI changed the API.
Version 0.86 (11/14/2021)
- Removed not working vodafone support.
- Removed the Covid-19 values state websites since they changed and were not working anymore.
Version 0.85 (12/22/2020)
- I changed caching of the T-Mobile informations to the functions of the base script. This should not have any effect on your use, besides you are able to set after what time a refresh should be done.
- I introduced caching to the RKI and state Covid-19 data, so its not read from an extern source that often. You are able to set the refresh time in minutes for each item.
- I added support for the Vodafone Germany data plan. This is very experimental since I don't own a Vodafone Dataplan on my own and I have no idea if this works. Feel free to test it and give me feedback.
Version 0.84 (12/15/2020)
- Removed trailing comma in the layout, since they are raising errors in Max new version.
Version 0.83 (12/01/2020)
- I added Berlin to the c19state item.
Version 0.82 (11/29/2020)
- I added more states to the c19state item. (Hamburg, Hessen, Bayern, Schleswig-Holstein, Rheinland-Pfalz)
- There was an issue with the dark red bullets, that were never used if the incidence value was over 100.
Version 0.81 (11/29/2020)
- There was an issue (Error on using c19Settings) if you use own geodata. This is fixed now.
Version 0.80 (11/29/2020)
- Very first test version using the new custom area of Max's script.
Here is the configuration I used for the medium widget:
Configuration inside the code is already done, if you use the above code.
But you have to change the configuration of the script by starting it from the scriptable app and then chose "Edit preferences". To get the above result I used the following configuration.
Discontinued on this gist page.
Look at: https://github.com/icsAT/Weather-Cal
This is a Scriptable widget is a fork of the weather-cal.js from Max Zeryck (https://github.com/mzeryck/Weather-Cal). Everything about the Script is explained on his GitHub project.
What I did is to add functionality for a small group of people in the custom item section of his script. In that way I added the left data volume of your T-Mobile data plan, some Robert-Koch Institut data about Covid-19 (new Cases in Germany, the incidence value of the local or a fixed state area and the new cases in that area).
The Data form Robert-Koch Institute is used under the license of
Robert Koch-Institut (RKI), dl-de/by-2-0
I want to say thank you to: