Not a problem I don’t mind a little problem solving and actual time working on it was not bad. Most of the time was researching while watching a baseball game so I definitely don’t feel my time was wasted. if I would have known more about python and Kivy im sure it would not have taken as long as it did. the layout looks great
Has anyone used the POE hat you can get for the Raspberry Pi? also is the 7" screen powered by the Raspberry Pi or does it have to have its own power supply? I have a PoE switch at my house so was wondering how well that would work to be able to power the entire unit just off of the network cable.
Haven’t used POE I’m afraid so can’t really comment on that. As for the screen though, it can either be powered through two of the GPIO pins, or you can use a separate USB power supply if all of the GPIO pins are in use. I use this case: https://smarticase.com/collections/all/products/smartipi-touch which comes with a USB splitter, so you can power both the Pi and the screen from one USB power supply.
You might try some Raspi forums for that level of detail. Maybe /r/raspberry_pi on Reddit as one suggestion.
I have two. I used one on the RPi that has ArchiveSW installed but later removed it as I needed easy access to the GPIO pins. I power the RPi with a 2.4Amp POE adapter and batter backup.
Here is the link:
It can be powered either way. I power the screen with two jumpers connected to the pins on the RPi.
So will the yearly rainfall reset Jan 1 or is it a year from when you started using the app?
It will reset on Jan 1st.
great that’s what I wanted to hear. ![]()
I’d like know how you modified it to work on a larger screen, these old eyes cannot imagine using an small display.
This is the main modification. I made: (self.size)
======================================================
CURRENT CONDITIONS SCREEN
======================================================
#:import Factory kivy.factory.Factory
:
name: ‘CurrentConditions’
orientation: ‘vertical’
canvas.before:
Rectangle:
size: (800,480)
source: ‘background/currentConditions.png’
This is the original code:
size: self.size source: 'background/currentConditions.png'
The other changes are cosmetic and relocation of the date & time.
Sorry I didn’t do it earlier but I was struggling with another pi that crashed (well the external SSD). Hat being solved I ran your script and here is output
pi@WF_console:/ $ curl -sSL https://peted-davis.github.io/wfpiconsole | bash
[✓] Root user check passed
================================
Installing WeatherFlow PiConsole
================================
[✓] Raspberry Pi found. Hardware check passed
[✓] Raspbian (Debian) found. OS check passed
[✓] Checking for updated packages
[✓] Installing updated packages
[i] WeatherFlow PiConsole dependency checks...
[✓] Checking for libsdl2-dev
[✓] Checking for libsdl2-image-dev
[✓] Checking for libsdl2-mixer-dev
[✓] Checking for libsdl2-ttf-dev
[✓] Checking for pkg-config
[✓] Checking for libgl1-mesa-dev
[✓] Checking for libgles2-mesa-dev
[✓] Checking for python-setuptools
[✓] Checking for rng-tools
[✓] Checking for libgstreamer1.0-dev
[✓] Checking for git-core
[✓] Checking for gstreamer1.0-plugins-bad
[✓] Checking for gstreamer1.0-plugins-base
[✓] Checking for gstreamer1.0-plugins-good
[✓] Checking for gstreamer1.0-plugins-ugly
[✓] Checking for python-dev
[✓] Checking for libmtdev-dev
[✓] Checking for xclip
[✓] Checking for xsel
[✓] Checking for libatlas-base-dev
[✓] Checking for gstreamer1.0-omx
[✓] Checking for gstreamer1.0-alsa
[i] WeatherFlow PiConsole Python module checks...
[✓] Updating Python package manager
[✓] Checking for Python module autobahn[twisted]
[✓] Checking for Python module pytz
[✓] Checking for Python module pyasn1-modules
[✓] Checking for Python module service_identity
[✓] Checking for Python module geopy
[✓] Checking for Python module ephem
[✓] Checking for Python module Cython
[✓] Checking for Python module numpy
[✓] Checking for Python module packaging
[✓] Installing Kivy Python library [This will take time. Please be patient....]
[✓] Updating Kivy configuration for touch screen
[i] Latest version of the WeatherFlow PiConsole: v2.5
[i] Installed version of the WeatherFlow PiConsole: v2.4
[✓] Updating WeatherFlow PiConsole to v2.5
============================================
WeatherFlow PiConsole installation complete!
Start the console with: 'wfpiconsole start'
============================================
only thing is why did it install this ?? apt-get upgrade ??

no way to launch that last command automagically ? if you run it in terminal the script stops the moment you close the terminal, only option is to reboot to have it run independently
Yep the scripts runs an apt-get upgrade during install and update. The installer should have asked you in a dialogue box if you were happy for the apt-get upgrade process to be run?
wfpiconsole start is aimed at people using a vnc connection that keeps the terminal open. If you are using an ssh connection use wfpiconsole autostart-enable, it will re-copy the service file, but will also start the console for the current session.
for me not, but maybe someone having other things running on it (like me weewx) … might mess up other things??
I did a reboot and it restarted ok, no issue but the day you make an update button via screen, it’ll have to restart the service somehow without the need for a to reboot no?
This is why I ask the user to confirm if they want the updates to be installed. If you answer ‘no’, then the wfpiconsole install/update will continue without updating any local packages. Of course it is recommended that you shouldn’t be running outdated packages!
I agree! I need to have a think about the best way to achieve this.
You probably should not be doing this. I would agree with the ‘update’ so the system knows where the current packages are installed, but whether to ‘upgrade’ previously-installed packages should be left up to the user in my opinion.
I think I’m struggling to get my point across here! The code already leaves it up to the user. It first runs an ‘update’ to check if any installed packages are out of date. Then a dialogue is presented to the user asking them if they wish to update the out of date packages (if there are no out of date packages, the dialogue is not presented). If they answer ‘yes’, then the code runs an ‘upgrade’. If they answer ‘no’, then the code continues to install/update the wfpiconsole. The code does not require an ‘upgrade’.
ok now I see … hence maybe reformulate the question that’s presented … I didn’t understand it in that way. especially for non native english speakers like me
and those that read half and push yes yes yes done ![]()
Fair point - I’ll have a look at the wording
. I don’t want people to feel forced into upgrading!
oh - I misread too. That’s perfect. Thanks.
Will the program auto update if we have it installed on a windows pc of is there a command to run to make it update or do we just have to download the zip and replace the files manually?