Is there a way for TW5 to DO something?

274 views
Skip to first unread message

JWHoneycutt

unread,
Jan 22, 2017, 2:02:50 PM1/22/17
to TiddlyWiki
Can I have a TW5 condition make my IPhone vibrate, or provide stimulus for an IFTTT recipe?

Has anybody done anything like this? If so, how did they develop the "Socket"?

Thanks for your consideration.

JWHoneycutt

PMario

unread,
Jan 22, 2017, 8:00:23 PM1/22/17
to TiddlyWiki
On Sunday, January 22, 2017 at 8:02:50 PM UTC+1, JWHoneycutt wrote:
Can I have a TW5 condition make my IPhone vibrate,

No, because Safari browser doesn't support it: http://caniuse.com/#feat=vibration
 
or provide stimulus for an IFTTT recipe?

Triggering an event should be possible, but you need to manage a private key, which needs to be kept ... "private". And it may not be possible from file:// URIs, due to browser security restrictions.


What's your usecase?

-m

David Gifford

unread,
Jan 23, 2017, 11:18:22 AM1/23/17
to TiddlyWiki
Please let me know when TiddlyWiki develops enough to do my ironing.

Xavier Cazin

unread,
Jan 23, 2017, 12:23:28 PM1/23/17
to tiddl...@googlegroups.com
Hi JWHoneycutt,

Too bad
​that ​
you got an iPhone instead of an Android-based
​device;-) For the luckier ones
​:​
provided that

  1. Termux and Termux:API are installed
  2. Termux has been given permission to access the various phone features,​
  3. you have a TiddlyWiki running in NodeJS mode on Termux,
you can to do things like:

inotifywait -e modify \$__StoryList.tid && termux-vibrate

which does make your phone vibrate if the story river is modified
​, or​


inotifywait -e modify $(grep -rlE "tags:.*monitored" *) && termux-tts-speak -s 
​ALARM​
"Hey, you just changed a monitored
​tiddler!"

​which tells you if any tiddler tagged "monitored" is modified.​ Sending SMSes or changing the TV channel are left as an exercise :-)

​Cheers,​

X.

-- Xavier Cazin

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/cc90fd7f-560b-401f-8904-b92afe1f00ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JWHoneycutt

unread,
Jan 23, 2017, 6:27:42 PM1/23/17
to TiddlyWiki
Hi Mario, 

I am working on facial recognition - and would like a database (possibly in TW5) to have the ability to do any of various tasks:

Read me my emails when I look into the mirror (and read you yours)
Lock the door or vibrate my IPhone when my alzheimer's grandparent tries to leave the premises
Notify me when a particular individual came to my front door
etc.

The database contents are not well defined, and (as I learn TW5) I like the ability to modify on the fly. I am going to a conference in March, and would like to have pre-loaded data on the participants, so I am importing their research publications and prepping tailored discussion questions.

So use case is not well established (yet).

JWHoneycutt

PMario

unread,
Jan 23, 2017, 9:26:00 PM1/23/17
to TiddlyWiki
Hi,

As I wrote. The problem is, that TW is a browser based app and if the browser / browser vendor doesn't support the WEB-APIs, that we need, we are pretty much helpless.

iOS is a "walled garden" in this respect, since Apple controls it and pretty much locks everything down, that may be able to cut their profit.

-m

JWHoneycutt

unread,
Jan 24, 2017, 12:35:24 AM1/24/17
to TiddlyWiki
Hi Mario,

Thank you for the answer - that is my concern. I have an app that works for IOS, but am limited in it's output to the physical world.

JWH 

Jed Carty

unread,
Jan 24, 2017, 10:29:40 AM1/24/17
to TiddlyWiki
I am looking into using the node version of tiddlywiki as one interface for controlling a robot that runs using node. I am not there yet, but it may be a worthwhile idea for you to look into also.
Reply all
Reply to author
Forward
0 new messages