[tw5] Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2021-11-09 Thread imleg...@gmail.com
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

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-20 Thread Matt Groth
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

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-20 Thread Jeremy Ruston
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:

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-19 Thread Matt Groth
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:

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-15 Thread Matt Groth
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

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-14 Thread Jeremy Ruston
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;

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-14 Thread Matt Groth
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

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-14 Thread Jeremy Ruston
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