Hi! I might be completely on the wrong track ... but what about running TW in a node.js on the PI, extended by a resource similar to the saver that actually executes a tiddler (instead of saving it)? This has to be supported/triggered by an action on the client side/browser (by an 'execute on server' button on tiddlers?). Doing so, you can execute any JS/tiddler code on the server-side returning some tiddler to be rendered on the client.
For server pushes, a websocket can be opened or server-side-event can be set up (by code coming from the client :)). The idea has some loose ends (interaction of client- and server-side code?), but as a basic approach? Security is an issue of course, because the client can do anything on the server. . J Am Freitag, 2. Januar 2015 02:25:56 UTC+1 schrieb RichShumaker: > > Thanks Mario. > > I had a feeling it was a tough road. > I was hoping it might be more simplistic. > Turn RasPi into a Server. > Put TW on the newly created RasPi server. > Create Tunnel from TW to RasPi GPIO / Other Things like RasPi Camera. > > Then Log into TW from a browser(on another computer) and execute commands > BUT since there are no push notifications I see that would be difficult. > I have not used TW on a RasPi so I am not sure how responsive or > unresponsive it might be from the remote computer. > I guess that is the starting point is to put HTML TW on RasPi Server. > > Can TiddlyWiki scrape data? > I am thinking that TiddlySnip has some abilities to do this based on what > it can do. > I was thinking of putting TW on the RasPi Server and having the RasPi > Images saved to a folder that the TW had access too. > Then TW would incrementally grab data(scrape) that folder and update > itself. > > Thanks again everyone. > > Rich Shumaker > > On Thursday, January 1, 2015 1:34:05 PM UTC-8, PMario wrote: >> >> On Wednesday, December 31, 2014 1:08:24 AM UTC+1, RichShumaker wrote: >>> >>> That is not the question I have though. >>> My question is How could we use TiddlyWiki as a front end to control the >>> a Raspberry Pi or Pi's? >>> >> >> The idea is cool! ... but ... >> >> It's possible, technically not too hard but it's a lot of work, if you >> want to do it right :) >> >> You'll need a server side program (backend), that is able to receive / >> execute commands on the Pi. Because of this, you need to have to take >> security into account. You need a strong authentication and authorisation >> mechanism, since not everyone should be able to control your Pi. right? >> >> It also needs to send updated info to the TW. TW client has no "push >> notification" mechanism yet. ... >> >> -m >> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
