Skip to main content

No project description provided

Project description

WDNAS-Client

About

This module allows users to connect to their local WD NAS and view system info (Storage capacity, Disk temp, volumes etc..) Its heavily a WIP and is my first public python module

My end goal with this is to link into Home Assistant so I can monitor my WD NAS

Code

First create the client with the username, password and the host (Be that hostname or IP address)

Admin account is requred!

Now call the functions to obtain wanted data - Thats it!

import asyncio
from wdnas_client import client

async def main():
    username = input("Username: ").lower()
    password = input("Password: ")
    host = '192.168.86.41'
    
    async with client(username, password, host) as wdNAS:
        print("System Info:", await wdNAS.system_info())
        print("Share Names:", await wdNAS.share_names())
        print("System Status:", await wdNAS.system_status())
        print("Network Info:", await wdNAS.network_info())
        print("Device Info:", await wdNAS.device_info())
        print("System Version:", await wdNAS.system_version())
        print("Latest Version:", await wdNAS.latest_version())
        print("Accounts:", await wdNAS.accounts())
        print("Alerts:", await wdNAS.alerts())

if __name__ == "__main__":
    asyncio.run(main())

Important Info

I have only tested this on my WD NAS which is a wdmycloud mirror running version 2.13.108

Its an old one and so I cannot say if this system works for any newer WD NAS drives

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wdnas_client-0.8.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wdnas_client-0.8.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file wdnas_client-0.8.2.tar.gz.

File metadata

  • Download URL: wdnas_client-0.8.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wdnas_client-0.8.2.tar.gz
Algorithm Hash digest
SHA256 2ce81fd89d4a54f5074841810ec9b04721c9970b2481d9c430f670e21969aef9
MD5 a8822a8e793182d9f7531268b9f0b1cb
BLAKE2b-256 845c66ffa1c7916bc541d8cba2cac3906fa6ac419cac5f85f045b1efcb438c88

See more details on using hashes here.

File details

Details for the file wdnas_client-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: wdnas_client-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wdnas_client-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42688c46fa7b287b7d86cf6a5774746683670d9b9052bc617afc5cdf3e9752f2
MD5 abd5820b30066bcd00885913624a996f
BLAKE2b-256 eebf31bca87abd9dcf4d1e5155230b5ca7cd5a4cfba83f3d2c182301856d3fb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page