Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alyyousuf7/lunch-lambda
Lambda service to notify me about daily lunch at office
https://github.com/alyyousuf7/lunch-lambda
golang lambda
Last synced: about 4 hours ago
JSON representation
Lambda service to notify me about daily lunch at office
- Host: GitHub
- URL: https://github.com/alyyousuf7/lunch-lambda
- Owner: alyyousuf7
- Created: 2018-11-12T20:32:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T07:41:11.000Z (about 5 years ago)
- Last Synced: 2023-02-28T18:37:05.948Z (over 1 year ago)
- Topics: golang, lambda
- Language: Go
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lunch-lambda
A lambda service to notify me what's in lunch at office daily.Too lazy to open up the portal. :sleeping:
## How to use?
So basically it's deployed on AWS Lambda (but can easily be used as CLI, with
correct environment variables). You can easily build this for Lamda using the
following command:```bash
$ GOOS=linux go build .
```To set it up, you will have to provision your Lambda function with the
following environment variables:Name | Description | Note
-|-|-
`COGS_USERNAME` | Your username for 10Pearls COGS (the portal)
`COGS_PASSWORD` | Your password for the same ^ | You can use `base64` encoded string as well. Just a small effort to keep it hidden from naked eyes
`CLIENT_NUM` | Number of clients where you need push notification
`CLIENT_{x}` | Name of the push notification service (currently supported: `pushbullet` only)
`CLIENT_{x}_TOKEN` | Access Token for push notification service | Valid if `CLIENT_{x}` is `pushbullet` only
`CLIENT_{x}_CHANNEL` (optional) | Channel Tag to push notifications to all subscribers. If not provided, `pushbullet` will notify all your devices | Valid if `CLIENT_{x}` is `pushbullet` onlyNote: `{x}` must start from `1` till `CLIENT_NUM`.
PS: I know array starts from zero. :sweat_smile:
## Why did I make this?
I was getting bored. :neutral_face: