Re: [SlimDevices: Plugins] [Announce] Ratings Light

2021-03-02 Thread Iigo

afriend wrote: 
> Please try 1.7.0 and let me know if RL is working now. Otherwise let me
> know which was the last version that worked for you and I'll add it to
> the repo.

Thanks!
Version 1.7.0 works.



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=113344

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Ratings Light

2021-03-02 Thread Iigo

Hi, 

Since Ratings Light upgraded to v1.6.1 is not working anymore on my
system (piCorePlayer + LMS 8.1.1 on a RaspberryPi 3B).
Can't see anything in the server.log, only the message "Plugin failed to
load" in configurations Plugins page.

Any way to debug the issue?
Also, is previous version available somewhere to download?

Thanks



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=113344

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] LmsUpdate and LmsRepack - Synology 8.0.* packages

2020-12-13 Thread Iigo

Paul Webster wrote: 
> Rating Light
> https://forums.slimdevices.com/showthread.php?113344-Announce-Ratings-Light

That was it!
It works perfectly.

Thanks a lot.



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=111876

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] LmsUpdate and LmsRepack - Synology 8.0.* packages

2020-12-13 Thread Iigo

HI all,

Yesterday I moved my LMS instance from Synology to a Raspberry Pi 3B,
with piCorePlayer 7.0.0b6 64bits.

Data migration was easy, copying preferences from one web management to
the other and a simple python script to migrate stats (persist.db:
track_statistics (from TrackStat table) -> tracks_persistent).
In a couple of hours it was working correctly, good performance, great
usability.

But I've found an issue with the new system: added, lastPlayed,
playedCount and rating are correctly migrated by the script and I can
see the good values, but I can't find a way to set tracks rating
anymore.
With LMS material android package it shows a message saying a plugin is
needed, but not mention about which one.

I used TrackStat plugin in the Synology but as it's not available, I
downloaded and installed v3.3.602 manually.
But now LMS shows multiple problems: slowdowns, sporadic library
rescans, web unavailable during long times
("Plugins::TrackStat::Storage::refreshTracks (1242) TrackStat:
Synchronizing TrackStat data, please wait..."), etc.

Is there any other way/plugin to set tracks rating for LMS 8 without
TrackStat?
I think I read about a new plugin in one of the threads here some days
ago but I haven't been able to find it.

Thanks!



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=111876

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Announce: LMS mini-controller, written in golang

2020-06-25 Thread Iigo

Hi all


I'd like to present you 'lms.go' (https://hg.serna.eu/go/lms).

This is a tiny program/utility/library to interact with a Logitech Media
Server and execute some actions from the CLI or from other programs. It
should work at least on GNU/Linux machines. License is GPL 3+.

Lastly I've seen many libraries written in Python to manage LMS… well, I
even confess I wrote one some years ago.
As I'm learning -go- nowdays I thought this could be a nice project, and
nevertheless this code could be useful if anyone wants to create a
complete library in go to manage LMS.

In my case, I map some keybindings on my computer to execute different
tasks: toggle play/pause, volume up or down, and so on. Before I used my
old python-based library, which I substituted with this new one
go-based. Start times are faster.
You can see part of the configuration of my WM/DE (swaywm/i3) below
 .

Some use examples:


Code:


   $ ./lms server
  ServerInfo{192.168.2.10:9002 v7.9.2  [115days 9h43m22s  S:43472 A:611 L:3344 
G:92]  Players:3  Last scan: Tue, 23 Jun 2020 13:57:59}
  
   $ ./lms players
  Player{  Squeezebox Radio (baby) - 00:04:20:27:d2:b5 - 
192.168.2.212:40043 -  0% - stop - No repeat, No shuffle, 0/0}
  Player{  Marantz NR1504 (squeezelite) - 00:06:78:1b:ab:8d - 
127.0.0.1:47684 -  33% - stop - No repeat, No shuffle, 7/16}
  Player{  Squeezebox (boom) - 00:04:20:1e:b6:45 - 
192.168.2.211:37657 -  27% - play - No repeat, No shuffle, 45/135}
  
   $ ./lms status
  |Squeezebox   27%| Thalia Zedek Band: Do You Remember [“Liars and 
Prayers”] -  4:25/5:47  [46/135]
  
   $ ./lms song
  SongInfo{'Do You Remember' by Thalia Zedek Band (Liars and Prayers #3, 2008)  
PC: 10  Rating: 70  ID: 418766}
  
   $ ./lms playlist
  Squeezebox: 46/135
  Thalia Zedek Band: JJ85
  Thalia Zedek Band: House Of The Rising Sun
  Thalia Zedek Band: Eastern Hue
  Thalia Zedek Band: Next Exit
  Thalia Zedek Band: Lower Allston
   Thalia Zedek Band: Do You Remember
  Thalia Zedek Band: We Don't Go
  Thalia Zedek Band: Body Memory
  Thalia Zedek Band: Wind
  Thalia Zedek Band: Circa the End
  Thalia Zedek Band: Come Undone
  Thalia Zedek Band: Green and Blue
  Thalia Zedek Band: Stars
  
   $ ./lms help
  Usage of /home/inigo/devel/go/src/lms/lms [options] command
  
  -hShow help
  -imageviewer string
Image viewer program to display cover (default "eog")
  -nUse system notify to show result
  -player string
Player to use (default "Squeezebox")
  -url string
LMS URL and port (default "http://nas:9002;)
  
  Available commands: server, players, status, song, playlist, first, prev, 
next, power, pause, mute, volume [vol], cover, waybar, help
  



Note you can specify `-n` flag to display the output in the notification
system instead of using the terminal.


Code is on this repository: https://hg.serna.eu/go/lms


30837


  Extract of my *swaywm* configuration, where I bind some keys to
different LMS actions:

Code:


  
  # squeezebox
  mode "squeezebox" {
  bindsym sexec /opt/emacs/bin/emacsclient -e 
"(lms-float)"; mode "default"
  bindsym hexec --no-startup-id curl 
'http://nas:9002/settings/player/audio.html' --data-raw 
'saveSettings=1=_analogOutMode=2' -s >/dev/null; mode 
"default"
  bindsym Shift+h  exec --no-startup-id curl 
'http://nas:9002/settings/player/audio.html' --data-raw 
'saveSettings=1=_analogOutMode=0' -s >/dev/null; mode 
"default"
  bindsym qexec --no-startup-id ~/bin/lms -n power; mode 
"default"
  bindsym aexec --no-startup-id ~/bin/lms -n status; mode 
"default"
  bindsym iexec --no-startup-id ~/bin/lms -n song; mode 
"default"
  bindsym cexec --no-startup-id ~/bin/lms cover; mode 
"default"
  bindsym lexec --no-startup-id ~/bin/lms -n playlist; mode 
"default"
  bindsym mexec --no-startup-id ~/bin/lms -n mute; mode 
"default"
  bindsym XF86AudioMuteexec --no-startup-id ~/bin/lms -n mute; mode 
"default"
  bindsym Down exec --no-startup-id ~/bin/lms -n volume -5
  bindsym XF86AudioLowerVolume exec --no-startup-id ~/bin/lms -n volume -5
  bindsym Up   exec --no-startup-id ~/bin/lms -n volume +5
  bindsym XF86AudioRaiseVolume exec --no-startup-id ~/bin/lms -n volume +5
  bindsym Home exec --no-startup-id ~/bin/lms -n first; mode 
"default"
  bindsym XF86AudioPrevexec --no-startup-id ~/bin/lms -n first; mode 
"default"
  bindsym Left exec --no-startup-id ~/bin/lms -n prev; mode 
"default"
  bindsym XF86AudioRewind  exec --no-startup-id ~/bin/lms -n prev; mode 
"default"
  bindsym Rightexec --no-startup-id ~/bin/lms -n next; mode 
"default"
  bindsym XF86AudioForward  

Re: [SlimDevices: Plugins] Announce: lms.el - a squeezebox controller for emacs

2020-06-16 Thread Iigo

NEW VERSION 1.0.

Many enhancements, but more importantly, the whole code was rewritten to
use HTTP requests to LMS instead of a telnet connection as before.
This makes the controller more stable, robust, and faster.

30746
30745
30747
30748


+---+
|Filename: ss-20200616_202613.jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=30748|
+---+


Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=107769

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] HTTP requests to LMS with "hexifyed" parameters

2020-06-16 Thread Iigo

Finally problem was solved modifying the call to the API, json-encoding
all the data.
Thanks.



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=112400

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] HTTP requests to LMS with "hexifyed" parameters

2020-06-13 Thread Iigo

Roland0 wrote: 
> I doubt it - the JSON format doesn't support this.
> But couldn't you just escape it? This works for me:
> 
> > 
Code:

  >   > 
  > $ curl -H "Content-Type: application/json" -X POST -d 
'{"id":1,"method":"slim.request","params":["-", ["search", 0, 
10,"term:bj\u00f6rk"]]}' "http://odroidhc2:9000/jsonrpc.js;
  > 
{"result":{"contributors_loop":[{"contributor":"Björk","contributor_id":1665},{"contributor_id":1666,"contributor":"Björk
 Guðmundsdóttir & Tríó Gu"},{"contributor_id":3052,"contributor":"Maggie 
Bjorklund"}],"count":6,"contributors_count":3,"tracks_loop":[{"track_id":78532,"track":"Bjork
 - All Is Full Of Love"},{"track":"PJ + Vincent & Matthew + 
Bjork","track_id":80937}],"albums_count":1,"albums_loop":[{"album":"Björk 12\" 
Demo","album_id":3457}],"tracks_count":2},"method":"slim.request","id":1,"params":["-",["search","0",10,"term:björk"]]}
  > 

> > 

Thanks for the answer.
No, it's the same for the emacs library, it sees it as multibyte as well
and fails.
I've asked emacs developers.



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=112400

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] HTTP requests to LMS with "hexifyed" parameters

2020-06-13 Thread Iigo

Hi,

I am in the process of finishing the migration of my 'LMS emacs
controller'
(https://forums.slimdevices.com/showthread.php?107769-Announce-lms-el-a-squeezebox-controller-for-emacs)
to use HTTP requests instead of a telnet connection.
It's working smoothly, the code is simpler and more beautiful, but I've
found a problem when making requests passing UTF-8 encoded data, the
`url-retrieve` library in emacs does not accept multibyte parameters.

I've tried to replicate the requests using curl:
Case (a) works both with curl and with the equivalent elisp (emacs lisp)
code, (b) works with curl but not in elisp code (i.e., my issue).
So I tried "hexifying" the search parameter, as in (c) or (d), but LMS
doesn't like the query and does not return the proper answer, even with
curl.

Is there a way to indicate LMS HTTP server that data is hexifyed and it
needs to unhex before handling? f.e. using any special header in the
request or something?

I'm using LMS v7.9.2 in a Sinology DS215j

Thanks,
Iñigo


WORKS:
(a) 
Code:

$ curl -s -H "Content-Type: application/json" -X POST -d 
'{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX", 
["artists",0,10,"search:\'Bob Dylan\'"]]}' http://nas:9002/jsonrpc.js
  
  
{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX",["artists","0",10,"search:'Bob
 Dylan'"]],"result":{"artists_loop":[{"artist":"Bob 
Dylan","id":19929},{"artist":"Bob Dylan & The Band","id":19930},{"artist":"Bob 
Dylan & Neil Young","id":19931}],"count":3}}



(b) 
Code:

$ curl -s -H "Content-Type: application/json" -X POST -d 
'{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX", 
["artists",0,10,"search:\'Björk\'"]]}' http://nas:9002/jsonrpc.js
  
  
{"params":["XX:XX:XX:XX:XX:XX",["artists","0",10,"search:'Björk'"]],"result":{"count":1,"artists_loop":[{"id":19753,"artist":"Björk"}]},"method":"slim.request"}




DOES NOT WORK:
(c) 
Code:

$ curl -s -H "Content-Type: application/json" -X POST -d 
'{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX", 
["artists",0,10,"search:\'Bob%20Dylan\'"]]}' http://nas:9002/jsonrpc.js
  
  
{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX",["artists","0",10,"search:'Bob%20Dylan'"]],"result":{"count":0}}



(d) 
Code:

$ curl -s -H "Content-Type: application/json" -X POST -d 
'{"method":"slim.request","params":["XX:XX:XX:XX:XX:XX", 
["artists",0,10,"search:\'Bj%C3%B6rk\'"]]}' http://nas:9002/jsonrpc.js
  
  
{"result":{"count":0},"params":["XX:XX:XX:XX:XX:XX",["artists","0",10,"search:'Bj%C3%B6rk'"]],"method":"slim.request"}




Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=112400

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: lms.el - a squeezebox controller for emacs

2017-08-03 Thread Iigo

mherger wrote: 
> Haha! I knew this had to come. But I expected it years ago. Is it worth
> 
> learning emacs just for this?... :-)
> 
> Well, during last months my intentions were to write a ncurses front-end
> in python but a couple of weeks ago I saw that somebody was already
> started it... ;)
> [In fact I wrote 2 years ago a python mini-library to manage some
> squeezebox actions: play/pause/stop, set volume, prev/next song, etc
> from my windows manager.
> 
> And emacs lisp is funny and refreshing... once you get used to all those
> parenthesis... hehehe.
> You can look at the code... it's not worse than perl, that's for sure!
> :rolleyes:



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=107769

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Announce: lms.el - a squeezebox controller for emacs

2017-07-31 Thread Iigo

Hi,

I'm pleased to announce the first version of *lms.el*, a squeezebox
controller for emacs editor.
It is released under GPL version 3 license or later.

Some of the features:

-  Display song: title, artist, album, year, cover… 
-  Play, pause, stop, select next / previous song 
-  Control players: select player, power on/off, volume, repeat and
  shuffle modes 
-  Playlist control: list, select song, delete track, clear 
-  Show track information and change rating 
  
As today, July 31th, 2017, there are some missing features (like music
browsing or searching), but they will be added during next weeks (read
September as I will leave for holidays in a few days).
It is not aimed to be a complete controller, as it can’t - and won’t -
manage external sources such us BBC, Deezer, Pandora, Spotify, or TuneIn
Radio.

It requires emacs version 25 or higher.
Quick instructions: customize some basic parameters lms-hostname,
lms-telnet-port, lms-html-port, lms-username, lms-password and run it
with lms-ui. From there, you could read complete documentation after
pressing h key.

Code is stored in 'the BitBucket repository'
(https://bitbucket.org/inigoserna/lms.el) and it will appear soon on
'Emacs MELPA repository' (https://melpa.org)..

More information in the blog post:
https://inigo.katxi.org/blog/2017/07/31/lms_el.html.

Of course, any ideas, suggestions and comments will be well received.

23279 23280
23281 23283
23282


+---+
|Filename: lms.el-ss5.jpeg  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=23283|
+---+


Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=107769

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] announce: squeeze2upnp, a bridge between LMS and uPNP devices

2014-11-16 Thread Iigo

philippe_44 wrote: 
 https://github.com/philippe44/LMS-to-uPnP 
 
 NB: The makefile is pretty awful and it does not include a Windows
 version, especially to get libupnp compiled under C++ I had to do tiny
 changes to it, but if you use msvc, you are probably already fine. You
 also need pthread-win32

Thanks.
I've been able to compile it (Linux 64 bits, Fedora 20 and ArchLinux)
after downloading and compiling libupnp v1.6.19 manually and changing
some includedirs.
Btw, it crashed when running ./sql2u -h.

Now I can run it, but it makes logitechmediaserver very slow.
After a couple of hours looking at it, I think it is because I have
squeezelite program running and connected to the same LMS... not sure,
but maybe a conflict with MAC adresses identifying players?
After stopping squeezelite LMS keeps running slow.
I'll be doing more tests during next days.

Thanks and keep working on this!
Iñigo



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=102496

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] announce: squeeze2upnp, a bridge between LMS and uPNP devices

2014-11-16 Thread Iigo

philippe_44 wrote: 
 Thanks for the feedback - yes, at this point it is better to use the
 pre-build version as my makefile is not very pretty and not very
 convenient. The source code and the binary are up-always to-date on
 github
 About song information, this is one of these things that I'm trying to
 find an answer to because LMS does not provide them to me unless I grab
 them using the command line interface. But there is a timing issue I
 need to solve first. If you don't mind, I'd like to stabilize the main
 function of sq2upnp and then add this option (grab from LMS and forward
 all the meta-data to the uPNP player) later
 
 NB : you should not have to change the MAC address to make it work. I've
 corrected a few silly bugs, including the -h issue and you should use
 the current github version

I compiled the 64-bits version with default options.
Regarding MAC... You were right, I tested again with default address and
it works too.

Thanks again,
Iñigo



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=102496

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] announce: squeeze2upnp, a bridge between LMS and uPNP devices

2014-11-14 Thread Iigo

This looks awesome!!! Thanks for sharing.

I've been unable to find the source repository un github, could you
share the URL, please?

Thanks,
Iñigo



Iñigo's Profile: http://forums.slimdevices.com/member.php?userid=49912
View this thread: http://forums.slimdevices.com/showthread.php?t=102496

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins