https://github.com/konn/stock-alarm
https://github.com/konn/stock-alarm
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/konn/stock-alarm
- Owner: konn
- Created: 2024-08-10T08:03:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-10T08:11:08.000Z (9 months ago)
- Last Synced: 2025-03-15T19:38:20.135Z (2 months ago)
- Language: TypeScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 非常食通知 (Food-stock alert) GAS
## Features
Notifies the status of your emergency food stock, maintained on Google Spreadsheet.
The message is in Japanese, but you can modify it as you like.
It sends a mail if at least one of the following criteria is met:1. There is any stock with its good-thru date expired,
2. There is any stock which expires the good-thru date within THREE months, or
3. The total stock cannot afford a week or three days.## Usage
1. Install clasp locally
2. Create a GAS for a spreadsheet, with the first row as the header, the first column a due date, the second a number of foods, and the third a name.
3. Copy `.clasp.example.json` as `.clas.json` and set `scriptId` attribute accordingly.
4. Configure `EMAIL` script property to the address to send an email.
5. Set the trigger event appropriately.
6. `clamp push`
7. :+1: