Yes it’s the official 7 inch touchscreen
OK, cool. Watch this space!
I get this error:
``[✓] Root user check passed
[✗] Hardware check failed (i686)
OK I’ve just fixed that. Give it another try and it should work!
Are you able to share you’re code in github?
Do we need to run the autoupdate?
Also the Sager forecast seems to only run at 6am, can it be run a couple of times a day as the forecast often changes within 6 hours or less
Sorry I’m not quite sure what you mean by the autoupdate? When an update is available a small popup will show in the console. If this is the case you can run wfpiconsole update
to download the new version. If you don’t do this then you won’t be automatically updated.
It should run every twelve hours (6 am and 6 pm) and when the console is first started. I can very easily make it run more frequently (every six hours) if that would be helpful?
Thanks I’ve sorted it, I’ve got it to run at 6,9,12,3,6 and 9pm
Overkill I know but…
OK, it looks like it installed, will have to check further when I get in front of it. I am remoting into to it right now and having problems with remote software. Thanks and will let you know tomorrow
Hi Peter;
Thanks for your hard work on this project. I always look forward to your updates. I was really looking forward to this one, with the adj. screen size. I was a bit disappointed to learn the Rpi3 wasn’t able to take advantage of that feature. Is it only the Rpi4 that has the hardware required?
(it’s working great on my Rpi3 & official 7" screen)
Also I also run wfpiconsole on a couple of my Windows 10 machines. It used to work perfectly. However, after this update it no longer launches.
I Get this when trying to start…
C:\Users\tomc\wfpiconsole>C:\Users\tomc\Miniconda3\python.exe main.py &
Traceback (most recent call last):
File “main.py”, line 28, in
from lib import config as configFile
File “C:\Users\tomc\wfpiconsole\lib\config.py”, line 19, in
from geopy import distance as geopy
File “C:\Users\tomc\Miniconda3\lib\site-packages\geopy_init_.py”, line 12, in
from geopy.geocoders import * # noqa
File “C:\Users\tomc\Miniconda3\lib\site-packages\geopy\geocoders_init_.py”, line 221, in
from geopy.geocoders.algolia import AlgoliaPlaces
File “C:\Users\tomc\Miniconda3\lib\site-packages\geopy\geocoders\algolia.py”, line 5, in
from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
File “C:\Users\tomc\Miniconda3\lib\site-packages\geopy\geocoders\base.py”, line 7, in
from geopy.adapters import (
File “C:\Users\tomc\Miniconda3\lib\site-packages\geopy\adapters.py”, line 22, in
from ssl import SSLError
File “C:\Users\tomc\Miniconda3\lib\ssl.py”, line 98, in
import _ssl # if we can’t import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.
(EDIT: Please no rush on looking into this. It’s more of an FYI I went back to v. 3.8 on my Windows 10 versions. works GREAT!
Yes unfortunately this is exactly the case. The graphics drivers on the Pi3 are much more limited than those on the Pi4, and as a result the console will only ever run in full screen mode on the Pi3. I have tried to find a work-around, but I have not had any luck.
That’s also a very odd error! I can’t see what I have changed to cause an error like that . I think the best bet would be to uninstall the geopy module and then try and reinstall it:
python -m pip uninstall geopy
python -m pip install geopy
I should also look at the code though, because actually I think I don’t need this module anymore. It was used to find the closest forecast location to the station, but now I have switched to the WF forecast that is no longer needed. I will look into this for the next version
Peter;
ok did that… now I get …
(base) C:\Users\tomc\wfpiconsole>C:\Users\tomc\Miniconda3\python.exe main.py &
Traceback (most recent call last):
File “main.py”, line 28, in
from lib import config as configFile
File “C:\Users\tomc\wfpiconsole\lib\config.py”, line 27, in
import distro
ModuleNotFoundError: No module named ‘distro’
(base) C:\Users\tomc\wfpiconsole>
(EDIT: I did get this upon the re-install…
(base) C:\Users\tomc>python -m pip install geopy
Collecting geopy
Using cached geopy-2.0.0-py3-none-any.whl (111 kB)
Requirement already satisfied: geographiclib<2,>=1.49 in c:\users\tomc\miniconda3\lib\site-packages (from geopy) (1.50)
Installing collected packages: geopy
Successfully installed geopy-2.0.0
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the ‘C:\Users\tomc\Miniconda3\python.exe -m pip install --upgrade pip’ command.
almost looks like a “path” issue?
Opps - that’s a new module that I added and forgot to mention. Install that with
python -m pip install distro
Hi @lewtesco, I think I have a fix in place for the autostarting issue. Would you mind testing it for me? If so, can you run:
wfpiconsole beta
It will switch you to the latest version on the development branch. Once the download has finished, run
wfpiconsole autostart-enable
Let the console start, and then reboot you Pi. Hopefully it should autostart as expected without any border or anything showing
Well … it almost worked … a window frame popped up … then closed …
(base) C:\Users\tomc>cd wfpiconsole
(base) C:\Users\tomc\wfpiconsole>C:\Users\tomc\Miniconda3\python.exe main.py &
[INFO ] [Logger ] Record log in C:\Users\tomc.kivy\logs\kivy_20-10-24_7.txt
[INFO ] [deps ] Successfully imported “kivy_deps.gstreamer” 0.1.18
[INFO ] [deps ] Successfully imported “kivy_deps.glew” 0.1.12
[INFO ] [deps ] Successfully imported “kivy_deps.sdl2” 0.1.23
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at “C:\Users\tomc\Miniconda3\lib\site-packages\kivy_init_.py”
[INFO ] [Python ] v3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at “C:\Users\tomc\Miniconda3\python.exe”
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the “OpenGL” graphics system
[CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - TypeError: GL is not available. Recompile with USE_OPENGL_MOCK=0
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core_init_.py”, line 71, in core_select_lib
cls = cls()
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\window\window_sdl2.py”, line 152, in init
super(WindowSDL, self).init()
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\window_init_.py”, line 981, in init
self.create_window()
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\window\window_sdl2.py”, line 312, in create_window
super(WindowSDL, self).create_window()
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\window_init_.py”, line 1254, in create_window
self.initialize_gl()
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\window_init_.py”, line 1225, in initialize_gl
ignored=self.gl_backends_ignored)
File “C:\Users\tomc\Miniconda3\lib\site-packages\kivy\core\gl_init_.py”, line 38, in init_gl
gl_init_symbols(allowed, ignored)
File “kivy\graphics\opengl.pyx”, line 1556, in kivy.graphics.opengl.gl_init_symbols
File “kivy\graphics\cgl.pyx”, line 100, in kivy.graphics.cgl.cgl_init
File “kivy\graphics\cgl_backend\cgl_gl.pyx”, line 149, in kivy.graphics.cgl_backend.cgl_gl.init_backend
[INFO ] [Text ] Provider: sdl2
2020-10-24 11:15:55-0400 [-] Log opened.
[CRITICAL] [App ] Unable to get a Window, abort.
(base) C:\Users\tomc\wfpiconsole>
In wfpiconsole.ini
what does the Hardware
key read? It should be set to Other
That FIXED it!
thanks… I could have sworn I didn’t have to check that in the last couple of updates/ I’ll definitely check that from now on.
THANKS again Peter — I’m going to try and adjust the screen size as it is now HUGE!
(EDIT) I got it back to previous size within a window I can control! PERFECT!
No worries just about to do it now
Autostart works perfectly now
Thanks Peter
Peter;
Here’s a photo of version 4.0 running on a Rpi3B with an HDMI mini monitor 800x600 resolution. I have a Rpi4, I may decide to repurpose at some point so the screen aspect ratio gets corrected with your latest feature to be able to modify…
as you can see it’s working GREAT , just a bit squashed!
The TEXT is MUCH more readable? seems cleaner… maybe it’s just me.