Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 482 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 482 Bytes

Ele Services

Alerting

Make sure to place the sense-ele-firebase-service-account.json file at the root.

Run npm start

Check nodes/gateways

Set the hausra key and graphql endpoint as environment variable

export HASURASECRET=HASURA_KEY

export GQLENDPOINT=GRAPH_QL_ENDPOINT

Saving it in ~/.bash_profile is a better option

Run the checkNodes / checkGateways

node cron/checkNodes.js '10 mins' 1

This should most likely be called every x mins as a cron job.