JohnMarzulli / categorical-sectional

Version of the light-up-map that works with "individually addressable" string lights based on the WS2801.
28 stars 17 forks source link

Trouble Getting ws281x LEDs to Work with Code #47

Open Amoahkuc opened 1 year ago

Amoahkuc commented 1 year ago

I wired up a 382 Neo-Pixel Sectional of the lower 48 states. The check config script runs and is pulling the METARS from all airports, and can run the test neopixel script and get 382 LEDSs to cycle through RGB and then color wheel. When the check light wiring or controller script is ran the LEDs do not respond, but the scripts seem to be running fine. Have tried modifying the config file “mode”: ws281x, and added “gpio_pin”: board.D18. I even tried hard coding board.D18 in the renderers script. Any ideas? Thank you

dman776 commented 1 year ago

in config.json, it should have... ... "mode": "ws281x", "gpio_pin": 18, "pixel_count": 382, ...

dman776 commented 1 year ago

in the log, you should see: get_renderer():39: Setting up WS281x on Pin18 for 382 lights

Amoahkuc commented 1 year ago

Thank you for the quick reply. Have made the changes to the config file, and am getting the same results. Also tried modifying the airport file from WS2801 to WS281X. 2A8B1ADF-F498-4FB9-9853-1FEDF5441F0F 0C7EA151-EB25-4356-9989-6F43A7221D39 81CFAF21-7AF9-479A-BF33-B805A770399F Thank you,

dman776 commented 1 year ago

in the airport file, it needs to be lower case "ws2801"

Amoahkuc commented 1 year ago

Have changed the airport file to be all lower case. Deleted the categorical-sectional folder from the home directory and re-installed fresh from GitHub, but am still getting the same results on check-lights and controller scripts. Is there something I could be missing to get these to work with ws281x controller? 3FE89725-8513-4E53-8D4A-58CA5499EBF3 24753BCB-E781-4F72-A151-0D791ED5D324 515F69D7-6911-47CF-8375-6FE3EC458006

dman776 commented 1 year ago

Are you running as root? Ie. sudo python3 controller.py

Amoahkuc commented 1 year ago

I am logged in as sudo su in the terminal before I launch script using python3 “script name.pay” From the categorical sectional folder, type “sudo su”, then “python3 check_light_wiring.py”. If I try as user pi, I get a permission/access denied error.