Displaying live polling results from a website via Isadora
-
Yes there is - but it's mac only - so we need more information about your system.
But this is one way: https://code.google.com/p/cogewebkit/You do need the Isadora Core upgrade which is a small additional fee. -
You can make Tcp-ip get requests, and parse the data directly for display.
Essentially making Isadora a real-time system integrated solution.
This approach will give you a lot of control within Isadora, for example animations could be triggered with every new chunk of data received. -
That would be a great tutorial @DusX hehe cough hint cough splutter
I'd love to know how to do this as my TCP-IP knowledge is limited. -
Funny.. I was thinking the same as I was writing it..
-
hehe!
-
@DusX: offering a Pizza & Beer in exchange for a tutorial ;)
-
I spent an hour going thru some notes and doing a few test today.. looks like I will have the basics of a 'Retrieving data from webservices' in the very near future.. I might spend the evening putting this together.. its really as much for my own reference as it is for all of you... the TCP actors are powerful/tricky
A part 2 will have to deal with Oauth connections (Facebook and Twitter) as this requires server side scripting (at least this is the only way I have done it) -
node.js + osc server? https://github.com/TheAlphaNerd/node-osc
-
I took a first pass at this last night. see: http://dusxproductions.com/blog/web-apis-in-isadora-part-1/
The next ones will go faster and be more useful, but this puts the ground work in place I think.
If anyone catches any mistakes please let me know... I wasn't all awake while writing this.@eight I will have to take a look at the node osc server... how have you tried to use it? I guess you could code via node to connect to any webservice, and then spit data out as OSC to Isadora.
-
Brilliant! Thankx DusX, very understandable tutorial!
By the way, it made me realize how 'easy' the parser can be... Next time I won't write a plugin to just explode a string :-)I'm eager to read the next parts as I still don't see precisely yet what kind of data it could be interesting to retreive... -
I just played with this module. It took me about 10 min to setup a _Hello OSC_ app talking to Isadora starting from scratch. Here is the writeup for OSX.1\. Install node.js by either building from source or downloading a current *.pkg file from _http://nodejs.org/dist/latest/_2\. Install dependencies: in terminal execute consecutively_npm install osc-min__npm install jspack__npm install node-osc_3. Create a hello-osc.js file with the following content:
_var http = require("http");__var osc = require('node-osc');__var client = new osc.Client('127.0.0.1', 3333);__http.createServer(function(request, response) {__ ** client.send('/isadora/1', "Hello OSC");**__ response.writeHead(200, {"Content-Type": "text/plain"});__ response.write("Hello OSC");__ response.end();__}).listen(8888);_4\. In terminal, run the _hello-osc.js_ in _node.js_ server like so:_node hello-osc.js_5. In Isadora patch add a OSC Listener actor, set the message type to text.
6\. Point your browser to http://localhost:88887\. Observe the _Hello OSC_ message both in browser and Isadora's _OSC Listener actor_.--8 -
A organized listing of many available web API's: http://api-portal.anypoint.mulesoft.com/apis
-
OK, now I think I'm starting to see the point. I also suppose an interesting thing to work on is building your own API on your own site, thus being able to display user posts with Izzy. Exciting!
-
i'm working on a project at the moment - by this time next month we should have a system that enables an audience to collaborate in the creation of a dance work, and then control the lighting, sound and video - all from a web app running in their phones' browsers. its some Javascript node library to OSC into Isadora.
-
@DusX
Thanks a lot for the tutorial.Best
Michel -
Thanks @DusX!!
-
@DusX wait for part two, nice one.
Has anyone tried OSC PHP, and develop interactive Web browser control.html, unidirectional…. it works. :)
thx
-
I currently have been using a php Framework 'silverstripe', it allows the quick creation of a REST api, for any data types defined.
In this manner, Isadora has a mySQL backend. Moving to a node.js solution might be the way I go for future works though. -
Another thing I want to test, but haven't yet, is using tcp as a method of launching other executables locally. I imaging the possibility to launch for instance OpenFrameWorks projects, via tcp (python script) and closing them when finished. Perhaps one scene uses Duration, and it needs to be opened. I am hoping to test this in the near future.
-
i'm interested in this, am going to attempt to have a play and see what i can do@dbini how is your project progressing ?