Skip to content

Instantly share code, notes, and snippets.

View corrafig's full-sized avatar

Tero Mononen corrafig

View GitHub Profile
@corrafig
corrafig / http-client._org
Last active December 28, 2020 19:47
Example of using org mode as HTTP client. Requires ob-http.
* Configuration
#+name: current_env
: staging
#+name: get-env
#+begin_src python :var key="host" :var env=current_env :results silent
return {
"staging": {"host": "httpbin.org", "key": "staging-api-key"},
"prod": {"host": "httpbin.org", "key": "production-api-key"},
}[env][key]
@corrafig
corrafig / Readme.md
Last active October 25, 2020 12:57 — forked from ciotlosm/Readme.md
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.