Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for running nms-map-handlers.js server-side, using nodejs #196

Open
KristianLyng opened this issue Jan 21, 2019 · 0 comments
Open
Assignees

Comments

@KristianLyng
Copy link
Member

Today, all logic is done in the browser, to make alarm-development really fast. This, however, limits the use of the very cool "map-handler" logic that is what makes Gondul really awesome.

To leverage this, let's make an API that runs node.js, imports nms-map-handlers.js and nms-data.js, sets up the same nmsData pollers as is done in js/nms.js:initNMS(), then exposes the map handler functions through an API.

This should allow any client, e.g. a mobile phone, to query of the health status of a single switch. Longer-term is support for multiple switches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants