npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

camelopard

v0.7.1

Published

IP camera toolbox package for Nodejs

Downloads

16

Readme

Camelopard

Camelopard is an IP camera toolbox for Nodejs.

Currently Camelopard only supports a couple of the most common API objects (like image, ptz, parameters) for controlling an Axis IP camera, but more control commands will be added.

Installation

npm install camelopard

Example

Small demo applications can be found here: https://github.com/fsandx/camelopard-keeper

Below is an example of how to capture and download a snapshot from two different cameras at the same time:

var camelopard  = require('camelopard'),
   _           = require('lodash');

var data = {
 "cameras": [
   {
     "name": "A-Building",
     "brand": "Axis",
     "ip": "192.168.0.150", 
     "username": "root",
     "password": "pass",
     "snapshot": {
       "resolution": "1024x768",
       "compression": 30,
       "rotation": 0,
       "cameraNum": 1,
       "downloadFolder": "files\/snapshots"
     }
   },
   {
     "name": "B-Building",
     "brand": "Axis",
     "ip": "192.168.0.200", 
     "username": "root",
     "password": "pass",
     "snapshot": {
       "resolution": "1024x768",
       "compression": 30,
       "rotation": 0,
       "cameraNum": 1,
       "downloadFolder": "files\/snapshots"
     }
   }
 ]
};

var cams = data.cameras;

_.forEach(cams, function (conf) {
 camelopard.image.download(conf, function (err, res) {
   if (!_.isUndefined(err)) {
     console.log('Error!' + err);
   } else {
     console.log('Image file downloaded as: ' + res);
   }
 });
});

Tests

npm test

Release History

  • 0.7.0 Replacing problematic characters in filename
  • 0.7.0 Improving snapshot filenames: prefix and timestamp
  • 0.6.0 Basic parameters API object added
  • 0.5.0 New JSON data structure
  • 0.4.0 Basic PTZ API object added
  • 0.3.1 Fix for HTTP authentication
  • 0.3.0 Methods for multiple cameras support
  • 0.2.2 License changed to MIT
  • 0.2.1 Fixes for Image object
  • 0.1.3 Changing camera configuration method names, improvements of documentation
  • 0.1.2 Further improvements of structure, more tests
  • 0.1.1 Improving documentation, structure and testability
  • 0.1.0 Initial release