This file contains 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
// icon-color: green; icon-glyph: battery-half; | |
/** | |
* This widget has been developed by Niklas Vieth. | |
* Installation and configuration details can be found at https://github.com/niklasvieth/polestar-ios-small-widget | |
*/ | |
// Mandatory Config | |
const POLESTAR_EMAIL = "EMAIL"; | |
const POLESTAR_PASSWORD = "PASSWORD"; |
This file contains 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
// icon-color: green; icon-glyph: battery-half; | |
/** | |
* This widget has been developed by Niklas Vieth. | |
* Installation and configuration details can be found at https://github.com/niklasvieth/polestar-ios-medium-widget | |
*/ | |
// Mandatory Config | |
const POLESTAR_EMAIL = "EMAIL"; | |
const POLESTAR_PASSWORD = "PASSWORD"; |
This file contains 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
// icon-color: green; icon-glyph: battery-half; | |
/** | |
* This widget has been developed by Niklas Vieth. | |
* Installation and configuration details can be found at https://github.com/niklasvieth/polestar-ios-lockscreen-widget | |
*/ | |
// Config | |
const POLESTAR_EMAIL = "EMAIL_ADDRESS"; | |
const POLESTAR_PASSWORD = "PASSWORD"; |
This file contains 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
async function drawArc( | |
on, | |
percent = 50, | |
percent2 = -1 | |
) { | |
const canvSize = 200; | |
const canvas = new DrawContext(); | |
canvas.opaque = false; | |
const canvWidth = 18; // circle thickness | |
const canvRadius = 80; // circle radius |