Home - MCEMS/dispatch GitHub Wiki
Anything that is merged to master
is automatically deployed by Travis CI to https://dispatch.bergems.org/. Use topic branches/pull requests to make sure things that are in progress don't get deployed. When you merge a pull request to master, it will be deployed within a few minutes, and you are safe to delete the branch when prompted.
The API-side client is still under development, so there is a temporary client that contains just the features necessary to send alerts. The build script will place this JavaScript file at /client.js
, so be sure to include that file with a <script>
tag before running JS that needs it.
Currently, the following methods are supported:
-
MCEMS#login(username, password, callback)
Callback is a function that takes a single parameter,error
. The parameter will contain anError
object if login failed for some reason, and will benull
if login was successful. -
MCEMS#sendAlert(alert, callback)
Callback is a function that takes a single parameter,error
. The parameter will contain anError
object if sending the alert failed for some reason, and will benull
if the alert was successfully sent.
See index.html for an example.