Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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` only

Note: `{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: