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

sensor.get_data() returns shifted daily consumption #173

Open
saroele opened this issue Dec 17, 2016 · 1 comment
Open

sensor.get_data() returns shifted daily consumption #173

saroele opened this issue Dec 17, 2016 · 1 comment

Comments

@saroele
Copy link
Member

saroele commented Dec 17, 2016

As the method does not convert the index to local time, it gets days in UTC. Therefore, the values are shifted by 1 or 2 hours for Brussels.

@JrtPec
Copy link
Member

JrtPec commented Dec 21, 2016

  • Add a field called timezone for every site in the Houseprint sheet, set it to Europe/Brussels
  • Add a timezone attribute to the site class
  • Adapt the houseprint parser so it will add the timezone to the site.
  • Add something like if self.site.timezone is not None: data = data.tz_convert(self.site.timezone) to sensor.get_data(), right after the call to tmpo.

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

2 participants