[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

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

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

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

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

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

2017-02-11 Thread PMario
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