<filename>example.py<gh_stars>1-10
from TDW8970 import router
import time

router = router.Router(username="admin", password="<PASSWORD>")

while True:
    stats = router.get(timeout=60)
    if stats.status_code != 200:
        print("Are you sure your host & password are correct?")
    else:
        print(stats.downstreamCurrRate, "/", stats.downstreamMaxRate)
        print(stats.upstreamCurrRate, "/", stats.upstreamMaxRate)
        print(stats.downstreamNoiseMargin, "/", stats.upstreamNoiseMargin)
        print(stats.downstreamAttenuation, "/", stats.upstreamAttenuation)
        print(stats.downstreamPower, "/", stats.upstreamPower)

    print("\n\n")
    time.sleep(30)
<filename>example.py<gh_stars>1-10
from TDW8970 import router
import time

router = router.Router(username="admin", password="<PASSWORD>")

while True:
    stats = router.get(timeout=60)
    if stats.status_code != 200:
        print("Are you sure your host & password are correct?")
    else:
        print(stats.downstreamCurrRate, "/", stats.downstreamMaxRate)
        print(stats.upstreamCurrRate, "/", stats.upstreamMaxRate)
        print(stats.downstreamNoiseMargin, "/", stats.upstreamNoiseMargin)
        print(stats.downstreamAttenuation, "/", stats.upstreamAttenuation)
        print(stats.downstreamPower, "/", stats.upstreamPower)

    print("\n\n")
    time.sleep(30)