Graph help on Homepage

eric at aisling-technologies.com eric at aisling-technologies.com
Tue Nov 28 04:33:19 EST 2017


Ok, so I want to create a couple of graphs on the home tab.  My first is to
show SINR levels at a glance for the connected CPEs.  For ease of
troubleshooting, I removed the "Connected Devices" graph and just used the
following code in graphs.json.erb,

 

{

  "SINR" : [

      {

        "label" : "Excellent",

        "color" : "#5e5",

"query" : {"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP" :
{"$gt" : "<%= 24 %>"}}

      },

      {

        "label" : "Good",

        "color" : "#ee5",

"query" : {"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP" :
{"$lt" : "<%= 25 %>", "$gt" : "<%= 19 %>"}}

      },

      {

        "label" : "Poor",

        "color" : "#e55",

"query" : {"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP" :
{"$lt" : "<%= 20 %>"}}

      }

   ]

}

When I apply the code and attempt to access the Home tab, I get the
following error,

undefined method `each' for nil:NilClass

 

What am I missing?  Is there another file that I need to edit?

 

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171128/a7d955a4/attachment.html>


More information about the Users mailing list