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.3.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.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wdnas_client-0.8.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1d20a0cddbcc603526282abce24e3063474110d53697f3a334cf3a87d8e8ae99
MD5 e29442379f33d37a882d567fead0e06f
BLAKE2b-256 4cf2169a5afccda3beb5e894c6c5a57f455b46864076121996dfa6b9ed8158fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wdnas_client-0.8.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e152e3b68027699048164dcdd0bd356c7bc3dcd3cd7d6004c80d49d1959fd786
MD5 ef91b6a4daa15ae646c3d8d5200c46ee
BLAKE2b-256 0f1d72616559b05613ebea04a4acb8e57b0b6928b7e3aadf2fa223f14a206f62

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