Giter VIP home page Giter VIP logo

rpi-metro-display's People

Contributors

kenschneider18 avatar michaing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-metro-display's Issues

TypeError Issue

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


Exception Error and Station Code Questions

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!

Fix state endpoint in Python 3 beta

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.

(Question) Raspberry Pi 2 Compatibility

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!

Can't Execute

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.

  • I have validated that all my soldering is good by running the demos in rpi-rgb-led-matrix/examples (displays work)
  • I made the changes to rpi-metro-display.py for options.gpio_slowdown = 4
  • network connectivity is good
  • API acquired from WMATA, able to populate the stations.json / lines.json files
  • there is no log.txt in rpi-metro-display, maybe saying that it's not getting very far in the script

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!

Display Not Functioning

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!

Incidents showing in log file, but not on display

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.

Sign stopped showing train times

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?

Modifying for 2x2 matrix

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.

Am I required to use the Adafruit Matrix Hat and Dot Matrix 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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.