1942838169 | ||
---|---|---|
app | ||
pub | ||
README.md | ||
package.json | ||
server.js |
README.md
PTZOptics Node Server
The PTZOptics Node Server is a simple skeleton Express server to control your PTZOptics camera via visca commands.
Prerequisites
You need to have at least Node.js version: 8.12.0, MongoDB version: 4.0.3, and a PTZOptics camera.
Installing
- Configure your PTZOptics camera to your local network. PTZOptics Knowledge Base
- Clone this repo and then extract to your preferred location
- Update the mongoDB connection information inside
/app/config.json
.
{
connectionString: "mongodb://your-mongo-address/db-name",
secret: "your db-secret"
}
-
Start the server
cd /The/path/to/the/repo
npm start
-
Head to
http://localhost:4000
-
Click 'Add Camera' and enter your camera's information.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D