Skip to content

Instantly share code, notes, and snippets.

View andreasRedeker's full-sized avatar
🥨

Andreas Redeker andreasRedeker

🥨
View GitHub Profile
@andreasRedeker
andreasRedeker / parqet-widget-blur.js
Last active July 11, 2023 20:50
Parqet widget but with background blur
View parqet-widget-blur.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: chart-line;
// Script by Andreas Redeker <hello@andreasredeker.de>
let portfolioId;
const apiUrl = "https://api.parqet.com/v1/portfolios/";
const backgroundColor = new Color("374151");
const titleColor = Color.gray();
@andreasRedeker
andreasRedeker / parqet-widget.js
Created May 18, 2022 20:03
Parqet iOS Scriptable Widget
View parqet-widget.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: chart-line;
// Script by Andreas Redeker <hello@andreasredeker.de>
let portfolioId;
const apiUrl = "https://api.parqet.com/v1/portfolios/";
const backgroundColor = new Color("374151");
const titleColor = Color.gray();
@andreasRedeker
andreasRedeker / benzinpreis-widget.js
Last active July 26, 2023 13:47
A Scriptable widget, that shows you the cheapest gas station near you (for germany only)
View benzinpreis-widget.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: gas-pump;
// share-sheet-inputs: plain-text;
// Script by Andreas Redeker <hello@andreasredeker.de>
// Get your own API key from https://creativecommons.tankerkoenig.de/
const apiKey = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
const radius = 3;
const sort = "price";
@andreasRedeker
andreasRedeker / webcam-widget.js
Created November 12, 2020 20:03
An iPhone widget, that shows you a live webcam image from foto-webcam.eu on your homescreen
View webcam-widget.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: camera-retro;
// Script by Andreas Redeker <hello@andreasredeker.de>
let param = args.widgetParameter
let url
if (param != null && param.length > 0) {
url = param