With a bit of help from folks on here, I have created a set of 4 shortcuts for managing a freezer inventory (or whatever you want). I like this better than using reminders because:
- it records amounts
- it automatically adds the item to my groceries list if it gets low
- it only manages the items I want (so I don’t get weird typos when Siri misunderstands me)
- Add item to freezer inventory (this shortcut will also create the json file in the Shortcuts iCloud folder that’s necessary for this to work): https://www.icloud.com/shortcuts/78045415b4414ff997a2fb6626dc91fb
- Show freezer inventory (this shortcut displays inventory in table view. Requires Scriptable and script pasted below): https://www.icloud.com/shortcuts/a6e03126073541d493b912a16b4d93d3
- Remove from freezer (asks you which item you’re taking out of the freezer, then reduces the inventory amount by 1. If they amount is less than 2, asks if you’d like to add it to the groceries list. Otherwise, Siri tells you how many are left): https://www.icloud.com/shortcuts/e13d2ff0db8f4c0b8e71002fa95bab98
4: Add to freezer (asks you which item you’re restocking and how many you’re adding): https://www.icloud.com/shortcuts/712517e8f31c4d4baf6bc03e2f7cf946
const rawJSON = args.shortcutParameter;
const items = rawJSON;
let table = new UITable();
let header = new UITableRow();
header.isheader = true
header.addText("Item");
header.addText("Amount");
table.addRow(header);
for (let element in items) {
let row = new UITableRow();
let name = element;
let nameCell = row.addText(name);
nameCell.widthWeight = 50;
let amount = items[element];
let numberCell = row.addText(amount);
numberCell.widthWeight = 50;
row.height = 30;
row.cellSpacing = 10;
table.addRow(row);
};
QuickLook.present(table);