Weather-and-light code

Everything installed OK, via the installer, including astral etc. Unfortunately I’m getting an error related to my custom dual LCD setup, near as I can tell anyway.

/home/kyrie/pi_info.py:9: DeprecationWarning: Using "import ST7789" is deprecated. Please "import st7789" (all lowercase)!
  import ST7789
Traceback (most recent call last):
  File "/home/kyrie/pi_info.py", line 267, in <module>
    disp_right = ST7789.ST7789(
                 ^^^^^^^^^^^^^^
  File "/home/kyrie/.virtualenvs/pimoroni/lib/python3.11/site-packages/st7789/__init__.py", line 154, in __init__
    self._dc = gpiodevice.get_pin(dc, "st7789-dc", OUTL)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kyrie/.virtualenvs/pimoroni/lib/python3.11/site-packages/gpiodevice/__init__.py", line 163, in get_pin
    lines = chip.request_lines(consumer=f"{consumer}-{label}", config={line_offset: settings})
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kyrie/.virtualenvs/pimoroni/lib/python3.11/site-packages/gpiod/chip.py", line 331, in request_lines
    req_internal = cast(_ext.Chip, self._chip).request_lines(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 16] Device or resource busy
(pimoroni) kyrie@raspberrypi:~ $ 

I don’t have an Pi Enviro on hand to go to a simpler hardware setup. I’ll have to see what I can fab up to clone one.
Or modify the Enviro example to run on just one of my LCD’s. Most of my current weather monitoring setups are Pico based.

EDIT: I’m not allowed to make 3 consecutive posts.

OK, new plan. I’m going to swap a spare SD Card in this setup,
Three display weather graphing setup - Discussion / Projects - Pimoroni Buccaneers
And do the stock install that just uses the first LCD. There is no LTR-599, but it does have a BME280 and the correct size LCD. I will have to make one small edit as my LCD’s are on SPI 1, not SPI 0.

EDIT no 2 I’m getting an error which i think is because I’m using SPI 1?

(pimoroni) kyrie@raspberrypi:~ $ python3 /home/kyrie/w_l_custom.py 
Traceback (most recent call last):
  File "/home/kyrie/w_l_custom.py", line 291, in <module>
    disp = st7735.ST7735(
           ^^^^^^^^^^^^^^
  File "/home/kyrie/.virtualenvs/pimoroni/lib/python3.11/site-packages/st7735/__init__.py", line 146, in __init__
    self._spi = spidev.SpiDev(port, cs)
                ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
(pimoroni) kyrie@raspberrypi:~ $ 

Time to go dig into my box of Breakout Garden stuff. If I have a display and BME280 I might be able to give it one more try.