NodeJS Module: node-dahua-api

Pra3t0r5

n3wb
Joined
Mar 10, 2020
Messages
1
Reaction score
0
Location
Argentina
Hello man, great api you made. Im really looking forward to use it but i simply cannot connect to the darn ASC 1204B-S Dahua controller wich holds the API.
I'm using this command curl to test the API:
curl -G But i always get connection refused, no matter what user, curl parameter nor url i use!
How did you managed to connect?
 
Joined
May 25, 2021
Messages
1
Reaction score
0
Location
United States
Current Status: BETA 1.0, Work In Progress
Software Repository: nayrnet/node-dahua-api
NPM Package:
What:
This is a module for NodeJS to interact with your Dahua IPC/PTZ through JavaScript, if you want to script in advanced logic this will get you started.​

Install:
  • Download and Install NodeJS for your Platform: Node.js
  • Download and install the module: npm install node-dahua-api

Features:
  • Alarm Listener, watch and respond instantly to: Motion/Faults/Inputs
  • Day/Night Switching, switch between Day/Night profiles.
  • PTZ Commands, go to presets, absolute locations, etc.

Need to Implement:
  • Update Sunrise/Sunset times for Geographic location
  • Trigger Recording
  • Trigger Snapshot
  • Suggestions??

This will be the dedicated Support & Discussion thread for this project, contributions are very welcome!

Right now I want to know what functionality you think I should add to this, there is no way I am implementing the entire API.. I started with the functionality I needed the most, but im sure there are other things to be done.

Also need testers to start playing with it, with new cameras and old to make sure it works for all Dahuas.. Ive already found changing day/night profile is dependent on features being avilable.
Installing the module fails for me....maybe its too old for the latest node.js?
 
Top