https://github.com/varunkumar/parentsalarm-alert
Enable notifications from ParentsAlarm app
https://github.com/varunkumar/parentsalarm-alert
Last synced: 8 months ago
JSON representation
Enable notifications from ParentsAlarm app
- Host: GitHub
- URL: https://github.com/varunkumar/parentsalarm-alert
- Owner: varunkumar
- Created: 2021-06-03T05:30:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T15:37:58.000Z (over 1 year ago)
- Last Synced: 2025-01-13T16:39:14.468Z (over 1 year ago)
- Language: JavaScript
- Size: 276 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parentsalarm-alert
Enables notifications from ParentsAlarm app. The project uses puppeteer to open the app, extract contents and send notifications. Slack has been integrated for now.


## Configuration
Create a file `.env` locally under the projct root. It should contain the following lines:
```
ACCOUNTS=AX,AY
SLACK_OAUTH_TOKEN=****
LOGS_CHANNEL=****
BOT_NAME=****
EVENT_NAME="dev_run"
CHANNEL="#default_channel"
AX_USER_NAME=******
AX_PASSWORD=****
AX_PERSISTENT_VALUE_ACCESS_TOKEN=****
AX_CHANNEL=****
AX_DM_CHANNEL=****
AY_USER_NAME=******
AY_PASSWORD=****
AY_PERSISTENT_VALUE_ACCESS_TOKEN=****
AY_CHANNEL=****
AY_DM_CHANNEL=****
```
## Slack app configuration
- Create a new slack app
- Add the scope `chat:write:bot`
- Generate OAUTH token
- Create channels as needed
- Update `SLACK_OAUTH_TOKEN`, `CHANNEL`, `LOGS_CHANNEL` and `BOT_NAME` in `.env`
## Persistent-aaim configuration
This project uses persistent-aaim to store the previous run status. Generate an access token by visiting the below link:
https://persistent.aaim.io/api/values/new_access_token?output=plain
Update `PERSISTENT_VALUE_ACCESS_TOKEN` in `.env`
## Build & run locally
```bash
npm install
npm start
```