Closed xenon462 closed 1 year ago
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
In the PyQtPiClock.py file I added the line
ds = ds.decode('utf-8') ds2 = ds2.decode('utf-8')
The top line worked correctly.![2](https://user-images.githubusercontent.com/34947093/103644261-23749200-4f67-11eb-8e40-1e8965053b82.png)
How do I fix the days of the week in the column on the right?
My settings:![set](https://user-images.githubusercontent.com/34947093/103644390-59197b00-4f67-11eb-9957-2109907103f5.PNG)