Synology SRM API
Project description
Synology SRM API
Python 3 library to use the Synology SRM (Synology Router Manager) API. This is NOT the same thing as Synology DSM (DiskStation Manager).
This library should work with the following devices.
- RT1900ac
- RT2600ac
It's not possible to create another account in SRM with admin permissions. You'll need to use your
admin
account (or the one you renamed at creation).
Usage
import synology_srm
client = synology_srm.Client(
host='192.168.1.254',
port=8001,
https=True
username='admin',
password='FZan7xw7eh3z9Zzj',
)
You can now access all namespaces from the API. The following methods are availabe.
- Core
- system_utilization
- Mesh
- network_wanstatus
- network_wifidevice
devices = client.mesh.network_wifidevice()
for device in devices:
print("Found device {} with MAC address {}".format(
device['hostname'],
device['mac']
))
HTTPS auto-signed certificate
You can disable the HTTPS certificate verification if you are using a self-signed certificate.
client.http.disable_https_verify()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
synology-srm-0.0.4.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for synology_srm-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1be9d75e82b4ddbd93f1662a9bc7b134a8b0821807abb2459aef37c010753d |
|
MD5 | 61411d93fb91b4b3a028289fdf6478d2 |
|
BLAKE2b-256 | 67556164f9b79c4ea318ee5f78332c58c763a71ea3181be45e271b3084a790f8 |