Weatherstation python script make me crazy

Please How to use code fences for code and logs.

The root error in the stack trace is that the Python script does not have permission to access the GPIO pins. So the possible problems are:

  • the openhab user doesn’t have permission to read/write to any GPIO pins. On a stock Raspbian this is addressed by adding the openhab user to the gpio group

  • the openhab user doesn’t have permission to read/write to the specific GPIO pins the DHT is connected to, check the permissions on those device files

  • the DHT is broken or the wires are broken