Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Roy van de Water
    @royvandewater
    Example Flow
    This is what I’m picturing the flow would look like
    Roy van de Water
    @royvandewater
    The message forwarding stuff has been pushed to Meshblu
    One thing that’s missing is that we don’t include the forwardedRoutes in the request headers on webhooks, so I’ll need to add that tomorrow
    Then, I think we just need to expost request metadata in the flow engine (so you can reference {{metadata.forwardedRoutes}} and that example will work
    We talked through the permissions, and it gets a little more complicated if we want the sensor/devices not to know anything about the flow. In that case, the flow doesn’t have permission to send messages to the sensor/devices, so we’ll probably want to send the sensor/device a message as the virtual device
    This will require using an HTTP Post node instead of a Meshblu node for now :-/
    I’ll see if I can publish a demo flow of what I mean, after the metadata stuff has been added to the engine and the forwardedRoutes have been added to webhooks
    ryanrdl
    @ryanrdl
    @royvandewater is there any concept of "startswith", "endswith", "contains", etc... like the equals type nodes? If not, a general regex node would be useful.
    Jade Meskill
    @iamruinous
    Yeah that would be helpful. For now we do expose lodash in the function node so you can use those functions there.
    Roy van de Water
    @royvandewater
    @iamruinous yeah, but I think it’s an old version of Lodash that doesn’t have docs up anymore :-(
    I’d like to update it to the latest, but who knows how many flows will break if I do that?
    @ryanrdl all those are available, so you can use _.startsWith for now. You’re right though, we should definitely have those nodes in the designer
    Roy van de Water
    @royvandewater
    The forwardedRoutes has been added to webhook forwards
    just need to add support to the flow engine
    Roy van de Water
    @royvandewater
    @ryanrdl The flow engine changes have been deployed
    I have an example flow with a sensor behind a virtual device that emits temperatures. The flow sends it back a stop command when the temperature exceeds 75
    I’ll make a blueprint
    The hard part is setting up the virtual device & sensor permissions, since the Octoblu UI doesn’t support meshblu 2.0 permissions yet
    I can walk through it with you sometime, if you like
    Jade Meskill
    @iamruinous
    @royvandewater maybe a script that creates the devices with permissions?
    Roy van de Water
    @royvandewater
    @iamruinous yes, I have most of that already, but it’s hard to understand what’s going on.
    Jade Meskill
    @iamruinous
    just use comments. #problemsolved
    ;-)
    Roy van de Water
    @royvandewater
    I created a project that does all the setup
    It will create a virtual device with N sensors, with permissions and subscriptions setup correctly
    I’m planning on adding a run command tomorrow morning that will have the sensors output random-ish temperature data, and have each one stop when it receives a stop command from my flow
    One part that still sucks is that the designer can’t deal with 2.0 permissions, so I’ll have to add a command for updating the appropriate whitelists on the Virtual Device so the flow can subscribe to its broadcasts
    Roy van de Water
    @royvandewater
    @ryanrdl that project has been updated to do all the setup for you. Let me know if there’s anything I can do to help explain how it works
    *almost all the setup work, you’ll need to manually set the url in the HTTP Post Node to include the Virtual Device’s UUID & Token for now
    rinkugohain
    @rinkuburagohain_twitter
    Hi I am new in Octoblu , its very interesting can you tell me how to use Meshblu device in Octoblu designer
    Chris Matthieu
    @chrismatthieu
    @rinkuburagohain_twitter You can add meshblu uuids to the octoblu designer. Here's the details - https://octoblu-designer.readme.io/docs/meshblu-device
    supersjimmie
    @supersjimmie

    I have a thing that sends a msg to my flow, like this:

    {
      "msg": {
        "version": null,
        "topic": "action",
        "response": true,
        "pins": [
          {
            "number": 5,
            "value": null,
            "action": "digitalWrite"
          },
          {
            "number": 17,
            "value": 141,
            "action": "analogRead"
          }
        ],
        "fromUuid": "xxxx"
      },
      "node": "yyyy"
    }

    When I want to create a function to test if the "value" under "number":17 is 141, what should I use as function?

    KenanTarikTufekci
    @KenanTarikTufekci
    Hey can anyone help me after installing GateBlu on my windows 7 machine I tryto run the application and it always gives the message "Meshblu Authentication Failed"
    Jade Meskill
    @iamruinous
    @KenanTarikTufekci if you look for your meshblu.json you can either remove it or update it with a new token https://gateblu.readme.io/docs/windows
    KenanTarikTufekci
    @KenanTarikTufekci
    @iamruinous Is that located in the Gateblu Service folder?
    supersjimmie
    @supersjimmie
    (perhaps @redaphid can help me a bit with using my tentale message in a flow?)
    KenanTarikTufekci
    @KenanTarikTufekci
    I am having issues every time i try to create a azure ML thing in my flow i get stuck in the following area
    Capture3.JPG
    Capture4.JPG
    Why does it never load?
    Moheeb Zara
    @virgilvox
    @KenanTarikTufekci what operating system are you on?
    oh nvm I see your past post
    can you paste in a log from gateblu?
    KenanTarikTufekci
    @KenanTarikTufekci
    blob
    John Moody
    @moodybass

    @KenanTarikTufekci right, you're using Windows. I've had similar issues running gateblu plug-ins on Windows. There is a hack that you can do to run the plugin outside of Gateblu:
    1) Download the plugin from https://github.com/octoblu/meshblu-ms-azure-ml I downloaded the ZIP file and extracted to c:\meshblu-plugins\mesblu-ms-azure-ml (I tried with the version that Gateblu downloaded but had no joy, therefore grab it directly from GitHub).
    2) Create a Generic Device in Octoblu, you'll find this under "Things". Call it something sensible "Azure ML" Grab the UUID and Token and put it in Notepad or similar.
    3) Create a meshblu.json in same directory as the index.js:
    {
    "uuid": "<YOUR UUID>",
    "token": "<YOUR TOKEN>",
    "server": "meshblu.octoblu.com",
    "port": 443
    }

    4) Now, your plugin has it's own meshblu.json, you can connect it directly to Octoblu.
    5) Open an Administrative CMD prompt, navigate to C:\meshblu-plugins\meshblu-ms-azure-ml
    6) run NPM Install - stuff will install
    7) run NPM Start - you should see something like "node command.js" displayed in the CMD prompt.
    8) Go to Octoblu and find your new Generic Thing "Azure ML" and you should now be able to configure as required.

    Let me know how it goes!

    Jade Meskill
    @iamruinous
    @/all We are consolidating our slack channels and other chats across the internet, please join the new octoblu-community slack at http://community-slack.octoblu.com. You will have access to the greater Octoblu community. For proprietary conversations, you can create private channels and invite only the people you’d like to have access. This also gives us a single place to share important announcements and issues.