WeatherFlow PiConsole - Archive

I’m using Rasberry Pi 4B running 64 but Raspberry Pi OS. In order for me to participate in Boinc with Rosetta@Home I need to use the 64 bit version of the client (they don’t offer tasks for 32 but version).

So my Weather Console is quite overpowered and under utilized. So changing the OS to the 64 but version got stuck not being able to use PiConsole anymore.

Raspberry Pi running 32 bit OS

Raspberry Pi running 64 bit OS

I did to get it all working with the 32 bit version of Raspberry Pi OS and also wanted to thank you for all the work you have done with this project.

New bug on v4.0.4?
The first time I see something like this!

DSC_0980~2|666x500

After restarting the console everything is normal again…

@patrick.mussner - this isn’t necessarily a bug. It’s the expected behaviour if there is an error calculating the average value. Once the value is -, the console will attempt to use data from the API until a normal value is returned. Of course restarting the console will do the same thing.

@richard.d.sun, thanks for the info. I have a spare Pi4, so I’ll load up the 64 bit version of Pi OS and see how I get on. Do you have a link to where you downloaded the OS? It’ll be good to make sure we are using the same version

@peter https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-08-24/2020-08-20-raspios-buster-arm64.zip, I opened this file with Raspberry Pi Imager and put it on a SDCard and did the install with it. After it booted up, I did a sudo apt update and a sudo apt full-upgrade, the kernel definitely changed. Thanks again for your support!

@richard.d.sun, thanks for the link. I tested the PiConsole this morning on the 64 bit Pi OS and everything seemed to run smoothly. I have updated the installer to now allow installations on this operating system. Just a word of warning, the install can be quite slow as a lot of the Python packages required by the PiConsole have to be built on the Pi to match the 64 bit OS. If it looks like the installer is hanging, just be patient and it should complete!

2 Likes

@peter, thanks for the wonderful news this morning. I’ll redo my PiConsole “tonight”, got errands to run and also make sure my 9 year old is occupied during the day :-). I’ll let you know once I have it completed.

1 Like

Hey @peter, found another bug. This time in the Lightning counter. Had 1 lightning strike 2 days ago, however the Month count shows 0. Thought I woudl let you know.

Thanks again for this oustanding project.

@peter Thanks again, all working.

image

One question, what equipment do I have to purchase to link it to the “Indoor Air” stuff? Does this work with PurpleAir Indoor Sensor?

When I update my PiConsole, I get a warning that Python 3.5 is deprecated.

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.

I’m not too familiar with Linux command line stuff (I can copy and paste to update my console but that’s about it). Is there a recipe I can copy and paste to update Python?

Thanks!!

Try a google for “linux how to upgrade python”.

You might want to think about the free Introduction to Linuxedx.org class from the Linux Foundation to update your linux-fu a bit.

Hi @vinceskahan, I googled and found all sorts of hacks and tips for different Pi OS’. I set up the Pi console following Peter’s instructions so I was hoping someone knew how to do the update with this particular setup.

Learning Linux beyond a few basic commands isn’t on my radar.

You have a couple choices:

  • freeze your system where it is and take the stability/security risks that come with doing that. Treat it like an appliance. Run what you have installed forever with no changes or upgrades.

or…

  • invest a ‘little’ time in learning how to be able to maintain your system to a minimal level. That takes some effort, but it is non-zero.

Sounds like you want to be in the first category. Just ignore the warning if you don’t want to invest any of your time in working making it go away. It’s just a warning. As long as the app works, it works.

@kfite13, thanks for the heads up. I will investigate and see what is going on. I’ll get these counts right eventually!

@richard.d.sun, glad to see you’re up and running. Unfortunately the only indoor sensor that works out of the box is the old WF Air module. Unfortunately these are no longer available. I’m working on some additional display fields for those users who don’t have an indoor display. Of course, if you’re comfortable coding in Python there are tips higher up in this thread for adding your own sensors.

@Ken, the most likely problem here is that you are still running the “stretch” version of Raspberry Pi OS. This has been superseded by the “buster” version, which has an up-to-date Python version. The simplest solution to avoid ongoing compatibility problems is to flash a new SD card with the latest version of Raspberry Pi OS. Sorry!

1 Like

Hi @peter ,

Thank you for the explanation! Makes perfect sense. I’ll flash a new card with Buster and go from there.

If anyone has a console that needs to upgrade from Stretch to Buster, here’s a step-by-step guide:

The process didn’t mess up any PiConsole settings. After the upgrade, I updated PiConsole and was back in business. Very easy.

In theory, you should make a backup of your card or start with a fresh card. I threw caution into the wind and updated on my live card (worst-case, I would have to reinstall the PiConsole). Worked great.

2 Likes

Hi @vinceskahan,

Thank you for the reply! Updating the OS was a fairly easy process, so I’m back in business.

@peter

Just doing a required system rebuild on one of my PCs. Installed Windows 10 Pro - from scratch … I put that off as much as possible, as many would appreciate. The problem I ran into is restoring the Miniconda and getting all the other dependencies installed for python & kivy. I couldn’t find a Miniconda 3.7 - All that was obviously available was 3.8. Kept getting a bunch of errors during your walk-thru instructions. Also The “Installing the kivy stable release” - is no longer specified on the page - link that was provided.
I uninstalled the 3.8 - and found an earlier version in my downloads folder - I installed that - things got a bit further. However; as soon as I tried to install kivy - I ran into trouble. I’m wondering if you could take a look - and perhaps update your instructions for the Windows 10 - installation instructions? Perhaps it will still be possible to get wfpiconsole working on Windows 10.

Sure - I’ll take a look at this. It will definitely still be possible, just need to work out the steps!

I have looked into this, and I think the easiest solution for now is to install Kivy into a Conda virtual environment running Python 3.7. At some point I need to update the console to Kivy Version 2 (it is currently running Version 1.11.1), which will make it compatible with Python 3.8. You should be able to follow these instructions to get up and running:

  1. Open Miniconda and create a new virtual environment running Python 3.7:
    conda create -n kivy_venv python=3.7
    (enter y when prompted to continue)

  2. Activate that environment:
    conda activate kivy_venv
    (you will need to do this every time you open Miniconda)

  3. Install the required Python modules:
    python -m pip install autobahn[twisted] pytz pyasn1-modules service_identity geopy ephem Cython numpy packaging distro pyopenssl pillow docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew --extra-index-url https://kivy.org/downloads/packages/simple/

  4. Install Kivy:
    python -m pip install kivy==1.11.1

  5. Download the PiConsole:

cd && mkdir wfpiconsole && cd wfpiconsole
curl -sL https://api.github.com/repos/peted-davis/WeatherFlow_PiConsole/tarball -o PiConsole.tar.gz
tar -xvf PiConsole.tar.gz --strip 1
del /f PiConsole.tar.gz

Let me know if this gets you up and running again!