Graph help on Homepage

eric at eric at
Tue Nov 28 05:04:55 EST 2017

I am confused, how is what I am doing any different than what is being done in the “Connected Devices” graph?


The only real difference is that I am not declaring the validation rules correct?


From: Users [mailto:users-bounces at] On Behalf Of Sergio Fernández
Sent: Tuesday, November 28, 2017 4:41 AM
To: Community support for GenieACS users <users at>
Subject: Fwd: Graph help on Homepage


In the release of v1.1.0 we can find this explanation from Zaid:

*	Presets precondition queries no longer support "$or" or other MongoDB logical operators.


Zaid has given priority to Provisions and I think he removed this functionality in order to evade security problems. 
But when it comes to graphs on Homepage, now I don't exactly know how would I do what you want to perform in v1.1.

Sergio Fernández Rubio -

(+34) 687 016 994 <tel:+34%20687%2001%2069%2094> 
CEO @ ACSdesk


---------- Forwarded message ----------
From: <eric at <mailto:eric at> >
Date: 2017-11-28 10:33 GMT+01:00
Subject: Graph help on Homepage
To: Community support for GenieACS users <users at <mailto:users at> >

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
Users at <mailto:Users at>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Users mailing list