Skip to content

Instantly share code, notes, and snippets.

tomacco81 / dm-condoms.js
Last active Oct 28, 2020 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of condoms which are available at your next dm drugstore
View dm-condoms.js
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()
You can’t perform that action at this time.