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

Making it work #2

Closed
Chiny91 opened this issue Aug 3, 2021 · 6 comments
Closed

Making it work #2

Chiny91 opened this issue Aug 3, 2021 · 6 comments

Comments

@Chiny91
Copy link

Chiny91 commented Aug 3, 2021

Congratulations on achieving recognition with this project - Raspberry Pi .org no less. I ordered the Pimoroni display last night when they had 11 in stock; less than 24 hours later, no stock 😱

A few things slowed my installation of this software on my fresh Raspbian Buster on an R Pi Zero, which may help those that follow:

Get the weatherClock software:
git clone https://github.com/KeepThisTicket/weatherClock

Force the use of Python 3 (or the default Raspbian may use the deprecated Python 2) AND change working directory.
Add to the top of weatherClock.py:

#!/usr/bin/python3
import os
os.chdir("/home/YOUR_USER/weatherClock/")

Install the Python tkinter module (don't use pip3 for this module):
sudo apt-get install python3-tk

My Pimoroni display has just been posted so whilst waiting, I have diverted the output from this software to my iMac using the XQuartz X Window system. It works a treat and I do like the look of it, including the touch for details. I suspect this will have a high WAF and I'll be printing a case shortly.

Many thanks for your efforts in making this project public.

@Vacant0mens
Copy link

Vacant0mens commented Aug 4, 2021

@Chiny91 what's the purpose of changing directories? The script seems fairly self-contained (other than needing to install the requests module).

Okay, so reading the image files would be easier if it were more specific. How about this?:

import os

path = os.path.dirname(os.path.realpath(__file__)) + '\\'

and then when reading the files (for example):

idImae_array[num] = f"{path}11d@2x.gif"

that way as long as the script file and the image files are in the same directory, it doesn't matter where you put them.

@Chiny91
Copy link
Author

Chiny91 commented Aug 5, 2021

Not tried that code but it looks like it addresses the issue; script/image files in the same directory (likely if git clone is used).

My display has now arrived and very nice it looks, with weatherClock running fine. I do notice that when I click on the hourly weather symbols (as of Thu 1pm), I am getting the weather forecast for at least 12 hours away (Fri 1am etc) rather than for later this afternoon (Thu 2pm 3pm etc).

Had to Google "POP", obvious when you know. Here in the UK high summer, it is of course reading 100% 🌧️

@Vacant0mens
Copy link

I have a local branch that has that fix in it (among other things). Just waiting for approval to publish and make a PR.

Vacant0mens pushed a commit to Vacant0mens/weatherClock that referenced this issue Aug 16, 2021
@KeepThisTicket
Copy link
Owner

Hi guys sorry about the long silences - i have been busy and away the last few weeks but getting back into the swing of things now. @Vacant0mens is this confirmed resolved with the commit you have referenced above ?

@Vacant0mens
Copy link

yes, that commit is in my PR and should be good to go for this issue. 👍

@KeepThisTicket
Copy link
Owner

Closing issue as all should be resolved with work of @Vacant0mens with PR#8

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

3 participants