Skip to content

evercam/hikvision_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hikvision Client

HTTP client that talks to Hikvision Camera/NVR using ISAPI.

Installation

The package can be installed by adding hikvision_client to your list of dependencies in mix.exs:

def deps do
  [
    {:hikvision_client, "~> 0.1.0"}
  ]
end

Usage

Create an operation

operation = Hikvision.System.status()

And then send the request

config = [scheme: "http", host: "localhost", port: 8200, username: "user", password: "password"]
{:ok, resp} = Hikvision.request(op, config)

A response example will be

%{
  cpus: [
    %{
      description: "2616.00", 
      usage: 0
    }
  ],
  current_device_time: "2023-01-30T15:47:54-05:00",
  device_uptime: 56145,
  file_handles: nil,
  memory: [
    %{
      available: 62.160156, 
      description: "DDR Memory", 
      usage: 179.46875
    }
  ],
  status: ""
 }

About

An HTTP client for Hikvision ISAPI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages