DEV Community

Hyena
Hyena

Posted on

3 1

Cmus-analytics

What is Cmus-analytics?

A small web application for data visualization extracted from a Cmus log file. Click on the example link and then import it.You will see something like this:

Alt Text

How can I get a Cmus log file?

Cmus is a very powerful music player with a lot possibilities. One of them is using a hook script for actions when the player status changes. With this script, you can create your own Cmus log file.

How do I set the script in Cmus?

First, you will have to modify the script (the one in the tools folder) in order to make it work in your computer. Change the path of the log file.

if [[ "$is_playing" = true ]] && [[ "$is_logging" = true ]]
then
    echo $entry >> {path_to_the_log_file}
fi
Enter fullscreen mode Exit fullscreen mode

In Cmus use

:set status_display_program {path_to_the_script}
Enter fullscreen mode Exit fullscreen mode

Can I use this code somehow?

Yes, of course! Please be so kind to do it. This application has been developed as a learning project of the Elm programing language. It also uses this awesome Elm linear charts library.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay