https://github.com/mrblueblue/node-spark
controlling Spark devices with node.js
https://github.com/mrblueblue/node-spark
Last synced: 3 months ago
JSON representation
controlling Spark devices with node.js
- Host: GitHub
- URL: https://github.com/mrblueblue/node-spark
- Owner: mrblueblue
- Created: 2015-03-15T17:05:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T03:55:59.000Z (over 10 years ago)
- Last Synced: 2025-02-06T01:44:39.909Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 930 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A command handler for Spark devices.
Handles commands through a GUI and simple REST calls.
[Example GUI](http://198.11.210.130:3000/)
######Basic Info
There are two main js files.The spark.js file sets up an Express server that serves a static UI page. It also handles POST requests from a user. If the requested command is a valid function exposed by the Spark device, then it will tell the Spark device to execute the command.
The turn.js file is a request-handler module for the server. It translates the intent of the user into a POST request to the Spark device.
Note: one can certainly make direct POST requests to the Spark device using curl.
######TODOS
- armor app for security
- GUI buildout
- modularize functions