kenschneider18 / rpi-metro-display Goto Github PK
View Code? Open in Web Editor NEWCode for Raspberry Pi based dot matrix DC Metro times display
License: GNU General Public License v2.0
Code for Raspberry Pi based dot matrix DC Metro times display
License: GNU General Public License v2.0
Is anyone getting this issue when trying to run the rpm-metro-display.py file? Log file below
Original exception was:
Traceback (most recent call last):
File "/home/dietpi/metro-sign/rpi-metro-display/rpi-metro-display.py", line 574, in <module>
main()
File "/home/dietpi/metro-sign/rpi-metro-display/rpi-metro-display.py", line 564, in main
station_code = Array(ctypes.c_char, sys.argv[3])
File "/usr/lib/python3.9/multiprocessing/context.py", line 141, in Array
return Array(typecode_or_type, size_or_initializer, lock=lock,
File "/usr/lib/python3.9/multiprocessing/sharedctypes.py", line 88, in Array
obj = RawArray(typecode_or_type, size_or_initializer)
File "/usr/lib/python3.9/multiprocessing/sharedctypes.py", line 67, in RawArray
result.__init__(*size_or_initializer)
TypeError: one character bytes, bytearray or integer expected
Hello!
I've been attempting to get my metro display working with a stock Pi 4running DietPi as suggested. I have everything installed per the instructions, but when I go to run the program (either using ./run.sh directly or through the service), nothing happens and I get a set of uncaught exception errors in the log.txt file. With my limited programming knowledge I mostly understand the error, but the traceback code (hexadecimal?) is gibberish/useless. Here's an example:
Uncaught exception!
Type: <class 'TypeError'>
Value: one character bytes, bytearray or integer expected
TB: <traceback object at 0x7f87164340>
Also - is there a good reference available for the station and direction codes? I am not sure if I should be using the full name of a station or its 3 letter identifier e.g. N07 in the run.sh file.
Thank you!
The GET /state endpoint does not work on the Python 3 branch because there’s no way for the Flask API process to know what the station code being displayed in the display process is. This can be fixed by adding another variable to the Flask application context containing the initial station code on server start and updating it when a new station code is received through the API.
I have an old Raspberry Pi 2B in my closet collecting dust. Why doesn't your set up work with that model?
What changes would I have to make to make it compatible?
Thanks!
Greetings, thank you for the work you've done coding / documenting this project! I would classify myself as a beginner-intermediate type, I have just enough knowledge to move around but there are still gaping holes in my knowledge that might cause me to miss something obvious.
I have a Raspberry Pi 4 model B running DietPi (64 bit). I am using the Adafruit hat with 2 x 64 x 32 LED panels.
Nothing happens when I run the metro-display service.
My run.sh:
python /home/dietpi/metro-sign/rpi-metro-display/rpi-metro-display.py /home/dietpi/metro-sign/rpi-metro-display/log.txt <WMATA API key> C12 1 /home/dietpi/metro-sign/rpi-metro-display/6x10.bdf /home/dietpi/metro-sign/rpi-metro-display/lines.json /home/dietpi/metro-sign/rpi-metro-display/stations.json
Help!
Thanks for creating such an awesome project like this! I heard about it from DCist.
I followed all of the directions, including getting the same supplies (two Adafruit 64x32 boards, matrix HAT, etc.) and plugged everything in, but I can't seem to get the displays to run.
Edit: I confirmed using some demos from rpi-rgb-led-matrix
that everything is wired properly. I've re-imaged and installed again thinking I missed something the first time around, but the program still won't run.
If you have any ideas about what I'm missing, I would appreciate it!
First off, thank you for making this, and making and making it public.
I'm on update/python3 branch. Everything works great, except I can see in the log there are incidents coming back from the API, but they don't display to the board.
Any idea what is going on here? I'm happy to continue troubleshooting, just hoping you could provide some direction. Thanks for your time.
My sign stopped showing the train times, only shows the top row with "LN CAR DEST MIN". I've had this happen a few times before but usually it sorts itself out within a few minutes automatically but it's been like this all day. Any idea what's up?
Hi,
Thanks for the awesome tutorial! So, I have a 2x2 matrix of LED screens as opposed to your 1x2. I am wondering how to modify the code accordingly. It works just fine as a 1x2 display, but when I modify the options.parallel or other similar parameters in incidents.py and rpi-metro-display.py to try and accommodate a 2x2 display, the code doesn't work anymore and continues to draw Iike it's a 1x2 display.
Hello,
I am wondering if the Adafruit Matrix Hat and Dot Matrix display is required to view metro rail times. I've inserted all of the code into the Raspberry Pi and it seems working when I start it and continually refresh the log file. I wonder if there is a way to view these times on a desktop monitor?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.