Skip to content

GrandstreamEngineering/grandstream_home_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grandstream Home API

Python API library for Grandstream GDS372X/GSC356X (Door Access Devices) and GNS5004X (NAS) devices.

Installation

pip install grandstream-home-api

Usage

GDS Door Access Devices

from grandstream_home_api import GDSPhoneAPI

api = GDSPhoneAPI(
    host="192.168.1.100",
    username="admin",
    password="password",
    port=8443,
)

if api.login():
    # Get device status
    status = api.get_phone_status()

    # Unlock door
    api.unlock_door(door_id=1)

    # Get RTSP stream URL
    rtsp_url = api.get_rtsp_url()

GNS NAS

from grandstream_home_api import GNSNasAPI

api = GNSNasAPI(
    host="192.168.1.100",
    username="admin",
    password="password",
    port=5000,
)

if api.login():
    # Get system info
    info = api.get_system_info()

    # Reboot device
    api.reboot()

Supported Devices

  • GDS372X/GSC356X Series
  • GNS5004X Series

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages