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.
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users