Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zwrawr/ldstatus
Links uptimerobot to gitter, for easy status monitering
https://github.com/zwrawr/ldstatus
bot gitter gitter-api google-cloud-functions twitter uptimerobot uptimerobot-api
Last synced: about 2 months ago
JSON representation
Links uptimerobot to gitter, for easy status monitering
- Host: GitHub
- URL: https://github.com/zwrawr/ldstatus
- Owner: zwrawr
- Created: 2017-05-28T22:25:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T18:22:01.000Z (about 7 years ago)
- Last Synced: 2024-02-20T21:52:20.959Z (10 months ago)
- Topics: bot, gitter, gitter-api, google-cloud-functions, twitter, uptimerobot, uptimerobot-api
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LDstatus
## Gitter
[![Gitter](https://badges.gitter.im/LDstatus/Lobby.svg)](https://gitter.im/LDstatus/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Seen as this integrates with Gitter it makes sense that it has it's own Gitter chat.
I've been using it as a place to test the behaviour of this project, whilst it's being developed.
But your welcome to come and chat!## Config
### config.json
You need to create a config.json file in the root directory, this is where you will place your api tokens/keys.I.E. config.json should be
```json
{
"UPTIMEROBOT_TOKEN" : "","GITTER_PAT_TOKEN" : "",
}
```Up time robot does not provide you with a token, so I suggest using [](www.random.org) too generate your own.
I generated a 16byte token via this [link](https://www.random.org/cgi-bin/randbyte?nbytes=32&format=h).### uptime robot
#### Alert contact
To create a web hook from the uptime robot dashboard you need to go to the settings page, and add an alert contact.
An alert contact of type `webhook` is needed.The url to notify needs to be to url to wherever your hosting your handler with a `?` on the end.
I'm using Google Cloud Functions, But Amazon AWS Lambda or another "Serverless" provider should work with a little tweaking.The POST data should be
```json
{
"provider":"uptimerobot",
"token":"",
"room":"",
"statuspageurl":"status.test.zakwest.tech"
}
```statspageurl is an optional param.
#### Enabling the webhook for a monitorURL
To enable the web hook for a specific monitor, go it it's edit page and tick the box next to the name of your web hook.
## Deployment
This will vary depending on whether your using Functions or Lambda.I am using `>gcloud beta functions deploy webhook --stage-bucket --trigger-http` for Google Cloud Functions.