Skip to content

Instantly share code, notes, and snippets.

View andreasRedeker's full-sized avatar
🥨

Andreas Redeker andreasRedeker

🥨
View GitHub Profile
@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
// 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 <[email protected]>
let param = args.widgetParameter
let url
if (param != null && param.length > 0) {
url = param
@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)
// 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 <[email protected]>
// 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 / parqet-widget.js
Last active July 27, 2024 19:41
Parqet iOS Scriptable Widget
// 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 <[email protected]>
let portfolioId;
const TIMEFRAME = {
'max': "seit Kauf",
'ytd': "seit Jahresbeginn",
'mtd': "seit Monatsbeginn",
@andreasRedeker
andreasRedeker / parqet-widget-blur.js
Last active July 11, 2023 20:50
Parqet widget but with background blur
// 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 <[email protected]>
let portfolioId;
const apiUrl = "https://api.parqet.com/v1/portfolios/";
const backgroundColor = new Color("374151");
const titleColor = Color.gray();
@andreasRedeker
andreasRedeker / parqet-dividends-widget.js
Last active July 4, 2024 06:20
Parqet iOS Dividenden Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: chart-bar;
// Script by Andreas Redeker <[email protected]>
let portfolioId;
const apiUrl = (portfolioId) => `https://api.parqet.com/v1/portfolios/${portfolioId}?timeframe=max&useInclude=true&include=xirr&include=dividend_growth&include=future_dividends`;
// Logos provided by Parqet: https://parqet.com/api
const imageUrl = (symbol) => `https://assets.parqet.com/logos/isin/${symbol}?format=png`;