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
    then we can see if this model will work for what you’re trying to accomplish
    ryanrdl
    @ryanrdl
    right now I am looking at machines that have a bidirectional protocol being able to send information and then communicate back (like if you are monitoring temp and that specific machine goes out of spec and needs to be sent a stop command)
    Roy van de Water
    @royvandewater
    And you want to create a single flow that manages a group of devices, where each individual device both broadcasts sensor data and is capable of receiving a ‘stop’ command?
    a simplified flow would look like this:
    vDevice->condition->vDevice
    ryanrdl
    @ryanrdl
    correct... I would like to be able not have to configure every individual machine but for ever Fuji XYZ machine, they can all use a common flow
    Roy van de Water
    @royvandewater
    gotcha

    k, so the

    device->condition->device

    flow works out of the box as-is

    with the virtual devices, we need just a little bit more logic in the flow, and some functionality in Meshblu
    Specifically, we need to expose that forwarded-routesproperty I mentioned earlier
    ryanrdl
    @ryanrdl
    @royvandewater cool
    Roy van de Water
    @royvandewater
    so that we can see which real sensor caused that virtual device to re-emit the sensor data, and tell the appropriate device to stop
    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?