Skip to content

Instantly share code, notes, and snippets.

View andreasRedeker's full-sized avatar
🥨

Andreas Redeker andreasRedeker

🥨
View GitHub Profile
@andreasRedeker
andreasRedeker / parqet-dividends-widget.js
Last active February 29, 2024 20:28
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 <hello@andreasredeker.de>
let portfolioId;
const apiUrl = (portfolioId) => `https://api.parqet.com/v1/portfolios/${portfolioId}?timeframe=max&useInclude=true&include=xirr&include=dividend_growth&include=future_dividends`;
const IMAGE_SIZE = 32;
const CORNER_RADIUS = 16;
const LIST_SPACING = 8;
@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 <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
Last active March 5, 2024 19:17
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 <hello@andreasredeker.de>
let portfolioId;
const TIMEFRAME = {
'max': "seit Kauf",
'ytd': "seit Jahresbeginn",
'mtd': "seit Monatsbeginn",
@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 <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
// 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