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

USAGE_MAP indexation does not match for get_usage_data() #3

Open
Tekill91 opened this issue Dec 29, 2017 · 1 comment
Open

USAGE_MAP indexation does not match for get_usage_data() #3

Tekill91 opened this issue Dec 29, 2017 · 1 comment

Comments

@Tekill91
Copy link

Tekill91 commented Dec 29, 2017

In client.py,

USAGE_MAP = {"before_offpeak_download": 0,
             "before_offpeak_upload": 1,
             "before_offpeak_total": 2,
             "offpeak_download": 3,
             "offpeak_upload": 4,
             "offpeak_total": 5,
             "download": 6,
             "upload": 7,
             "total": 8}

I need to retrieve the total (down + up), but really the total is in fact "before_offpeak_total". I think it comes from line 141 which parse all "span", {"class": "switchDisplay" and the total is the span switcgDisplay index 2 and not 8.

Or if it is intended, maybe clarify that total is yesterday total.

By the way, I am using pyebox through homeassistant. And I don't have offpeak option activated.

Thanks, keep up the awesome work

@Tekill91
Copy link
Author

Tekill91 commented Dec 29, 2017

looks like it is what's already in your TODO list, as I just saw in the wiki.

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