This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let country = "de"; // replace with 'at' for shops in Austria | |
| let storeId = 251; | |
| let param = args.widgetParameter; | |
| if (param != null && param.length > 0) { | |
| if (param.indexOf(";") > 0) { | |
| const paramSplit = param.split(";"); | |
| storeId = paramSplit[0]; | |
| country = paramSplit[1].toLowerCase(); | |
| } else { | |
| storeId = param; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Version 1.3.0 | |
| // 27.11.2021 | |
| // | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: notes-medical; | |
| // Mit Caching und Fallback | |
| const cacheMinutes = 60; // 60 min | |
| const today = new Date(); | |
| const neededTotalVaccinations = 83200000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { | |
| .blurred-container { | |
| -webkit-backdrop-filter: blur(10px); | |
| backdrop-filter: blur(10px); | |
| } | |
| } | |
| /* slightly transparent fallback for Firefox (not supporting backdrop-filter) */ | |
| @supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) { | |
| .blurred-container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Script for scriptable to get the current capacity of FitX Gyms | |
| */ | |
| let gymId = 19 | |
| let param = args.widgetParameter | |
| if (param != null && param.length > 0) { | |
| gymId = param | |
| } | |
| const gymDetails = await fetchGymDetails(gymId) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Can be obtained here https://fitx-proxy.daniel-stefan.dev/ | |
| let studioId = 1266927; | |
| // Proxy for the utilization api | |
| let proxyUrl = "https://fitx-proxy.daniel-stefan.dev/api/utilization/" | |
| let param = args.widgetParameter; | |
| if (param != null && param.length > 0) { | |
| studioId = param; | |
| } | |
| const contextSize = 282; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
| const newCasesApiUrl = `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_COVID19/FeatureServer/0/query?f=json&where=NeuerFall%20IN(1%2C%20-1)&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&outStatistics=%5B%7B%22statisticType%22%3A%22sum%22%2C%22onStatisticField%22%3A%22AnzahlFall%22%2C%22outStatisticFieldName%22%3A%22value%22%7D%5D&resultType=standard&cacheHint=true`; | |
| const incidenceUrl = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,last_update,cases,cases7_per_100k&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json` | |
| const saveIncidenceLatLon = (location) => { | |
| let fm = FileManager.iCloud() | |
| let path = fm.joinPath(fm.documentsDirectory(), "covid19latlon.json") | |
| fm.writeStrin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const apiUrl = "https://pass.telekom.de/api/service/generic/v1/status" | |
| let widget = await createWidget() | |
| widget.backgroundColor = new Color("#777777") | |
| if (!config.runsInWidget) { | |
| await widget.presentSmall() | |
| } | |
| Script.setWidget(widget) | |
| Script.complete() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: briefcase-medical; | |
| // Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
| // Alte version siehe: https://gist.github.com/rphl/0491c5f9cb345bf831248732374c4ef5/revisions | |
| WIDGET WURDE IN EIN REPO VERSCHOBEN, SIEHE: | |
| https://github.com/rphl/corona-widget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: yellow; icon-glyph: cloud; | |
| // Widget Params | |
| // Don't edit this, those are default values for debugging (location for Cupertino). | |
| // You need to give your locations parameters through the widget params, more info below. | |
| const widgetParams = JSON.parse((args.widgetParameter != null) ? args.widgetParameter : '{ "LAT" : "46.062" , "LON" : "13.242" , "LOC_NAME" : "Udine" }') | |
| // WEATHER API PARAMETERS !important |
NewerOlder