Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
https://forums.slimdevices.com/showthread.php?112809-Pipe-Squeezelite-to-Icecast=1048789=#post1048789 Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Matt Drown wrote: > https://forums.slimdevices.com/showthread.php?112809-Pipe-Squeezelite-to-Icecast=1047446=1#post1047446 > I just setup LMS->Squeezelite->PulseAudio->PAREC->ICES w/ metadata on a > linux box, the handful of options, including the bash/curl commands to > pull song/artist to update metadata is listed. > Net results, LMS stream gets rebroadcast with metadata to a streaming > radio setup. Great, Thanks for this. :D I got it all up and running on windows for now. Will definitely look into this because my windows is running on a virtual box on my Mac. The ultimate goal would be a complete docker solution with Nginx or Apache reverse proxy with a Letsencrypt cert on the RPI4 8GB in front .Which for the most are running on the Windows Virtual Box for now. I think it's amazing how the PI can handle all this without overheating (I have 25+ docker containers running 24/7) Greetings Henk. Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
bpa wrote: > CLI is standard part of LMS. All the CLI commands & parameters are > integral part of LMS and used by all other UIs. Check WebUI > Settings/Advanced/Command Line Interface - see if it is enabled (it can > be disabled using a command line option to set port to zero) and the > port number in its settings (possibly changed from 9090) - don't know > about docker setup so perhaps port 9090 is not configured in Docker. > (offical Docker thread is the place for that question. > > I was think it might be better rather than have a loop in the Lua > script, have a Windows batch file which has a loop and a timeout - this > way ncat script is simple. > > Code: > > > loop: > ncat x > timeout > goto loop > > > > > The lua script would then just check (i) state of player - stop, > paused, playing and (ii) if playing get details. > > edit: > > Minor concern - I'm not sure if the the url_decode routine will fully > handle UTF8 encoding (e.g. accented characters, non Latin characters) Wow that was easy it's all running like i wanted it.:) I run the cmd file as a service with nssm. And don't look back:cool: All my tags already have UTF8. So no problem there I think. The app (also has an option for that) In the other answer someone has a complete linux base working with squeezeplay. So maybe i can eliminate windows all together. Big thank you again:p Greetings Henk Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Roland0 wrote: > > Code: > > curl -H "Content-Type: application/json" -X POST -d '{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2", ["status", "-", "1", "tags:al"]]}' "http://192.168.1.29:9000/jsonrpc.js; > > > will return artist/album/title (among others) as JSON, which you can > convert to plain text if your app cannot parse it > Nice, I wasn't aware of the "status" request. Put together a 'simple C program' (https://github.com/retired-guy/lmsstat) to dump this for the local device (RPi in my case). It will automatically find the LMS server, and the local device's MAC address. Result looks like this: Code: { "power":1, "playlist_timestamp": 1645401341.54365, "duration": 378, "mixer volume": 100, "playlist mode":"off", "player_name": "PiTouchMini", "player_connected": 1, "playlist_loop":[{ "url": "radioparadise://4-3.flac", "coverart": "0", "artist": "Enigma", "duration": "378", "artwork_url": "https://img.radioparadise.com/covers/l/B3XB8K.jpg;, "album":"The Screen Behind The Mirror", "year": "0", "remote": 1, "title":"Push the Limits", "buttons": { "rew": 0 }, "playlist index": 0, "id": "-1163321224", "bitrate": "820k VBR FLAC" }], "repeating_stream": "1688", "playlist_tracks": 1, "seq_no": 0, "rate": 1, "playlist_cur_index": "0", "player_ip":"192.168.68.111:41064", "remoteMeta": { "id": "-1163321224", "title":"Push the Limits", "artist": "Enigma", "duration": "378", "coverart": "0", "artwork_url": "https://img.radioparadise.com/covers/l/B3XB8K.jpg;, "album":"The Screen Behind The Mirror", "bitrate": "820k VBR FLAC", "url": "radioparadise://4-3.flac", "remote": 1, "year": "0", "buttons": { "rew": 0 } }, "time": 0, "digital_volume_control": 1, "current_title":"World/Etc Mix - FLAC Interactive", "remote": 1, "mode": "stop", "signalstrength": 0, "playlist repeat": 0, "playlist shuffle": 0 } piTouch™ w/JustBoom DigiHat -> RME ADI-2 DAC FS -> JBL 305P MkII monitors; LMS 8.2 on piCorePlayer/Pi 4; Material Skin. chicks's Profile: http://forums.slimdevices.com/member.php?userid=71798 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
https://forums.slimdevices.com/showthread.php?112809-Pipe-Squeezelite-to-Icecast=1047446=1#post1047446 I just setup LMS->Squeezelite->PulseAudio->PAREC->ICES w/ metadata on a linux box, the handful of options, including the bash/curl commands to pull song/artist to update metadata is listed. Net results, LMS stream gets rebroadcast with metadata to a streaming radio setup. Matt Drown's Profile: http://forums.slimdevices.com/member.php?userid=69476 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hellsblade wrote: > Thanks for the help :D. I hope you don't mind if I knock on your door a > couple of times. I think I will need a full install of LMS for looking > into the CLI code. It doesn't seem to exist in my docker container. I'm > diving into this tomorrow. I will also try to get this this working on > my raspberry pi because it runs 24/7. I can reach the windows machine > through SMB > > When I test my stream in AIMP its working. I also have shoutcast server > running which also picks it up now :cool: CLI is standard part of LMS. Check WebUI Settings/Advanced/Command Line Interface - see if it is enabled (it can be disabled using a command line option to set port to zero) and the port number in its settings (possibly changed from 9090) - don't know about docker setup so perhaps port 9090 is not configured in Docker. (offical Docker thread is the place for that question. I was think it might be better rather than have a loop in the Lua script, have a Windows batch file which has a loop and a timeout - this way ncat script is simple. Code: loop: ncat x timeout goto loop The lua script would then just check (i) state of player - stop, paused, playing and (ii) if playing get details. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
bpa wrote: > Just checked works OK on windows. > > To avoid defender etc. you can download the nmap zip file and from it, > just copy the ncat.exe and the two libraries libcrypto-1_1.dll and > libssl-1_1.dll all to a working directory. Thanks for the help :D. I hope you don't mind if I knock on your door a couple of times. I think I will need a full install of LMS for looking into the CLI code. It doesn't seem to exist in my docker container. I'm diving into this tomorrow. I will also try to get this this working on my raspberry pi because it runs 24/7. I can reach the windows machine through SMB When I test my stream in AIMP its working. I also have shoutcast server running which also picks it up now :cool: Thx again. Greetings Henk Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hellsblade wrote: > > I found a little more info using this command; > curl -v 'http://192.168.1.29:9000/jsonrpc.js' --data-raw > '{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2",["stop"]]}' > > Code: curl -H "Content-Type: application/json" -X POST -d '{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2", ["status", "-", "1", "tags:al"]]}' "http://192.168.1.29:9000/jsonrpc.js; will return artist/album/title (among others) as JSON, which you can convert to plain text if your app cannot parse it a more elegant solution would be to use 'LMS Event Trigger,' (https://www.nexus0.net/pub/sw/lmseventtrigger/) which can call any program with the player status as a param on a song change. Probably doesn't work on windows, though. 'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ... 'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ... Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Just checked works OK on windows. To avoid defender etc. you can download the nmap zip file and from it, just copy the ncat.exe and the two libraries libcrypto-1_1.dll and libssl-1_1.dll all to a working directory. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hellsblade wrote: > > Have to work on the output though; > :Title:08:00:27:6c:e1:a2 title Heat Miser :Artists: 08:00:27:6c:e1:a2 > artist Massive Attack :Album: 08:00:27:6c:e1:a2 album Spirits Of Nature > 2 > Should be; > Title: Heat Miser Artists: Massive Attack Album: Spirits Of Nature 2 > Following chnage does what you want. Code: -- Write out results in a one line curtitle = curtitle:sub(25,-1) curartist = curartist:sub(26,-1) curalbum = curalbum:sub(25,-1) f:write("Title:" .. curtitle .. " Artists: " .. curartist .. " Album: " .. curalbum ) f:flush() f:close() bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hellsblade wrote: > g me from running this executable (will work on that) > > Luckily i already have an installed nmap on my mac, so the command works > out of the box from there. > Have to work on the output though; > :Title:08:00:27:6c:e1:a2 title Heat Miser :Artists: 08:00:27:6c:e1:a2 > artist Massive Attack :Album: 08:00:27:6c:e1:a2 album Spirits Of Nature > 2 > Should be; > Title: Heat Miser Artists: Massive Attack Album: Spirits Of Nature 2 > > And the most important; because it's not part of the streaming process > itself, it needs a process that runs on title change so the file is > updated. > Maybe some radio broadcaster programs can do that, but that's a bit too > much for a hobby project. > Could maybe make a powershell script for that. > LUA is not my kind of language, but it keeps me busy :rolleyes: 1. It is proof of concept - to show access to LMS CLI and generate a text file with currently playing artist, album and title. 2. If you want notification on changes you use the CLI command "listen 1" - then unsolicited changes will be sent. The script then has to change into a loop whose action looks at strings received, waits for a "newmetadata" message, then does inquiry (look at LMS WebGUI /Help/Technical Information/Command Line Interface) 3. Lua - the scripts won't have to do complicated stuff and there are plenty of resources. I don't know Lua either - I just cobbled it together. KISS principle. http://lua-users.org/wiki/StringRecipes http://lua-users.org/wiki/SampleCode To get used to CLI, I'd advise play around using the "telnet" command - just make sure your commands end with CTRL/J - CLI will only respond t0 lines which end with CTRL/J and not "Return". bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
bpa wrote: > I haven't tested this on Windows. > > When run from a command prompt it generates log messages to console and > writes out to a file in /tmp "/tmp/cliresult.txt" Nice:o Windows defender was stopping me from running this executable (will work on that) Luckily i already have an installed nmap on my mac, so the command works out of the box from there. Have to work on the output though; :Title:08:00:27:6c:e1:a2 title Heat Miser :Artists: 08:00:27:6c:e1:a2 artist Massive Attack :Album: 08:00:27:6c:e1:a2 album Spirits Of Nature 2 Should be; Title: Heat Miser Artists: Massive Attack Album: Spirits Of Nature 2 And the most important; because it's not part of the streaming process itself, it needs a process that runs on title change so the file is updated. Maybe some radio broadcaster programs can do that, but that's a bit too much for a hobby project. Could maybe make a powershell script for that. LUA is not my kind of language, but it keeps me busy :rolleyes: Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
I haven't tested this on Windows. An alternative would be to use the "ncat" package (part of the nmap package ) https://nmap.org/ncat/ It is available for Windows and Linux. It is like the standard linux netcat/nc utility but has a built in a lua script engine. Attached is a sample lua script ( cli_status.lua 37268 ) uses LMS CLI port 9090 to get the current title,artist and album for a specified player (you need to edit to include your own MAC address) After renaming the attached script to just "cli_status.lua" The command is invoked by Code: ncat 9090 --lua-exec cli_status.lua When run from a command prompt it gerenates log messages to console and writes out to a file in /tmp "/tmp/cliresult.txt" +---+ |Filename: cli_status.lua.txt | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=37268| +---+ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
chicks wrote: > Not sure it can be done with a one liner, because you first need a path > to or id of the current song, then a second query gets the songinfo. > > I haven't coded with PowerShell in a while, but there's the > Invoke-Webrequest method that will allow you to post both queries, then > PS can easily parse the json return objects. > > Thx for the tip. Maybe my rusty Powershell knowledge can help me some :cool: Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Paul Webster wrote: > stream.mp3 is a real player. > When you connect to it you will see a new player appear in the list and > you can then queue songs to it So that URL seems to show up every now and then in LMS, if put the URL in the browser it shows as a html5 player, but then when i put a playlist in it of any kind its racing through all songs. If use it in the app it can be used as a network stream source, but then it says 200 ok and errorcode -1 every second. So it looks this stream.mp3 is not behaving like the progam is expecting. I only get some hackling bad quality sounds from it every now and then. How about the oneliner i'm looking for if I use squeezelite-x as a client for the program. It gives me the control I want and the the audio quality i want. Can it be done also? Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Not sure it can be done with a one liner, because you first need a path to or id of the current song, then a second query gets the songinfo. I haven't coded with PowerShell in a while, but there's the Invoke-Webrequest method that will allow you to post both queries, then PS can easily parse the json return objects. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.2 The queries are documented here: http://:9000/html/docs/cli-api.html Here's how I do it from an RPi in the C language: (mac is the macId of the player, tags is an optional list of tags to be returned) sprintf(query,"{"id":1,"method":"slim.request","params":["%s",["path","?"]]}",mac); post(host,port,query,decoded,2048); ... (grab the _path result from the returned json into a var named p) ... sprintf(query,"{"method":"slim.request","params":["%s",["songinfo",0,99,"url:%s","tags:%s"]]}",mac,p,tags); post(host,port,query,decoded,2048); ... (grab the name/value pairs from the returned json for album, artist, etc.) Here's a typical result: id=-1173897872 title=It's You or No One artist=Lurlean Hunter duration=191 samplesize=16 coverart=0 artwork_url=http://resources.tidal.com/images/66aeadee/09e1/43c4/ab0d/a007c1f240c2/1280x1280.jpg album=Lonesome Gal info_link=plugins/wimp/trackinfo.html type=FLAC bitrate=424kbps samplerate=44100 url=wimp://11062173.flac year=0 piTouch™ w/JustBoom DigiHat -> RME ADI-2 DAC FS -> JBL 305P MkII monitors; LMS 8.2 on piCorePlayer/Pi 4; Material Skin. chicks's Profile: http://forums.slimdevices.com/member.php?userid=71798 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
stream.mp3 is a real player. When you connect to it you will see a new player appear in the list and you can then queue songs to it Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Paul Webster wrote: > Is it this that you are trying to satisfy? > > https://manual.djsoft.net/radiocaster/en/metadata.html > > If you are rebroadcasting from a stream in LMS ... then it looks to me > like it could extract the metadata that LMS inserts into the stream.mp3 I started with that. Sounds logical. The program accepts the url (i think), but its shows no info. Does this stream work with "Icy-MetaData: 1" ? How does LMS know which stream to catch in the /stream.mp3? Because I have more than one player in my network. Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Is it this that you are trying to satisfy? https://manual.djsoft.net/radiocaster/en/metadata.html If you are rebroadcasting from a stream in LMS ... then it looks to me like it could extract the metadata that LMS inserts into the stream.mp3 Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
bpa wrote: > What OS is this little program going to run on Linux, PCP, MacOS, > Windows ? > What are your capabilities: None, Perl, Python, VB, bash etc. Hi, Its running on Windows: programming capabilities are very limited, but i'm not scared to try something :o Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hellsblade wrote: > I need a line for a program called radiocaster it can point to an URL or > a txt file to show artist title info in the stream it catches from audio > output (which has no info) or even a networksource. What OS is this little program going to run on Linux, PCP, MacOS, Windows ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hi michael, I need a line for a program called radiocaster it can point to an URL or a txt file to show artist title info in the stream it catches from audio output (which has no info) or even a networksource. I found a little more info using this command; curl -v 'http://192.168.1.29:9000/jsonrpc.js' --data-raw '{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2",["stop"]]}' It controls my player play/stop. Is there also command to only show the current song from that player?? But since I don't know any of the parameters I don't know how to proceed I use squeezelite-x as a client and the material interface. Greetings, Henk NB: Thx for the help on my ID3tag problem the other day. Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
I need a one line URL to get the now playing song and artist info. What kine of one liner do you need? A URL? A script returning data in a specific format? What's going to execute the one line, and what is consuming it? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] Oneliner to get currentsong or now playing artist + songtitle on specific player
Hi, I have been wading through this forums vast content, but can not seem to find a working answer. I need a one line URL to get the now playing song and artist info. When I try this http://192.168.1.29:9000/status.html#currentsong. I still get the complete server xml/html. I know i need to include the mac address of the player, but the syntax is not clear to me. Is it possible? Or should I maybe use the CLI interface to make a txt file I can scan? If yes, some good pointers in the right direction would be greatly appreciated. Thanks in advance. Henk Hellsblade's Profile: http://forums.slimdevices.com/member.php?userid=4283 View this thread: http://forums.slimdevices.com/showthread.php?t=115989 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter