Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting correct data from get_traffic_meter() #86

Open
GeraldPape opened this issue Nov 4, 2020 · 0 comments
Open

Not getting correct data from get_traffic_meter() #86

GeraldPape opened this issue Nov 4, 2020 · 0 comments

Comments

@GeraldPape
Copy link

GeraldPape commented Nov 4, 2020

traffic meter is enabled and shows:
image

I see that upload avg in the picture uses a . for the decimals, where the other values ues a ,
(can there be some error in the conversion?)

but the output I get is missing a lot of detail:
{
'NewTodayConnectionTime': datetime.timedelta(seconds = 56100),
'NewTodayUpload': 603.62,
'NewTodayDownload': None,
'NewYesterdayConnectionTime': datetime.timedelta(days = 1),
'NewYesterdayUpload': None,
'NewYesterdayDownload': None,
'NewWeekConnectionTime': datetime.timedelta(days = 3, seconds = 56100),
'NewWeekUpload': None,
'NewWeekDownload': None,
'NewMonthConnectionTime': datetime.timedelta(days = 3, seconds = 56100),
'NewMonthUpload': None,
'NewMonthDownload': None,
'NewLastMonthConnectionTime': datetime.timedelta(days = 30, seconds = 85260),
'NewLastMonthUpload': None,
'NewLastMonthDownload': None
}

using this code
from pynetgear import Netgear
import numpy as np

netgear = Netgear(password="", host="", user="*", ssl=False,port=80)

x=netgear.get_traffic_meter()
print(x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant