This project Displays the OP25 Alfa Tags on a OLED Display
This is a Work in Progress, as you can see from my code, I am a beginner and I welcome changes, this could be a fun project!!!
For more information, check out Radio Reference: https://forums.radioreference.com/threads/op25-boatbod-update.430476/#post-3562825
special thanks must be given to “BoatBod, KA1RBI and many others for the work they have done on the project.
Who is this project intended for?
Raspberry Pi owners who like to experiment on connecting different hardware devices up to their Pi and using software like “VScode” or “Thonny” to make them work.
Here are the steps:
It’s best to practice the installation on a spare micro SD card with a working OP25, liquid soap. So you are able to open up a VLC player and listen to the audio and see the alfa tags on the upper left hand corner. (my setup was using rx.py) I haven’t tried it on the other types.
Step 1:
Wire up your display (i2c) to your raspberry Pi, 4 wires +3, GND, SCL, SCK
Install Luma.oled drivers :
https://luma-oled.readthedocs.io/en/latest/hardware.html
after you have finished it’s time to install the samples:
https://github.com/rm-hull/luma.examples
And run them!!!! some are pretty cool
And run them in Thonny!
(Hint for Thonny, use the Program arguments for the command line ) I used -d sh1106 (might work without it.)
Here are the steps:
It’s best to practice the installation on a spare micro SD card with a working OP25 with liquid soap. So you are able to open up a VLC player and listen to the audio and see the alfa tags on the upper left hand corner. (my setup was using rx.py) I haven’t tried it on the other types. Step 1: Wire up your display (i2c) to your raspberry Pi, 4 wires +3, GND, SCL, SCK Install Luma.oled drivers :
https://luma-oled.readthedocs.io/en/latest/hardware.html
after you have finished, it’s time to install the samples,
https://github.com/rm-hull/luma.examples
And run them!!!!
And run them in Thonny!
(Hint for Thonny, use the Program arguments for the command line ) I used -d sh1106 (might work without it.)
look at my meta config, made a change their, identify and do the same.
Now here is the most important part. In the python file icemeta.py Notice the lines of code I added:
Line 23 import socket
Line 31 UDP_IP = "127.0.0.1"
Line 32 UDP_PORT = 28003
Line 33 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Line 92 sock.sendto(metatext, (UDP_IP, UDP_PORT))
Save the changes
Also make sure you put the font file in the same directory as Tag "display type of file".py just put it in the same dir as icemeta.py
If all goes well, start op25 with liquidsoap, open Thonny, open and run the tag oled display file, and wait for a call to display, you can make changes to the tag display file without restarting op25.
Very important!!!!
Delete the icemeta.pyc file, a new one will be created next run time.
If a new .pyc file was not created look at the error output file to see what went wrong, this will hel you troubleshoot.
NOTES: the display drivers were a real pain at first..
Todo list: import more information, i'd like to show Frequency error.
hopefully i didn"t forget anything...lol Good Luck