Hi jeremy, could you help me on this post?
https://talk.tiddlywiki.org/t/how-to-use-python-script-simulate-http-request-to-open-a-certain-tiddler/1471
I want to use python to do the same thing. But meet some problems.
1. After http request the tiddler can't open immediately, need a manually
I finally got it to work just as I imagined! I can now create and open
tiddlers in seconds containing whatever data I want. Thanks so much!
Jeremy,
*If you look at the “network” tab of developer tools while you run that
snippet you’ll see that it generates the same underlying HTTP request as
Hi Matt
> Well I was going to post some of my updated findings and ask again for help,
> when all of a sudden I stumbled upon what may be the answer. All I had to do
> was run this javascript snippet in Chrome:
>
> var storyList = "TiddlerIWantToOpen"
> $tw.wiki.addTiddler({title:
Well I was going to post some of my updated findings and ask again for
help, when all of a sudden I stumbled upon what may be the answer. All I
had to do was run this javascript snippet in Chrome:
var storyList = "TiddlerIWantToOpen"
$tw.wiki.addTiddler({title: "$:/StoryList", text: "", list:
Hi Jeremy,
You're right, the regular http.request was the way to go. After I lot of
fiddling, I managed to get update tiddlers with normal HTTP requests!
When I send a request, I see this terminal output:
'syncer-server: Dispatching 'save' task: $:/StoryList
FileSystem: Saved file
Hi Matt
> On 14 Feb 2017, at 13:32, Matt Groth wrote:
>
> The http.get request can also be seen in my network manager. Do you know why
> the http.post might not be working, given that http.get does work?
I’m not familiar with the http-post library that you’re using;
Hi Jeremy,
Thank you for explaining to me how data is sent over the network.
Unfortunately, I'm still having a connection issue.
The code you posted continues to run without affecting my open
TiddlyWiki, leaving a trace in my network manager, or producing an error.
On the other hand, I can
Hi Matt
Firstly, apologies for the delayed reply.
> I spent a lot of time messing around and searching the internet to try to
> learn how to make an http request.
That pretty much sums up what software developers do :)
> This is the what I've managed to come up with:
That’s pretty close. Try
I spent a lot of time messing around and searching the internet to try to
learn how to make an http request. This is the what I've managed to come up
with:
console.log('pleasework starting');
var http = require('http');
http.post = require('http-post');
var newTidText = '{' +
'"text":
Hi PMario,
I'm trying to automate TiddlyWiki from external scripts in whatever way
possible. I have a system set up that is integrated with Spotify so my
TiddlyWiki is its own little music organizer.
Node.js helped me a lot because it gave me the option to create.tid files
which can
Hi Matt,
Can you describe a bit closer, what you try to achieve? ...
opening and closing tiddlers from the command line is not the purpose of
the tw node version.
It's mainly used to "compile" file TiddlyWikis and to run the test server.
-m
--
You received this message because you are
11 matches
Mail list logo