-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Internet Weather Station is not shown on 320x240 display #16
Comments
Happy to help! First off, you don’t need sudo for this... it should run as the current user. To use sudo would actually require more environment settings. Second, can you tell me what operating system you are running? If on a Debian based system, did you use the directions in the readme including installing the extra libraries? Sent with GitHawk |
Hello! Furthermore I installed all dependencies and got and used an API key from https://darksky.net/dev. Unfortunately, the script still doesn't work properly. |
Are you running it locally from your raspberry pi or from an ssh connection? Sent with GitHawk |
Also, what does Sent with GitHawk |
I´m running it from an ssh connection. I usually put it in the startup, so that when the Raspberry Pi's was powered up it should start. |
Also, what does env | sort return? <-- What do you mean by that? |
Please run that command. As for running this over ssh, you have to export your display for that to work. Am I correct in assuming you are running the full version of Raspnian, aka not “Raspian Lite?” Sent with GitHawk |
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus |
I don't know which Rasbian version is installed (Lite or Full) ...? |
Thank you for your help! |
Good evening! Do you still have time to show me how to set the DISPLAY environment variable? best regards |
I just got home a little while ago. It’ll be later tonight but it is on my to do list still. Sent with GitHawk |
@dodas425 check out the updated readme. It should get you taken care of as I have made this able to run as a service. Please let me know if that works or if you need more help. |
Thank you so much for the great help. I will be happy to test it out after work tonight and will get in touch! I wish you a nice day! |
Just wanted to see how things went |
Hi there! Sorry that I'm only reporting now. I have some stress at work and at home at the moment ... I worked through your instructions yesterday. Unfortunately the startup is not yet possible. I also had to take smaller icons that I didn't like so much, but I didn't know how to use the icons in order to zoom out so that they are displayed correctly and quickly in my resolution 320x240. Unfortunately, I also don't know how to make the icons in the position appear slightly above the temperature display. The time is also not displayed correctly. See image. I also can only run the program with the sudo python3 weather.py command, otherwise it doesn't work ...
|
Here is the picture from the display of the Raspberry Pi…..
|
320x240 |
Do you have FULLSCREEN set to true? Also, what kind of startup problems are you having? Sent with GitHawk |
Also, what’s wrong with the time? Regarding using sudo, if you back up your config, delete your copy of the code, reclone it without sudo like the docs say, put your config back, and run the new install.sh it should start automatically. Sent with GitHawk |
No! I have set the fullscreen to false. I'm going to change it tonight and set it to true. |
Doesn't it matter how big the icons are and are automatically adjusted to the resolution 320/240 if FULLSCREEN = True? |
OK, I'll go through these steps again tonight. Maybe I made a mistake and will report to you directly! Thank you! |
Are the attached icons also intended for 320/240 resolution? |
So, there are two sets of icons in the code. The non-full screen set of code sets things up assuming you have 480x320 display. When fullscreen is used it detects your display size and scales accordingly. Anything with a width less than 1024 gets the small icons as the big ones just take up too much room. The logic for this is here: Lines 252 to 262 in d5e0ac1
If your display would look better with the |
I now understand your explanation about config.FULLSCREEN. At home I test whether the smaller icons look good and give feedback! If the icons should be 128x128, I'll get back to a new issue |
Hi there! I have followed your installation instructions. Unfortunately it didn't work, so I entered weather.py in a launcher.sh, which in turn is loaded via .bashrc when the Raspberry pi is restarted. |
Unfortunately the wind speed is not shown completely. Do you know how I can adjust the font for humidity and feels like? I was able to adjust the icons to 64x64 pixels, but it would be nice if they could be positioned a little higher ... Do you have an idea? I have added 2 photos. Thanks in advance! |
Here is my modified script attached... |
I will look into this some this weekend but I think the root cause is that this isn’t setup for that low of a resolution display. I’ll see if I can get it looking better though. Sent with GitHawk |
Oh, that's very nice of you! I'm glad |
FYI: I started a Gitter for this project to facilitate real time chats too. I’ll be in there a little later. https://gitter.im/PiWeatherRock/community Sent with GitHawk |
FYI, I added some new info to he readme tonight and fixed a few bugs. I haven’t forgotten about your issue and hope to work on it this week. |
Hi there! Gitter is a nice idea! Very interesting. The weather project deserved something :) |
Thanks for the info, my dear. I am happy for every optimization. Thank you so much for your help! |
I don't want to ask too much, but it would be nice to be able to create the days in another language! |
Thanks! Regarding the language stuff, feel free to open a feature request |
OK thanks! I made that already :-) |
Hi, Gene! Did you get around to looking for my Python display problem (resolution 320x240) yet? Changing that value in line 253 of weather.py to 58 has compressed the display even more. My Python script at this point is a bit different, if it should not look compressed: os.environ["SDL_FBDEV"] = "/dev/fb1"
|
I ordered a 320x240 screen tonight so that I can dig into this. Sent with GitHawk |
Oh that's good news! I am curious.
Von: Gene Liverman <[email protected]>
Gesendet: Freitag, 14. Februar 2020 06:03
An: genebean/PiWeatherRock <[email protected]>
Cc: dodas425 <[email protected]>; State change <[email protected]>
Betreff: Re: [genebean/PiWeatherRock] Internet Weather Station is not shown on 320x240 display (#16)
I ordered a 320x240 screen tonight so that I can dig into this.
Sent with GitHawk <http://githawk.com>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#16?email_source=notifications&email_token=AOBY6IPZJQRZDLSMJAKTMR3RCYQZ7A5CNFSM4KKDLVJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXSWKI#issuecomment-586099497> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOBY6IPUNQRNADJSBJ3UHS3RCYQZ7ANCNFSM4KKDLVJA> . <https://github.com/notifications/beacon/AOBY6IJ5ICCDXDYVEB4VWGLRCYQZ7A5CNFSM4KKDLVJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXSWKI.gif>
|
Hi, are you a little bit programming on the new 320/240 display? Best wishes |
I tried but a it turned out my spare Pi was dead. I just got another zero w that I’m going to use but it’s going to be a few days til I’m able to start Sent with GitHawk |
OK, I'm glad to see you're moving on. Good luck. |
@dodas425 I got my display the other day but had to work with the manufacturer to get to actually use the 320x240 resolution. This morning I finally have it working at that resolution so I can now start trying to debug your issue. |
That's very nice! Good luck. Good luck. |
Hello everybody!
Unfortunately, I'm almost desperate again.
Get this message with the command (sudo python weather.py):
Traceback (most recent call last):
File "weather.py", line 825, in
if my_disp.get_forecast() is False:
File "weather.py", line 274, in get_forecast
config.UNITS)
TypeError: forecast() takes at most 3 arguments (4 given)
Or with the command (python3. weather.py):
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "weather.py", line 815, in
my_disp = my_display()
File "weather.py", line 236, in init
pygame.display.init()
pygame.error: Unable to open a console terminal
The 2 files are in the attachment as a zipped file!
Can someone help me please? Thank you very much!!!
files.zip
The text was updated successfully, but these errors were encountered: