2015-03-18, 16:47
Hello,
I am new on the forum and wanted to say that everything was working perfectly, so far so good. Your Add-on rocks
So I wanted to thank you for your hard work, and help a little bit with a little contribution.
I noticed like everybody the Freespace not reported as it should, but for myself, it is not a big deal.
I saw on the forum, that for the moment it was impossible to display an equalizer (or a vu meter) I think it could be possible do do that in a certain manner at least for the Imon LCD.
I do not know if it could be integrated to ce LCDProc Add-on or not, but at least, it should be possible to have a permanent vumeter activated, aside KODI.
Let me explain, I found a little piece of code in python, that permits to monitor the sound output, via pulseaudio. It works pretty well and displays a vumeter in textmode in a terminal. This piece of code display only one channel but can be easyly adated to display two channels, and send the output to the Imon LCD, like you did for Icons, using the extra bars (the thin ones, or the thick ones) for rendering.
This little piece of code is in python like I said, like your addon, may be it can be integrated, at least for linux, as an extra add-on for kody.
The piece of code is here :
https://bitbucket.org/mjs0/peak-detect/src
And requires the installation of this :
https://github.com/Valodim/python-pulseaudio
in order to make that work with ubuntu :
1) Install the python-pulseaudio library :
download the zip file, extract somewhere, open a terminal with Ctrl+Alt+T :
- cd to the directory where the setup.py is located
- activate the permission for the file setup.py to be executed
- run the script to install the library
2) Download the python vumeter :
a) open this link (if you are lucky, it will be downloaded, go directly to step c) if not, you see the code in your browser) :
https://bitbucket.org/mjs0/peak-detect/r..._detect.py
b) open Gedit, Paste everything, saves as peak_detect.py where you want, go to step d)
c) open your file with GEdit (right click on it , open with GEdit)
d) Add this line, at the beginning, as a first Line, just before the first line (import sys) :
e) save, don't close gedit for the moment, reopen your terminal
f) use the cd command to go to the directory of this file, and allow permission to execute :
g) execute the script :
h) for the moment, it does nothing but displaying the various output that can be monitored, look at what output you want to monitor, mine was at index 2 and named "alsa_output.pci-0000_00_14.2.analog-stereo", copy this name, go back to GEdit and replace SINK_NAME = 'xxxxxxxxxxxxx' with SINK_NAME = 'the name of your device", save, close GEdit
i) close the terminal, open a new one, re-execute the script like in step g)
j) browse to a music file, double clic on it to play
k) you have a vu meter working in your terminal !
I am new on the forum and wanted to say that everything was working perfectly, so far so good. Your Add-on rocks
So I wanted to thank you for your hard work, and help a little bit with a little contribution.
I noticed like everybody the Freespace not reported as it should, but for myself, it is not a big deal.
I saw on the forum, that for the moment it was impossible to display an equalizer (or a vu meter) I think it could be possible do do that in a certain manner at least for the Imon LCD.
I do not know if it could be integrated to ce LCDProc Add-on or not, but at least, it should be possible to have a permanent vumeter activated, aside KODI.
Let me explain, I found a little piece of code in python, that permits to monitor the sound output, via pulseaudio. It works pretty well and displays a vumeter in textmode in a terminal. This piece of code display only one channel but can be easyly adated to display two channels, and send the output to the Imon LCD, like you did for Icons, using the extra bars (the thin ones, or the thick ones) for rendering.
This little piece of code is in python like I said, like your addon, may be it can be integrated, at least for linux, as an extra add-on for kody.
The piece of code is here :
https://bitbucket.org/mjs0/peak-detect/src
And requires the installation of this :
https://github.com/Valodim/python-pulseaudio
in order to make that work with ubuntu :
1) Install the python-pulseaudio library :
download the zip file, extract somewhere, open a terminal with Ctrl+Alt+T :
- cd to the directory where the setup.py is located
Code:
cd /Downloads/python-pulseaudio-master
Code:
sudo chmod +x <filename>.py
Code:
sudo ./setup.py install
a) open this link (if you are lucky, it will be downloaded, go directly to step c) if not, you see the code in your browser) :
https://bitbucket.org/mjs0/peak-detect/r..._detect.py
b) open Gedit, Paste everything, saves as peak_detect.py where you want, go to step d)
c) open your file with GEdit (right click on it , open with GEdit)
d) Add this line, at the beginning, as a first Line, just before the first line (import sys) :
Code:
#!/usr/bin/env python
f) use the cd command to go to the directory of this file, and allow permission to execute :
Code:
chmod +x peak_detect.py
Code:
./peak_detect.py
i) close the terminal, open a new one, re-execute the script like in step g)
j) browse to a music file, double clic on it to play
k) you have a vu meter working in your terminal !