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.

Speak Tasker Variables

If you have a question or need help, this is the place to be.
Post Reply
EdDarby
Posts: 2
Joined: Mon Apr 27, 2015 11:37 am

Speak Tasker Variables

Post by EdDarby »

Hi, I'm new here, just got to say that I love eventghost, I am having trouble with something I am trying to achieve and wondered if anyone could help me out.

I have googled like crazy and still can't seem to find an answer.

All I want to be able to do is have eventghost read aloud a variable sent from Tasked, every search I have done says to use Autoremote but that just seems like an unnecessary step IMHO, I'm probably wrong tho ;)

I have a profile set up in tasker that parses the current weather conditions from a website and then writes them to a variable within tasker called %CONDITIONS.

I can then use http get in tasker to send that to eventghost as an event, then I would just like eventghost to read out that event. E.g the event is prefixed Http.speech 'partly cloudy' I've tried {eg.event.payload} and {eg.event.suffix} but with no joy as yet :(

I am currently learning python so I can do this for myself but wondered if anyone could help?
ThePianistop66
Posts: 7
Joined: Sun Apr 26, 2015 2:30 am

Re: Speak Tasker Variables

Post by ThePianistop66 »

I have no idea how to do it without autoremote, but I can tell you autoremote is an amazing plugin and is very easy to use. You can try the free version to see if it's good for you. With autoremote you would just do an action on tasker:
Send message: say=:=%CONDITIONS

Then in eventghost the event would be AutoRemote.Message.say
The say action would be something like eg.event.payload.arcomm (I can't give you the full command because I don't know python programmation and I'm still not an expert in eventghost
Javier
Experienced User
Posts: 73
Joined: Sun Dec 01, 2013 3:45 pm

Re: Speak Tasker Variables

Post by Javier »

The UDP sender plugin for tasker will work with the eventghost Broadcaster plugin.
Set the text in udp sender to yourevent&&payload with payload being the variable you would like to send

Copy and paste this into the eg macro

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700">
    <Action>
        EventGhost.PythonScript(u"eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, eg.event.payload, 0, 100)")
    </Action>
</EventGhost>
EdDarby
Posts: 2
Joined: Mon Apr 27, 2015 11:37 am

Re: Speak Tasker Variables

Post by EdDarby »

Thank you both for your help :)

I've now tried both ways and they both have their merits but I can see that Autoremote is going to be the best solution due to it's flexibility.

Thanks again.
Post Reply