Hi CT,
Give this a go:
state = eg.plugins.SqueezeboxServer.Player_State() #doing this should set the state variable to the value returned by the plugin rather than creating an event
print "Squeezebox state: " + state # used to debug what the above line is returning
if state= "Player Stopped ...
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Search found 6 matches
- Sun Mar 20, 2016 3:21 am
- Forum: General Support
- Topic: Python Scripting and Triggered Events
- Replies: 8
- Views: 4289
- Tue Mar 15, 2016 11:02 pm
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86372
Re: MQTT Client
Nope, I missed (missunderstood on first read) that step. It's now working. Thanks for the reply.
- Tue Mar 15, 2016 12:42 pm
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86372
Re: MQTT Client
Hi krambriw,
I'm having problems with updating to the Paho MQTT plugin using step 2. I create a new configuration in EG ok, but when I then try and add the new plugin to the config EG just hangs, so it looks like even doing the less fun step 1 method wouldn't work for me either. I've reverted ...
I'm having problems with updating to the Paho MQTT plugin using step 2. I create a new configuration in EG ok, but when I then try and add the new plugin to the config EG just hangs, so it looks like even doing the less fun step 1 method wouldn't work for me either. I've reverted ...
- Mon Mar 14, 2016 7:45 am
- Forum: General Support
- Topic: Python Scripting and Triggered Events
- Replies: 8
- Views: 4289
Re: Python Scripting and Triggered Events
Hi,
I'm no Python expert, just learning it myself. But I thought perhaps you could have both of the events that the plugin creates trigger the macro that contains your script as an action, then in the script use eg.event to evaluate which event was triggered and act accordingly. For example ...
I'm no Python expert, just learning it myself. But I thought perhaps you could have both of the events that the plugin creates trigger the macro that contains your script as an action, then in the script use eg.event to evaluate which event was triggered and act accordingly. For example ...
- Thu Feb 18, 2016 7:54 am
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86372
Re: MQTT Client
Hi,
Is there any chance you can add authentication into this plugin? I'm currently running it with a MQTT broker running in my LAN, but I would like to use it with adafruit.io too, and this requires authentication.
Kind regards,
Luke
Is there any chance you can add authentication into this plugin? I'm currently running it with a MQTT broker running in my LAN, but I would like to use it with adafruit.io too, and this requires authentication.
Kind regards,
Luke
- Sun Jan 11, 2015 5:11 pm
- Forum: Plugin Support
- Topic: PushBullet plugin (Pako)
- Replies: 498
- Views: 196001
Re: PushBullet plugin (Pako)
My thanks too Pako. This plugin rocks and i'm missing it already. 