bobrathbone / piradio6 Goto Github PK
View Code? Open in Web Editor NEWInternet Radio for Raspberry Pi
Internet Radio for Raspberry Pi
Unable to load a playlist which points to .mp3 and other music files contained in /home/pi/Music on the SD card
Operating System is Raspberry Pi OS Bookworm.
Hi,
I am using SSD1306, Monochrome 0.96" 128x64 OLED from Adafruit and it did not work for me.
Turns out, that the default I2C address is 0x3D not 0x3C like some other models.
I tried changing the I2C address in the config file. But that did not work
It seems that the code uses a constat from the Adafruit library and not the I2C value from the config file.
So I changed line 36 in "ssd1306_class.py" to "oled = Adafruit_SSD1306.SSD1306_128_64(rst=RST, i2c_address=0x3d)" and that worked.
Would it be possible to add the config file I2C address varible here instead of hardcoding the address?
Line 30 in e6f333d
Line 73 in e6f333d
Line 36 in e6f333d
I had a problem with a very slow running loop that left the touch radio quite unresponsive I have changed the clock. Tick(30) in line 1383 of gradio.py to clock. Tick() and that has helped a great deal. The vgtadio.py should probably be updated as well.
It would be nice to be able to install piradio on Minimal distro like DietPi. Currently there are problems with user and home path. DietPi uses "dietpi" user instead of "pi"
After SH1106 I2C test which was unreliable (the device sometimes was disconnected and radiod crashed with I2C error), i'm a bit confused what to do change in configuration to switch I2C to SPI. Changing display_type to OLED_128x64 has no effect as the radiod is crashing with I2C error, also tried with commenting i2c_address and i2c_bus. The SPI wiring is not obvious, i used
OLED - RPi
Vcc - 3.3v
GND - GND
DIN - GPIO10
CLK - GPIO11
CS - GPIO8
D/C - GPIO24
RES - GPIO25
calling 1106 via SPI within my perl program is working fine. Any suggestions?
I frequently use my Pi without a keyboard. If it is having network problems (so no remote login), I would like to use a mouse to exit PiRadio so I can get to the desktop to reboot it.
create_stations.py --delete_old prints out the usage.
In this file at line 378
if param == '--force':
must be
elif param == '--force':
I made an update to 7.2 today on my Raspberry Pi with an Adafruit-LCD with 5 buttons.
Now the LCD stuck when i push the menu button twice for changing the playlist.
I reboot the rpi, start this skript "sudo ./radiod.py nodaemon", press the menu button twice and get this:
"
/usr/share/radio $ sudo ./radiod.py nodaemon
Radio running pid 944
Traceback (most recent call last):
File "./radiod.py", line 1450, in
daemon.nodaemon()
File "/usr/share/radio/radio_daemon.py", line 98, in nodaemon
self.begin(False)
File "/usr/share/radio/radio_daemon.py", line 126, in begin
self.run()
File "./radiod.py", line 161, in run
self.process()
File "./radiod.py", line 255, in process
displaySource(display,radio,menu,message)
File "./radiod.py", line 938, in displaySource
message.speak(str(index+1) + ' ' + search_station[0:50])
NameError: name 'search_station' is not defined
"
Line 938 in 8430f7e
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.