[tw5] creating tw5 data using ifttt with some issues

184 views
Skip to first unread message

simon.ei...@vol.at

unread,
Dec 17, 2014, 8:19:09 AM12/17/14
to tiddl...@googlegroups.com
Hi all,

i guess ifttt seems not the right service to create data for tw5. at
least not when you use data from a rss feed.

Just tried with some awekas data:

{
"text": " Zizers 13:31\n\nDecember 17, 2014 at 01:31PM\n\n<img
src="http://ift.tt/1BXQLF1" width="20" height="20" border="0" >
<b>Zizers:</b> 560 m - <img src="http://ift.tt/139Ks2c" border="0">
partly cloudy - temperature: 7.3 °C - 71% - air pressure: 1010 hPa -
Wind: 10.9km/h - direction: S - local time: 13:31 updated: 13:31",
"title": " Zizers 13:31 (December 17, 2014 at 01:31PM)"
},

{
"text": " Pasiano di Pordenone 13:31\n\nDecember 17, 2014 at
01:31PM\n\n<img src="http://ift.tt/1BXQOkj" width="20" height="20"
border="0" > <b>Pasiano di Pordenone:</b> 13 m - <img
src="http://ift.tt/139Kszb" border="0"> sunny sky - temperature: 15.3
°C - 75% - air pressure: 1012.9 hPa - Wind: 0km/h - direction: NW -
local time: 13:31 updated: 13:31",
"title": " Pasiano di Pordenone 13:31 (December 17, 2014 at
01:31PM)"
},

i guess you have found the issue. the html stuff with the ".
haven't found a way yet with ifttt or something search/replace thing
to get rid of that.
tried using a normal text editor.

anyone has a better idea?

i have the same problem with another feed as well but there i just
have issues when it has a " in the title of the feed. which i can get
over with so i just loose some feed entries which i can live with.

maybe i might need to take the wiki apart to get the data in. *smile*

greetings,
simon

Andreas Hahn

unread,
Dec 17, 2014, 8:40:40 AM12/17/14
to tiddl...@googlegroups.com
Am 17.12.2014 14:18, schrieb simon.ei...@vol.at:
> i guess you have found the issue. the html stuff with the ".
> haven't found a way yet with ifttt or something search/replace thing
> to get rid of that.
> tried using a normal text editor.
>
> anyone has a better idea?
>
> simon
>
Hey Simon,

are you looking for a way to import an RSS feed once or do you want to
automatically import a feed based on a timer?

/Andreas

simon.ei...@vol.at

unread,
Dec 17, 2014, 8:47:33 AM12/17/14
to tiddl...@googlegroups.com
hi,

basically i want to import that once.
but the thing is that those feeds get cleaned up after a while.
so i thought to archive stuff i might use tw and to also search it.
though that might work if i replace all the " in the pics with '.

at the moment i try to do something that doesn't work. *smile*
at least not that i have figured out.


greetings,
simon
> --
> 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+...@googlegroups.com.
> To post to this group, send email to tiddl...@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
>For more options, visit https://groups.google.com/d/optout.

--
Simon Eigeldinger
simon.ei...@vol.at

stevesuny

unread,
Jun 8, 2015, 12:20:47 PM6/8/15
to tiddl...@googlegroups.com

I'm looking for a way to import a feed based on a timer, or to import based on a trigger using IFTTT. Need some way to generate tiddlers automatically by those not using tiddlywiki. Any ideas?

//steve.

Danielo Rodríguez

unread,
Jun 8, 2015, 12:29:59 PM6/8/15
to tiddl...@googlegroups.com
Are you able to decide the order of Te fields? If so, just put the text at the end without field name and with one line break before. Something like :


Title: hello
Tags: something

The text here. With everything you want, even "quotes"

Jeremy Ruston

unread,
Jun 9, 2015, 1:06:54 PM6/9/15
to TiddlyWiki
Hi Steve

