peted-davis / WeatherFlow_PiConsole

Raspberry Pi Python console for WeatherFlow Tempest and Smart Home Weather Stations
GNU General Public License v3.0
159 stars 22 forks source link

Last strike in minutes 1 digit instead of 2. #35

Closed pjmpessers closed 3 years ago

pjmpessers commented 3 years ago

Hello.

I love the wfpiconsole. I use it every day. It was for the first time i got a strike yesterday. It is shown on the wfpiconsole what is great. But when last strike is shown the minute under ten is shown with one digit instead of two. For example i get: "last strike 16:2 instead of 16:02. Can this be corrected? 10 or above is shown correct. Like:"16:15.

Thanks again.

peted-davis commented 3 years ago

Sure - I will have a look at this. It sounds like a small glitch. Are you using the Official 7 inch Raspberry Pi touchscreen, or something different?

If possible, can you share a photo or screenshot showing the issue?

pjmpessers commented 3 years ago

In the bedroom i have the original rpi 7 inch display. In the livingroom i hooked up a hdmi display. Both have the same glitch.

pjmpessers commented 3 years ago

20210313_110757 20210313_110639

pjmpessers commented 3 years ago

20210313_111227

peted-davis commented 3 years ago

Thanks for sharing the pictures. This is actually expected behaviour. If the hours or mins (or days) is less than 10, then they are not displayed with a leading zero. This is what it looks like on my display at the moment:

Capture

I understand why your display looks odd though, because on your display the hours and minutes are separated by a colon, which makes it look like a time. Are you running the latest version of the code (v4.0.4) as I actually removed the colon a number of versions back. The changes are made in the wfpiconsole.kv file. You may be overwriting this with the custom changes you are making to the display text sizes.

pjmpessers commented 3 years ago

You are right. I made a adjustment. I am running v4.0.4. I didn't know that it would also change in days. I now understand your intention with this. In that case, thanks. There is no need for adjustment and we can close this comment.

Thanks again.