Search found 12 matches
- Wednesday 20 April 2022 21:11
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
I have never got the script working with perfect synchronization of all connected players. Sometimes they worked and most of the time one or two lost part of the sound. Probably due to a not so good WIFI connection. So what I do now is call the script multiple times, for each player once. That works ...
- Tuesday 19 April 2022 20:23
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Here you go. Use it at your own risk. #!/usr/bin/perl # Plays a text-to-speech (TTS) alert on a Squeezebox, temporarily interrupting any music that's playing and then restoring # An optional pre-chime doodle is played to first get our attention # THIS VERSION ASSEMBLES/DISASSEMBLES TEMPORARY ...
- Wednesday 02 February 2022 13:14
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Well, if somebody can use this, feel free to contact me.
This is more a 'hack' then probably good Perl programming.
And as such maybe not suitable as a public example, without a review.
This is more a 'hack' then probably good Perl programming.
And as such maybe not suitable as a public example, without a review.
- Wednesday 02 February 2022 12:21
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Got it working. Before the rest of the code in the sub, I test which players are seen (and connected!) by LMS with <serverstatus>. Those players go into a new array @players2, which is then used by the rest of the sub. To prevent a further crash of the script it's also needed to check if a player ...
- Tuesday 01 February 2022 20:59
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Do you know if there is a way to 'catch' this error in Perl?
Now it just exits the script with an error in the shell.
I mean, the errors which break the script like <serverstatus> or <connected> when the player is forgotten.
Now it just exits the script with an error in the shell.
I mean, the errors which break the script like <serverstatus> or <connected> when the player is forgotten.
- Tuesday 01 February 2022 20:17
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
First of all, thank you for the scripts! They are excellent examples to work from. I use them with Domoticz to play announcements in the house for certain events. Like door bell, garage door opens/closes, etc. Very useful. I thought I had a solution with the <playerid> connected ? command. This ...
- Tuesday 01 February 2022 19:27
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Thanks for the pointer, I can work with that.
Are the RPC commands available the same as explained in the LMS webpages technical information -> Command Line Interface?
Are the RPC commands available the same as explained in the LMS webpages technical information -> Command Line Interface?
- Tuesday 01 February 2022 16:36
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Thanks for your reply. I can't change the fact that some of the players I have will be switched off at some moment in time. What would be ideal is to test the @players array first for which players are online according to LMS. Then (re)fill the @players array with the switched-on players and then ...
- Tuesday 01 February 2022 13:09
- Forum: Other questions and discussions
- Topic: Logitech Media Server
- Replies: 409
- Views: 86852
Re: Logitech Media Server
Hi, I use the second variant (sync groups ) of the Perl script on: https://www.domoticz.com/wiki/Logitech_Media_Server Had to use the JSON Legacy Client version. LMS is running at a different machine then Domoticz. Everything works ok, except when I switch one of 3 squeezebox players I use, to off ...
- Friday 21 January 2022 14:54
- Forum: LUA
- Topic: What is the cause of this error?
- Replies: 6
- Views: 1521
Re: What is the cause of this error?
Ah, I understand now.
Changed the option to 'device' and that fixed it. No more errors in the log.
Thanks!
Changed the option to 'device' and that fixed it. No more errors in the log.
Thanks!
- Friday 21 January 2022 11:28
- Forum: LUA
- Topic: What is the cause of this error?
- Replies: 6
- Views: 1521
Re: What is the cause of this error?
Thanks for your reaction. That's the funny thing. The error is seen every minute in the log, but the script only runs when the Door bell (Deurbelknop_achter) is pushed. The second device (Silence) is a 'normal' toggle switch in Domoticz, which prevents the os.execute script to run at times when ...
- Thursday 20 January 2022 18:54
- Forum: LUA
- Topic: What is the cause of this error?
- Replies: 6
- Views: 1521
What is the cause of this error?
Lua newbie here. The script works but generates every minute an error in the log. Not sure why. This error: 2022-01-20 18:45:00.931 Error: EventSystem: in Achterdeurbel_trigger: [string "-- ..."]:8: attempt to index a nil value (global 'devicechanged') Is generated bij this script: -- -- Script ...