Author Topic: Gateway not displaying nodes [solved]  (Read 2245 times)

metallikorn310

  • NewMember
  • *
  • Posts: 2
Gateway not displaying nodes [solved]
« on: May 06, 2015, 09:45:30 PM »
Hi,

I can't figure out why the gateway is not picking up the nodes. I can see the output from the gateway moteino being printed out in the terminal and I can see that but the index.php script never sees any of the nodes. It connects to the gateway.js socket but just sits at the Node screen with Count 0. I made sure the ttyAMA0 is working correctly and is set in gateway.js.

I first tried it with my old instance of the previous GarageMote gateway (which worked fine) and couldn't get it to work so I installed Raspbian fresh on a new SD card, followed the setup guide, copied the files over, and that produced the same result.

I feel like there is something small I'm missing.

Any help would be appreciate.

Thanks,

Marcus
« Last Edit: May 07, 2015, 07:21:51 AM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Gateway not displaying nodes
« Reply #1 on: May 06, 2015, 10:16:52 PM »
It may be the way you're opening the serial port or how you're printing to it.
First ensure the lines are printed with new line (every message passed through by the gateway Moteino should end in newline).
You can use minicom or another terminal to see the messages coming through. If that's satisfied and the regex expressions I have defined by default match your data then the nodes will pop up. Otherwise if you have custom data then you need to write new definitions of nodes/metrics to match your custom data. Please see the comments in the metrics.js file for more on that.

metallikorn310

  • NewMember
  • *
  • Posts: 2
Re: Gateway not displaying nodes
« Reply #2 on: May 06, 2015, 11:02:44 PM »
Felix,

You are the man! The gateway sketch I had loaded wasn't printing out the serial output in the format the regular expression was evaluating. Modified it and it is working beautifully now.

Thanks for your help!

I've been a fan of the site for a while now and have several moteino sensors. Definitely enjoy all of your hard work and please keep it up!

Thanks!

Marcus

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Gateway not displaying nodes [solved]
« Reply #3 on: May 07, 2015, 07:22:11 AM »
THanks :)
Good to hear you have it figured out.