News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

broadcast message

Started by painy, August 21, 2010, 10:18:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jitterjames

#15
QuoteAlso, which lines would i need to add to the python script so the results with a rating lower then a set value, say three stars, wouldn't be added to the results?

open up the python script.

and add

searchfor = searchfor+ ' and Rating>"60"'

just before the line
searchstring = searchterm+' like '+searchfor+' order by random() limit '+maxresults


edit: actually, I'm not 100% sure about this because >"60" doesn't really make sense... I'd have to experiment a bit.

jitterjames

here's the volume
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
    <Macro Name="set volume to payload" Expanded="True">
        <Event Name="Broadcast.Set Volume" />
        <Event Name="Set Volume" />
        <Action>
            EventGhost.PythonScript(u'payload = eg.event.payload\neg.plugins.System.SetMasterVolume(int(payload), 0)\n\n\n   ')
        </Action>
    </Macro>
</EventGhost>