• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    Displaying live polling results from a website via Isadora

    Interfacing
    10
    22
    5.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DusXD
      DusX Tech Staff
      last edited by

      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.

      Troikatronix Technical Support

      • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
      • Isadora Add-ons: https://troikatronix.com/add-ons/
      • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

      Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

      1 Reply Last reply Reply Quote 0
      • djinouiD
        djinoui
        last edited by

        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...

        Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
        Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

        1 Reply Last reply Reply Quote 0
        • eightE
          eight
          last edited by

          @DusX

          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:8888
          7\. Observe the _Hello OSC_ message both in browser and Isadora's _OSC Listener actor_.
          --8

          Analysis: http://post.scriptum.ru | Synthesis: http://onewaytheater.us
          Twitter: https://twitter.com/eight_io | Flickr: http://www.flickr.com/photos/eight_io/
          Github: https://github.com/eighteight | MulchCam: https//mulchcam.com
          MulchTune: https://itunes.apple.com/us/app/mulch-tune/id1070973465 | Augmented Theatre: https://augmentedtheatre.com

          1 Reply Last reply Reply Quote 0
          • DusXD
            DusX Tech Staff
            last edited by

            A organized listing of many available web API's: http://api-portal.anypoint.mulesoft.com/apis

            Troikatronix Technical Support

            • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
            • Isadora Add-ons: https://troikatronix.com/add-ons/
            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

            Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

            1 Reply Last reply Reply Quote 0
            • djinouiD
              djinoui
              last edited by

              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!

              Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
              Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

              1 Reply Last reply Reply Quote 0
              • dbiniD
                dbini
                last edited by

                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.

                John Collingswood
                taikabox.com
                2013 MBPR 2.3GHZ i7 OSX11.7.4 16GB
                & 2019 MBPT 2.6GHZ i7 OSX12.3 16GB

                1 Reply Last reply Reply Quote 0
                • MichelM
                  Michel Izzy Guru
                  last edited by

                  @DusX
                  Thanks a lot for the tutorial.

                  Best
                  Michel

                  Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                  1 Reply Last reply Reply Quote 0
                  • SkulptureS
                    Skulpture Izzy Guru
                    last edited by

                    Thanks @DusX!!

                    Graham Thorne | www.grahamthorne.co.uk
                    RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                    RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                    RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                    1 Reply Last reply Reply Quote 0
                    • rainbowR
                      rainbow
                      last edited by

                      @DusX wait for part two, nice one.

                      Has anyone tried OSC PHP, and develop interactive Web browser control.html, unidirectional….  it works. 🙂

                      thx

                      1 Reply Last reply Reply Quote 0
                      • DusXD
                        DusX Tech Staff
                        last edited by

                        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.

                        Troikatronix Technical Support

                        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                        • Isadora Add-ons: https://troikatronix.com/add-ons/
                        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                        Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                        1 Reply Last reply Reply Quote 0
                        • DusXD
                          DusX Tech Staff
                          last edited by

                          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.

                          Troikatronix Technical Support

                          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                          • Isadora Add-ons: https://troikatronix.com/add-ons/
                          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                          Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                          1 Reply Last reply Reply Quote 0
                          • particlepP
                            particlep
                            last edited by

                            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 ?

                            isadora v3.0.7
                            mbp 2.6ghz i7
                            mac osx 10.12.6
                            dyslexic.

                            1 Reply Last reply Reply Quote 0
                            • dbiniD
                              dbini
                              last edited by

                              Hi Andrew @particlep,

                              we tested the system in a performance a couple of weeks ago. we had the audience sending in stories that were moderated and then displayed in a custom web app using CSS, this was syphoned into Isadora via CEF. then later in the evening, we sent individual audience members a slider to control sound, light or video. this went through nodeJS and was converted to OSC, straight into Isadora for video, through LanBox actors for lighting and MIDI out to Ableton Live for sound manipulation.
                              the server crashed a couple of times, but he OSC stuff worked nicely. we're changing a lot of the structure of the event and testing again at the end of June.
                              hope you're well and keeping creative,
                              john

                              John Collingswood
                              taikabox.com
                              2013 MBPR 2.3GHZ i7 OSX11.7.4 16GB
                              & 2019 MBPT 2.6GHZ i7 OSX12.3 16GB

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post