Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Visualizer ideas #268

Open
Scary-Guy opened this issue Dec 30, 2024 · 8 comments
Open

[FEAT] Visualizer ideas #268

Scary-Guy opened this issue Dec 30, 2024 · 8 comments

Comments

@Scary-Guy
Copy link

I just thought it'd be neat to be able to hit a key and bring up a visualizer sort of like NCMPCPP has.

CAVA is a neat cross platform option that could work. It's in the repo for Debian and probably others as well.

Currently I start it in a separate terminal but I'd really like to not need to do that.

Ooh, could even have it as a dimmed background to the stations list as an overlay. Probably would only work on fast systems though that could handle it. But I'm thinking like #440000 for the CAVA bar colors so they're really dim. Then maybe hit a key to hide the browser interface and have the bar colors increase in brightness.

....also a clock would be neat too. I'll shut up now.

@s-n-g
Copy link
Collaborator

s-n-g commented Jan 3, 2025

Hi @Scary-Guy
Happy New Year!

If you want to check the clock, download pyradio devel, unzip it and

./devel/build_install_pyradio
echo "show_time = 0" >> ~/.config/pyradio/config

More info with

pyradio -pc

(look for show_time)

You can also check the config window, or press "\t"
😉

@Scary-Guy
Copy link
Author

Scary-Guy commented Jan 3, 2025

That's awesome, I just looked at it and it works great. This will come in handy if I have the terminal fullscreen. Although I was thinking more like what's in the screenshot, but honestly either works fine. https://discuss.getsol.us/assets/files/2023-11-18/1700267271-311536-image.png

and to you as well!

@s-n-g
Copy link
Collaborator

s-n-g commented Jan 3, 2025

I wish I had seen that screenshot earlier!
This would have been much easier to implement :)

@s-n-g
Copy link
Collaborator

s-n-g commented Jan 4, 2025

I have updated the code about the clock

Please download pyradio devel, unzip it and

./devel/build_install_pyradio

so that you keep up with changes

@Scary-Guy
Copy link
Author

Scary-Guy commented Jan 4, 2025

Cool! Only problem is my config isn't updating when I enable the clock (or really when I do anything else.) I've just been doing it manually and really didn't think much of it. I checked the file permissions and my user account obviously has write access, and I added write access for group/everyone and still nothing.

So, what is the line I need to stick in to make it work?

@s-n-g
Copy link
Collaborator

s-n-g commented Jan 4, 2025

The file is ~/.config/pyradio/config, right?

try changing it (from the config window) and pressing "s" before anything, you will get a message "Config saved successfully!!!" at the status line.

also, try running pyradio -d

you will get a file ~/pyradio.log

this is my log after changing the config and pressing "s"

2025-01-04 15:39:17,072 - pyradio.keyboard:set_kb_letter():642 - DEBUG: setting kb_letter = 's'
2025-01-04 15:39:17,073 - pyradio.window_stack:close_window():341 - DEBUG: CLOSE MODE: CONFIG_MODE -> NORMAL_MODE - [[0, 0]]
2025-01-04 15:39:17,074 - pyradio.config:save_config():2821 - DEBUG: saved params = {'mpv': [1, 'profile:pyradio'], 'mplayer': [1, 'profile:pyradio'], 'vlc': [1, 'Do not use any extra player parameters']}
2025-01-04 15:39:17,075 - pyradio.config:save_config():2939 - INFO: Config saved
2025-01-04 15:39:17,075 - pyradio.log:restart_timer():321 - ERROR: time_format = 2
2025-01-04 15:39:17,075 - pyradio.log:start_timer():325 - ERROR: time_format = 2
2025-01-04 15:39:17,075 - pyradio.log:stop_timer():350 - DEBUG: timer is disabled! Stoping!
2025-01-04 15:39:17,265 - pyradio.log:_show_time():215 - DEBUG: Timer threat asked to stop. Stopping...
2025-01-04 15:39:17,265 - pyradio.log:update_time():183 - DEBUG: Timer threat asked to stop. Stopping...
2025-01-04 15:39:17,265 - pyradio.log:start_timer():344 - DEBUG: timer's new time format = 2 (%I:%M:%S %p)
2025-01-04 15:39:17,265 - pyradio.log:start_timer():345 - DEBUG: timer's new update functions = (<bound method Log.write_time of <pyradio.log.Log object at 0x7fa705a915b0>>,)
2025-01-04 15:39:17,266 - pyradio.radio:keypress():7279 - INFO: 
ConfSaved    old rec dir: "/home/spiros/pyradio-recordings"
2025-01-04 15:39:17,266 - pyradio.radio:keypress():7280 - INFO: 
ConfSaved    config options recording_dir : "/home/spiros/pyradio-recordings"
2025-01-04 15:39:17,266 - pyradio.radio:keypress():7281 - INFO: 
ConfSaved    saved config options recording_dir : "/home/spiros/pyradio-recordings"

observer the messages...

@Scary-Guy
Copy link
Author

GAH! For some reason I thought q would save it (since it usually does in most other programs.) Works fine.

@s-n-g
Copy link
Collaborator

s-n-g commented Jan 4, 2025

Please do use the "?" to make sure about the shortcuts 😉

@s-n-g s-n-g mentioned this issue Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants