Send/Expect plugin beta testers requested

1,115 views
Skip to first unread message

David Stone

unread,
Jan 5, 2014, 7:50:45 PM1/5/14
to tas...@googlegroups.com
Hello,

I've been developing a Tasker plugin and would appreciate any testing and feedback.

Send/Expect is a TCP application for Android 2.3.3 and up, with Tasker plugin support.  It provides for a configurable TCP client based conversation with a TCP server.  On the sending side, normal text and character escapes are supported.  On the receiving side, Java regular expressions.

The Tasker integration allows for configuration and execution as a  synchronous Task.  In upcoming releases I plan on added Tasker variable support both on the send and expect side.

It can be found at:


This is a trial version which will expire 7 days after the installation.

Thank you,

David Stone

David Stone

unread,
Jan 6, 2014, 1:57:43 AM1/6/14
to tas...@googlegroups.com
I just posted an updated version (Send/Expect-1.0.1) with a couple of cosmetic changes:

Fixed problem with success toast.
Made empty spinner un-clickable.

It can be downloaded here:

Pent

unread,
Jan 6, 2014, 2:05:37 AM1/6/14
to tas...@googlegroups.com
Hi David,

if you let me know when it's on Play Store I'll add to the builtin plugin list (if the ratings
aren't dire :-))

Pent

David Stone

unread,
Jan 6, 2014, 2:22:12 AM1/6/14
to tas...@googlegroups.com
Hello Pent,

Thanks.  I will let you know.

David

Rob Marros

unread,
Jan 21, 2014, 2:35:39 PM1/21/14
to tas...@googlegroups.com
David,

Thanks for developing this app.  I have been playing around with it and been happy with the functionality, do you know when you expect variable support in Tasker?

Thanks!
Rob

David Stone

unread,
Jan 21, 2014, 8:05:22 PM1/21/14
to tas...@googlegroups.com
Hello Rob,

I will try to get a release version on to the Google play store within the next couple of weeks.  The underwhelming response to the beta caused me to take my time a bit, and I got distracted learning about how broken Java regex handling is.

David

Pent

unread,
Jan 22, 2014, 2:48:29 AM1/22/14
to tas...@googlegroups.com

I will try to get a release version on to the Google play store within the next couple of weeks.  The underwhelming response to the beta caused me to take my time a bit,

Don't lose heart, there are probably only a few hundred people read the forum regularly enough to have seen your post. There are many hundreds of millions of Play Store users.

Pent

John Atkinson

unread,
Jan 26, 2014, 6:49:57 PM1/26/14
to tas...@googlegroups.com
Thanks, this is perfect for listening for a specific event from XBMC over direct TCP. If you are able to coerce received data into a Tasker variable though, that would be even better.
Thank you

David Stone

unread,
Jan 26, 2014, 6:57:55 PM1/26/14
to tas...@googlegroups.com
That's good to hear.  I am just about done with Tasker variable support.  I am hoping to get another beta out, or perhaps even the first released version, by the weekend. 

David Stone

unread,
Feb 3, 2014, 2:48:12 AM2/3/14
to tas...@googlegroups.com
On Sunday, January 26, 2014 3:57:55 PM UTC-8, David Stone wrote:
That's good to hear.  I am just about done with Tasker variable support.  I am hoping to get another beta out, or perhaps even the first released version, by the weekend. 

Here a new beta of Send/Expect, with Tasker plugin support:


This is a trial version that expires 7 days after the initial installation.

The main feature of this version is Tasker variable support.

Tasker variable substitution is supported in send strings (normal Tasker syntax, eg. %BATT)

Tasker local variable creation is supported in expect  regular expressions, using the same syntax as the AutoVoice plugin.  Example:

     (?<first>[a-z]*)([0-9])(?<last>.*)

If it matches, it will put capture group \1 into a Tasker local variable named %first, and capture \3 in a Tasker variable named %last

Next version from here, I am planning to push into the Google Play store.

Comments invited.

David

signal15

unread,
Apr 5, 2014, 1:40:20 PM4/5/14
to tas...@googlegroups.com
Any word on when this will be available in the store?

David Stone

unread,
Apr 6, 2014, 10:11:47 PM4/6/14
to tas...@googlegroups.com
On Saturday, April 5, 2014 10:40:20 AM UTC-7, signal15 wrote:
Any word on when this will be available in the store?

I've just put it out there:


Also, there is a trial version available at:

Ivan Verdonck

unread,
May 5, 2014, 5:49:38 AM5/5/14
to tas...@googlegroups.com
Hello David,

Great app!

Just have a question about variables in an expect return:

Stand-alone Test
Settings:
Target:10.0.1.20
Port:23
Timeout:10

SEND status, variableset, 5\n
EXPECT VariableSet 5, (?<myvar1>.+)

My Log FILE:
Start
Connection
Expect Matched
VariableSet 5,8.100
Capture Group
myvar1 matched 8.100
Disconnect
So far it seams to do what i want, extract the 8.100 value.
But in Tasker i dont get it to my variable.

My Tasker Task:
Variable Add
Name %myvar1 Value 1
Send/Excpect
configuration sendexpect://10.0.1.20:23/... (same as in stand-alone)
Popup
Text %myvar1

I never get the value in myvar1, is always stays the initial value 1.
I tried using a global variable, but it always gives an error when i enter a capital.

How do i use this variable function? to fill a tasker variable?

Thanks,
Ivan Verdonck

Pent

unread,
May 5, 2014, 6:20:21 AM5/5/14
to tas...@googlegroups.com
I added an entry to Tasker's in-app suggested plugins list.

Pent

David Stone

unread,
May 5, 2014, 10:16:54 AM5/5/14
to tas...@googlegroups.com
On Monday, May 5, 2014 2:49:38 AM UTC-7, Ivan Verdonck wrote:
Hello David,

Great app!

Thanks.
 

Just have a question about variables in an expect return:
...

My Tasker Task:
Variable Add
Name %myvar1 Value 1
Send/Excpect
configuration sendexpect://10.0.1.20:23/... (same as in stand-alone)
Popup
Text %myvar1

I never get the value in myvar1, is always stays the initial value 1.
I tried using a global variable, but it always gives an error when i enter a capital.

Global variables are illegal for an action plugin to push into Tasker.  Send/Expect uses a Tasker utility method to audit variable names for validity.
 

How do i use this variable function? to fill a tasker variable?

What is the Tasker timeout value for the Send/Expect action?  If it is 0, then Tasker will run the the plugin asynchronously and your variable won't yet be populated when  the Popup action runs.  Try setting the Tasker timeout to a value larger than the Send/Expect internal timeout.

Just yesterday, I had spent a little time making this more clear by adding it to the Tasker Integration section of help, and by also adding a "Setting Tasker Variable" debug log record.  This will show up in the next update (1.0.8).  But thinking about this further, perhaps the debug log should also contain absolute timestamps instead of  or in addition to the existing relative timestamps.  Then one could correlate them to timestamps elsewhere.  

David

David Stone

unread,
May 5, 2014, 10:19:06 AM5/5/14
to tas...@googlegroups.com
On Monday, May 5, 2014 3:20:21 AM UTC-7, Pent wrote:
I added an entry to Tasker's in-app suggested plugins list.


Thank you Pent.  I was close to coming back here and making an official announcement.   I guess it is time to do so.   And also steer Send/Expect support to its own forum.

David 

David Stone

unread,
May 5, 2014, 10:48:27 AM5/5/14
to tas...@googlegroups.com
On Monday, May 5, 2014 7:16:54 AM UTC-7, David Stone wrote:
On Monday, May 5, 2014 2:49:38 AM UTC-7, Ivan Verdonck wrote
How do i use this variable function? to fill a tasker variable?

What is the Tasker timeout value for the Send/Expect action?  If it is 0, then Tasker will run the the plugin asynchronously and your variable won't yet be populated when  the Popup action runs.  Try setting the Tasker timeout to a value larger than the Send/Expect internal timeout.

Slight correction...substitute "None" for "0" in the explanation above.

David

Ivan Verdonck

unread,
May 6, 2014, 5:54:36 PM5/6/14
to tas...@googlegroups.com

Thanks David,

Changing the timeout did work. Now everything works like I wanted.

If u mention this in the help like u suggested it would help.

Thanks for te quick help, and thanks again for the app.

Op 5 mei 2014 16:48 schreef "David Stone" <ds.an...@asif.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/T4ERnYrTnmE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages