I have a Pimoroni Weather hat on A Pi Zero W2 which is working but I’m trying to set it up on a separate screen via Adafruit.io. It appears there is a fault in the code as I get an error.
Below is a screen shot of the error. Thanks to Liam in the chat for trying to help & suggesting I ask here.
Based on that error message, I would assume that the WeatherHat’s GPIO pins are already being claimed by another process on the Pi. I can see that you remoted into the Pi, were you already running the program as another session? Either as a GUI or remotely?
Could you please also tell us the output of the below command?
Howdy, the weather hat is all that’s on the Pi bar the extra screen I’ve connected (I was originally trying to send the info straight to the screen so I didn’t need to do things over the internet but as Adafruit was part of the download, I just went that path (& now that I think of it, I also have a wireless mouse & keyboard connected to the Pi & they have stopped working too!
I access it via Putty, that command does nothing.
Thanks for the reply, I’m very new at this (hard to teach an old dog new tricks, but I’m trying!
Ok, so the user Rod is a part of the ‘dialout’ group, which is good. A lot of Serial and GPIO pin issues are caused by a user not being part of that group.
That gpioinfo is showing that the pins are being claimed by the separate operation, presumably the screen on the Pimoroni Hat is launching this code and claiming those GPIO pins first. This is definitely happening if the screen is displaying the weather while you’re on Adafruit.io.
What I would suggest instead is that instead of running the code again, it might be worthwhile modifying the code to store the Pi Weather Hat temperature and humidity values on a file on the Pi that you can access from seperate screen.