Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Sunrise/Sunset displayed incorrectly #15
correct sunrise/sunset data
Here's a call to OWM api and the data returned (which looks OK to me):
ESPaper Weather Station version
Downloaded the "master" zip from the ThingPulse guide
ThingPulse ESPaper Weather Station kit
Not sure I fully understand. Sunrise/sunset returned from OWM are 08/12/2018 1:01pm UTC and 08/13/2018 3:26am UTC respectively. With Seattle being in UTC-7 this would mean 6am and 8:26pm local time respectively, right?
Side note: did you not switch to 12h-style on purpose?
I'm uploading an image which should clarify the issue for you. BTW, it also shows the moon phase icon bug reported elsewhere. And it shows an intermittent issue with the display of the current temperature.
Edit: I just noticed it also shows yet another bug -- the timestamps on the daily temperature graph are wrong.
bool IS_STYLE_12HR = false;
Thanks for your feedback. We'll be looking into this.
This might be related to or caused by ThingPulse/esp8266-weather-station#131
I don't understand, can you please explain? Maybe just a misunderstanding what the graph displays (temperature profile over 2+ days -> 3x
This seems unrelated to anything discussed above. Please report and properly document that in a separate issue, thanks.
Gotcha. In that case, displaying the same time of day at each point on the X-axis isn't very useful. Perhaps the date would be better?
Sounds reasonable, yes. When several users ask the same questions (you weren't the first to get confused) we take it as a sign that the UI isn't self-explanatory.
Of course, we do accept pull requests for https://github.com/ThingPulse/espaper-weatherstation/blob/master/espaper-weatherstation.ino#L383
@profra never mind, we found the culprit.
Our code sets the server HTTP content-length header to -1 which the Arduino implementation interprets as a signal to do chunked encoding. A zero length chunk is required to terminate the chuck session to tell the browser we're done sending. With the content-length unset it would otherwise have zero clue when to stop reading.
So, at https://github.com/ThingPulse/espaper-weatherstation/blob/master/configportal.h#L197 we'll need another
We'll fix that in the next few hours.
The intermittent issues with sunrise/sunset and current temperature is fixed with ESP8266 Weather Station lib 1.6.2: https://github.com/ThingPulse/esp8266-weather-station/releases/tag/v1.6.2
It should become available in the Arduino library manager in the next few hours.
The config portal was fixed with 3529d3a yesterday.
As for the time/date on the temperature graph, we'll have to discuss this. Simply replacing time with date wouldn't make the display more legible. As we use a rolling window of some 50+ hours you need some form of a time indicator. The ticks on the x-axis are not always at midnight.