Skip to content

Instantly share code, notes, and snippets.

@tomacco81
tomacco81 / dm-condoms.js
Last active October 28, 2020 19:59 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of condoms which are available at your next dm drugstore
let country = 'de' // replace with 'at' for shops in Austria
let storeId = 251
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
const widget = new ListWidget()
const storeInfo = await fetchStoreInformation()
const storeCapacity = await fetchAmountOfCondoms()