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

    Adafruit MQTT Interface

    Interfacing
    python networking
    5
    11
    1.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.
    • FredF
      Fred @eamon
      last edited by Fred

      @eamon you can use nodered to get mqtt data from your server and forward it to Isadora via osc.

      http://www.fredrodrigues.net/
      https://github.com/fred-dev
      OSX 10.15.15 MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
      Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD
      Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

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

        You could use 'Get URL Text' if you are able to setup a URL that returns the collected data.

        If each data, has a time stamp (use Javascript probably to sort/search), you can find any new data, and add it to your graph (maybe use dataArray).

        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.

        E 1 Reply Last reply Reply Quote 0
        • E
          eamon @DusX
          last edited by

          Hi all

          Thanks for the pointer and the idea that is possible. I will report back and let you know how I get on.

          eamon

          1no. 14" MacBook Pro M1, 32GB RAM, Max Processor, 1GB SSD
          Various Mac models from mac mini 2012 to Macbook Retina 15"
          1no. imac 21.5 M2 model.

          E 1 Reply Last reply Reply Quote 1
          • E
            eamon @eamon
            last edited by

            Hi all

            I have had a play and it seems my knowledge of isadora is a bit lacking... Kinda knew it was..

            We have the instance set up and running on Nodered and that is fine.

            I cannot seem to make it work in isadora. 

            I am interfacing with the designers nodered (very knowledgable in this area) over internet and doing this on the same computer. I think one of the issues with OSC is that this is not a local lan...?


            I have tried TCP ( I do understand IP etc) but I feel I am stumbling around in the dark. I only heard of MQTT and nodered for this project....

            If I am interfacing with his nodered page, should I use a TCP watcher etc?

            Any pointers would be gratefully received.

            Eamon

            1no. 14" MacBook Pro M1, 32GB RAM, Max Processor, 1GB SSD
            Various Mac models from mac mini 2012 to Macbook Retina 15"
            1no. imac 21.5 M2 model.

            FredF 1 Reply Last reply Reply Quote 0
            • FredF
              Fred @eamon
              last edited by

              @eamon  Try install the OSC extra for node red - https://www.npmjs.com/package/... Isadora and node red can communicate via OSC, and if you are running both of them on the same computer they can communicate with each other from 127.0.0.1 (the ip address used for two pieces of software on the same computer that need to communicate with network protocols). You will need to make sure you are talking on the correct port (Isadora has a default port of 1234 for receiving osc). You may need to re arrange the data that you get before sending it on.

              http://www.fredrodrigues.net/
              https://github.com/fred-dev
              OSX 10.15.15 MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
              Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD
              Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

              1 Reply Last reply Reply Quote 0
              • E
                eamon
                last edited by

                @fred said:

                127.0.0.1

                 Hi 

                Thanks for the reply. I forgot about the self referring IP of 127.. 

                I will have a good chat to the designer. I think I am not setting the message up correctly in nodered as well as my actor layout in Isadora. I am unsure as to what my osc command would be or should read like in nodered.

                Can it be whatever I specify as long as it is correct in its statement and both programs reference it?

                I am also not sure where the IP goes. Is this meant to be isadora or nodered?

                Thanks in confusion.

                1no. 14" MacBook Pro M1, 32GB RAM, Max Processor, 1GB SSD
                Various Mac models from mac mini 2012 to Macbook Retina 15"
                1no. imac 21.5 M2 model.

                FredF 1 Reply Last reply Reply Quote 0
                • FredF
                  Fred @eamon
                  last edited by

                  @eamon I'm guessing you want Isadora to receive messages from the sensors, so the settings for ip address and port will be in nodered, they are part of the osc plugin, you need to use the output version of the osc tool in nodered. 

                  In Isadora go to communication->stream setup and select autodetect input. If you have configured everything properly you will see something come into the stream setup. Check the Isadora manual for details on how to use osc.

                  You will need to extract the data you want from the mqtt message and send it on as an osc message from nodered to Isadora.

                  http://www.fredrodrigues.net/
                  https://github.com/fred-dev
                  OSX 10.15.15 MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                  Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD
                  Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Fred
                    last edited by

                    hello all.

                    why is there no standart firmata actor in isadora? it would be graet to do things more efficiente, inside izzy. so ableton has this suppi dubbie m4l patch inside which is possible to give you all possibilitys of the most microcontrollers i/o stuff. conection kit! and it is not understandable for us, that in izzy you have to learn programm a arduino bevor you can use its i/o possibilitys. and a sound soft like ableton do it in a side way, without any need to get a programmer and lose time for art of video. thx. bj

                    WolandW 2 Replies Last reply Reply Quote 0
                    • WolandW
                      Woland Tech Staff @A Former User
                      last edited by

                      @deflost said:

                      why is there no standart firmata actor in isadora? it would be graet to do things more efficiente, inside izzy. so ableton has this suppi dubbie m4l patch inside which is possible to give you all possibilitys of the most microcontrollers i/o stuff. conection kit!

                       We can certainly add this as a feature request.

                      TroikaTronix Technical Support
                      New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                      TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                      TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                      | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                      1 Reply Last reply Reply Quote 0
                      • WolandW
                        Woland Tech Staff @A Former User
                        last edited by

                        @deflost said:

                        it is not understandable for us, that in izzy you have to learn programm a arduino bevor you can use its i/o possibilitys. and a sound soft like ableton do it in a side way, without any need to get a programmer and lose time for art of video.

                        Here's the simple explanation of why they have that feature and we don't (yet):

                        TroikaTronix has 5 full-time employees (and Mark codes the entire program himself); if we made $18,500,000/year and had around forty times as many employees as we do right now Isadora would have all sorts of neat, new features. (It's not really a fair comparison.)

                        The addition of a native implementation of the Firmata library for Arduino in its own actor (or user actor) is a good feature request though, thank you. We'll add it to the list.

                        Best wishes,

                        Woland

                        TroikaTronix Technical Support
                        New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                        TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                        TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                        | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

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