[ANSWERED] Cynical Network from a Plugin

Posted on
Sat Apr 05, 2014 7:22 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

[ANSWERED] Cynical Network from a Plugin

I am investigating the possibility of creating a Squeezebox Plugin. I have successfully sent commands to my Squeezebox server using Cynical Network > TCP Out.

What I would like to do is send these commands from a Plugin. Is this possible and if so how should I go about it?

TIA :)
Last edited by autolog on Mon Apr 07, 2014 3:37 pm, edited 1 time in total.

Posted on
Mon Apr 07, 2014 11:16 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Cynical Network from a Plugin

The answer is Yes it is possible and this is how you do it :wink:

Example code:
Code: Select all
plug = indigo.server.getPlugin("org.cynic.indigo.network")
if plug.isEnabled():
    plug.executeAction("sendtext", DEVICE_ID, props={"text":"COMMAND TEXT","partial":"no"})


Documentation is under Scripting Indigo Plugins for future reference (mainly mine!) :)

Posted on
Mon Apr 14, 2014 4:37 pm
cconrad offline
Posts: 37
Joined: Apr 07, 2013
Location: Madison, WI

Re: [ANSWERED] Cynical Network from a Plugin

I have five squeezeboxes. Love them! Autolog, I'm so excited to hear that you're considering a plugin for this. Please let me know if I can help in any way.

Posted on
Tue Apr 15, 2014 6:15 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: [ANSWERED] Cynical Network from a Plugin

cconrad wrote:
I have five squeezeboxes. Love them! Autolog, I'm so excited to hear that you're considering a plugin for this. Please let me know if I can help in any way.

You have prompted me into action :D

I have started a new thread here (a more appropriate sub-forum) to discuss the upcoming plugin :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests