• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Adafruit MQTT Interface

    Interfacing
    python networking
    5
    11
    3036
    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.
    • E
      eamon last edited by

      Hi all

      I have a project that is coming up and I am wondering if I am looking at the right idea with Isadora.

      There will be a couple of rubbish bins about that will have weight and movement sensors that will have an adafruit MQTT device attached to them. The plan is to transmit the data from the sensors to a cloud server and also to project the information.

      The idea of the exhibition is to show a timeline with regard to our consumption, use and waste of plastic etc.

      The server in question also has a python watcher. 

      I am wondering if Isadora would be able to take information from the server via an actor/listener and allows us to project the data up.

      The data is intended to be "live". The adafruit method is already in train and the requirement for projection is something that has appeared lately.

      From my reading up on it, it seems possible but I am not sure at the same time! The data is intended to be refreshed every 10 secs for approx 3 months....

      Am I right in looking at the network/python actors for this? If so, I am wondering would anyone have any pointers?  Whilst I have a proper license of izzy, I am moved much beyond basic video.

      Thanks in advance.

      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.

      Fred 1 Reply Last reply Reply Quote 0
      • Fred
        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 13.6.4 (22G513) 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

        1 Reply Last reply Reply Quote 0
        • DusX
          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
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
          • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

          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.

              Fred 1 Reply Last reply Reply Quote 0
              • Fred
                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 13.6.4 (22G513) 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

                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.

                  Fred 1 Reply Last reply Reply Quote 0
                  • Fred
                    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 13.6.4 (22G513) 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

                    ? 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

                      Woland 2 Replies Last reply Reply Quote 0
                      • Woland
                        Woland Tech Staff @Guest 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: https://support.troikatronix.com/support/tickets/new
                        Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                        Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                        Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                        | Isadora Version: all of them | 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
                        • Woland
                          Woland Tech Staff @Guest 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: https://support.troikatronix.com/support/tickets/new
                          Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                          Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                          Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                          | Isadora Version: all of them | 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