Skip to content

Instantly share code, notes, and snippets.

View giuliomagnifico's full-sized avatar

giuliomagnifico

  • Italy
View GitHub Profile
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: book; share-sheet-inputs: plain-text;
// Stock Ticker Widget
let stocksInfo = await getStockData()
let widget = await createWidget()
if (config.runsInWidget) {
// The script runs inside a widget, so we pass our instance of ListWidget to be shown inside the widget on the Home Screen.
Script.setWidget(widget)
} else {
@giuliomagnifico
giuliomagnifico / padd.sh
Last active July 12, 2021 05:45
Custom padd.sh v3.6.1 for Pimoroni HyperPixel 4" display
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
@giuliomagnifico
giuliomagnifico / padd.sh
Created January 1, 2021 08:16
padd.sh v3.5.1
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
@giuliomagnifico
giuliomagnifico / padd.sh v3.6.2
Created August 28, 2021 06:26
PADD v3.6.2 for Pimoroni HyperPixel 4" Display
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
// 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
// API KEY, you need an Open Weather API Key
// You can get one for free at: https://home.openweathermap.org/api_keys (account needed).
const API_KEY = ""
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
@giuliomagnifico
giuliomagnifico / padd.sh
Created January 7, 2022 06:43
PADD v3.6.3 for Pimoroni HyperPixel 4" Display
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
@giuliomagnifico
giuliomagnifico / padd.sh
Last active May 28, 2022 06:33
PADD for Pi-Hole 3.7.1 custom for 800x480px screen. More info: https://giuliomagnifico.blog/networking/2022/05/24/PADD-3.7.0-custom-hyperpixel.html
#!/bin/sh
#!/usr/bin/env bash
# shellcheck disable=SC1091
# PADD
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
# Issue 5: https://github.com/jpmck/PADD/issues/5
# Updated to en_US to support
@giuliomagnifico
giuliomagnifico / padd.sh
Created August 5, 2022 06:37
padd.sh v3.8.0
#!/usr/bin/env sh
# shellcheck disable=SC1091
# PADD
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
# Issue 5: https://github.com/jpmck/PADD/issues/5
# Updated to en_US to support
# export LC_ALL=en_US.UTF-8 > /dev/null 2>&1 || export LC_ALL=en_GB.UTF-8 > /dev/null 2>&1 || export LC_ALL=C.UTF-8 > /dev/null 2>&1
@giuliomagnifico
giuliomagnifico / padd.sh
Created October 15, 2022 06:01
padd.sh v3.8.1 for 800x480px display:
#!/usr/bin/env sh
# shellcheck disable=SC1091
# PADD
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
# Issue 5: https://github.com/jpmck/PADD/issues/5
# Updated to en_US to support
# export LC_ALL=en_US.UTF-8 > /dev/null 2>&1 || export LC_ALL=en_GB.UTF-8 > /dev/null 2>&1 || export LC_ALL=C.UTF-8 > /dev/null 2>&1