On Mon, Jun 8, 2015 at 5:20 PM, stevesuny <stev...@gmail.com> wrote:
I'm looking for a way to import a feed based on a timer, or to import based on a trigger using IFTTT. Need some way to generate tiddlers automatically by those not using tiddlywiki. Any ideas?

That kind of thing would be very straightforward if you were running under Node.js, but I'm guessing you're working with the single file configuration?

If so, there is an approach that may be worth exploring: one could write a plugin that on startup looks for a file called "BlahBlah 1.json" in the same folder as the HTML file, and if it finds it, import the tiddlers and look for "BlahBlah 2.json", and so on, stopping when it comes to a missing file. Assuming IFFTT can generate files with an increasing index.

Best wishes

Jeremy.






 

//steve.


On Wednesday, December 17, 2014 at 8:40:40 AM UTC-5, Andreas Hahn wrote:

Hey Simon,

are you looking for a way to import an RSS feed once or do you want to
automatically import a feed based on a timer?

/Andreas

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
Jul 8, 2015, 6:29:25 AM7/8/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
If so, there is an approach that may be worth exploring: one could write a plugin that on startup looks for a file called "BlahBlah 1.json" in the same folder as the HTML file, and if it finds it, import the tiddlers and look for "BlahBlah 2.json", and so on, stopping when it comes to a missing file. Assuming IFFTT can generate files with an increasing index.

Hello Jeremy,

what do you mean with, if so? The single file configuration or the node configuration? I think this is not possible in the HTML file config. 

Jeremy Ruston

unread,
Jul 8, 2015, 8:41:42 AM7/8/15
to Danielo Rodríguez, TiddlyWiki
Hi Danielo

In more detail, my proposal was to write a startup module that performs an HTTP GET of (say) "BlahBlah 1.json", a file in the same folder as the HTML file, and then dynamically loads the tiddlers within it. XMLHTTPRequest can be used without problems to access data files in this way. The idea would be to step through all the available files in numerical order, stopping when reaching a missing file.

Best wishes

Jeremy.



Danielo Rodríguez

unread,
Jul 8, 2015, 10:43:17 AM7/8/15
to tiddl...@googlegroups.com, rdan...@gmail.com, jeremy...@gmail.com
Hi Danielo

In more detail, my proposal was to write a startup module that performs an HTTP GET of (say) "BlahBlah 1.json", a file in the same folder as the HTML file, and then dynamically loads the tiddlers within it. XMLHTTPRequest can be used without problems to access data files in this way. The idea would be to step through all the available files in numerical order, stopping when reaching a missing file.

I did not know that JS can access file system that way!! How do you do it? You have to query localhost?  I suppose it is limited to the same folder than the HTML file, and that you can not delete files, right?

Regards

Jeremy Ruston

unread,
Jul 8, 2015, 10:53:59 AM7/8/15
to Danielo Rodríguez, TiddlyWiki
Hi Danielo 
 
I did not know that JS can access file system that way!! How do you do it? You have to query localhost?  I suppose it is limited to the same folder than the HTML file, and that you can not delete files, right?

You're not limited to the same folder, but you are limited to the same domain unless the server uses CORS. If the server supports the HTTP DELETE verb then you can delete files too.


Best wishes

Jeremy.


 

Regards

Danielo Rodríguez

unread,
Jul 8, 2015, 11:10:45 AM7/8/15
to tiddl...@googlegroups.com, jeremy...@gmail.com, rdan...@gmail.com
Ok, we are talking about a hosted tiddlywiki.

I though you were talking about an HTML file on your local file-system.

Jeremy Ruston

unread,
Jul 8, 2015, 11:20:07 AM7/8/15
to TiddlyWiki, Danielo Rodríguez
Hi Danielo

Ok, we are talking about a hosted tiddlywiki.

I though you were talking about an HTML file on your local file-system.

Ten years ago, XMLHttpRequest worked exactly the same from a local HTML file but since then most browsers have placed restrictions on the capability.

Best wishes

Jeremy.

 

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages