Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

has anyone used an amazon alexa device to send tcp strings to tcl socket listeners?

251 views
Skip to first unread message

two...@gmail.com

unread,
Jun 24, 2017, 11:35:38 PM6/24/17
to
I bought the amazon echo and would like to leverage that to do scripting on my home lan. For example, I have windows, android, and raspberry pi computers that each runs a tcl socket listener. I then can send tcl code to any of my dozen computers and have that code exec'd. I wrote an androwish tcl/tk app that lets me shutdown many of my computers by sending tcl scripts.

I'd like to use the amazon echo so I could send scripts by voice command, but I don't know how to program that platform. It would be really cool if there was an alexa skill, say, that let me create text strings that could then be sent to my several computers over a tcp socket and then my tcl servers could exec those strings.

Any thoughts on this?

(I know, this would probably be considered a security nightmare for some, but not me - I have a great firewall, and security by obscurity).

Matthew Hiles

unread,
Jun 26, 2017, 8:10:25 AM6/26/17
to
I'm also interested in scripting with Tcl and Alexa. I haven't dug in too much , but I believe these links are good places to start:

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/getting-started-guide

and

https://core.tcl.tk/tclws/index

Gerald W. Lester

unread,
Jun 26, 2017, 9:00:23 AM6/26/17
to
While, with a little playing, TclWs can be used for calling RESTful services
(see the FreshBook Tcl API), it can not (at this time) be used easily for
creating a RESTful service.

You are likely better off starting with the httpd package (Tcl Core package)
and the JASON packages out of TclLib

--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+

gtil...@conncoll.edu

unread,
Apr 15, 2018, 4:04:09 PM4/15/18
to
On Saturday, June 24, 2017 at 11:35:38 PM UTC-4, two...@gmail.com wrote:
Hi, I was just wondering if you were ever able to solve this issue. I am currently trying to do the same thing and send a text string to a socket(via alexa) so I could read that message back from an xcode application but have not found anything helpful.
0 new messages