Routing Questions

Trying to understand what cause a route to trigger. Is it only a .qo note? I am using the notecard without an MCU utilizing only the the aux io in GPIO mode. When I change the state of one of them via an environment variable, I want to run a route to push information to my backend, but nothing seems to work. I can manually reroute the event associate with my gpio_event.dbs update, but not programatically. Seems there should be some way to make this work, any ideas would be appreciated.

Hi @sn13TX,

You can definitely route updates in .db/.dbs Notefiles (I had to verify this myself and it worked with both new DB Notefiles and updates created via note.update requests). I assume you are seeing gpio_event.dbs events in your Event list in Notehub? Is there any information in the route log for each event that should be routing? Is your route configured correctly to only route certain Notefiles?

Thanks,
Rob

Yes, I have many gpio_events.dbs events in the event list.

When I click on one of them and look at the json, this is what I see (edited for security):

{
  "event": "ab5b7e89-bb0c-4d8e-bfd3-3dd9a48ae167",
  "when": 1763068024,
  "file": "gpio_event.dbs",
  "note": "gpioLog",
  "body": {
    "AUX1_turned_off": "2025-11-13 MST 14:07:04"
  },
  "transport": "api:http",
  "best_id": "hom??",
  "device": "dev:8603??",
  "sn": "hom??",
  "product": "product:com.y??",
  "app": "app:a1??",
  "received": 1763068024.640717,
  "req": "note.update",
  "updates": 99,
  "fleets": [
    "fleet:87??"
  ]
}

If I look at the Body tab, this is what I see

{
    "AUX1_turned_off": "2025-11-13 MST 14:07:04"
}

I have tried numerous route like ‘selected notefiles ‘with ‘gpio_event.dbs’ checked and no transformation and transformation. ‘All Notefiles’ etc., etc.

I’ve selected all notefiles and system files too, but nothing makes it run. If I try to reroute, they just sit in a ‘Routing in progress..’ state and never complete. I am simply trying to route to webhook.site at the moment.

Any insight or examples that you had success with would be much appreciated.

Thanks,

Steve

As I try to figure this out, I have noticed a couple of items that I would consider odd. I don’t know if related or not.

I am working with one of my defined devices, it is sitting on the desk beside me. It was in the field for the last year. I am communicating to it only via notehub, no physical connection.

When I look at the device summary page, the latest date shown in the graphs on the right panel of the page is 11-2-2025 - today is 11-14-2025. Why are these not updated?

The Device Health log is showing a last entry of 11-7-2025, probably the date I moved it from the filed to my desk. I unplugged it 20 minutes ago, guess I would have expected to see something in this log representing that? I did eventually see an entry in the event log, assuming there is a timeout or something on that, but should it also be reflected in the device health log?

I played around with many routes with varying definitions last night and could not get anything to route automatically. Using the manual reroute mostly ended in failure - actually still showing ‘Routing in Progress…’ this morning. I did get one to successfully route. But just one and I don’t know why it worked and all the others did not. It was using the same route definition of the others that have not routed.