PiClock
PiClock copied to clipboard
The top line does not display the days of the week with regional settings.
In the PyQtPiClock.py file I added the line
ds = ds.decode('utf-8') ds2 = ds2.decode('utf-8')
The top line worked correctly.
How do I fix the days of the week in the column on the right?
My settings:
Disclaimer: Not in topcondition at the moment, no guarantee what so ever . . . .
Looks like you use ClimaCell
The 3 daily forcasts are formatted in wxfinished_cc2
Near line 909:
day = fl.findChild(QtGui.QLabel, "day")
day.setText("{0:%A %I:%M%p}".format(
dateutil.parser.parse(f['observation_time']['value'])
.astimezone(tzlocal.get_localzone())))
You could try to fiddle a decode in there.
Similar near line 969.
Added "decode ('utf-8')" next to line 909
The right column only displays the top three rows correctly.
The other six days of the week are not displayed.
Well done, really.
You missed my last line:
Similar near line 969.
That is in 'wxfinished_cc3'
Made changes on line 976 section 'wxfinished_cc3'
All days of the week work
How do I ask Kevin to make these fixes to the main code of the program?
The procedure would be to edit Clock/PyQtPiClock.py There is a pencil icon near the top on the right side
Edit your changes and you should be able to create a pull request.
And then it is up to Kevin to accept or reject.
It's no rocket science but github can be confusing at times.
I can't see a pencil. I will search now. Thanks for the help.
You sure you don't see this:
Maybe you aren't logged in?
found a pencil. I'll try to fix it now.
@xenon462 has added Pull Request #207 for this issue