<div dir="ltr">In the release of v1.1.0 we can find this explanation from Zaid:<br><br><ul style="box-sizing:border-box;padding-left:2em;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;margin-top:0px;margin-bottom:0px"><li style="box-sizing:border-box;margin-top:0.25em">Presets precondition queries no longer support "$or" or other MongoDB logical operators.</li></ul><br>Source: <a href="https://github.com/zaidka/genieacs/releases/tag/v1.1.0" target="_blank">https://github.com/zaidka/<wbr>genieacs/releases/tag/v1.1.0</a> <br><br>Zaid has given priority to Provisions and I think he removed this functionality in order to evade security problems. <br>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.<br><br clear="all"><div><div class="m_5483888825076811708gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sergio Fernández Rubio - <a href="https://www.linkedin.com/in/sergiofdz/" target="_blank">https://www.linkedin.com/in/<wbr>sergiofdz/<br></a></div><div dir="ltr"><div><span><a href="tel:+34%20687%2001%2069%2094" value="+34687016994" target="_blank">(+34) 687 016 994</a></span><br>CEO @ ACSdesk<br></div><div><a href="https://acsdesk.com" target="_blank">https://acsdesk.com</a><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr"><<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>></span><br>Date: 2017-11-28 10:33 GMT+01:00<br>Subject: Graph help on Homepage<br>To: Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br><br><br><div lang="EN-US"><div class="m_5483888825076811708gmail-m_989313595588721799WordSection1"><p class="MsoNormal">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,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">{<u></u><u></u></p><p class="MsoNormal">  "SINR" : [<u></u><u></u></p><p class="MsoNormal">      {<u></u><u></u></p><p class="MsoNormal">        "label" : "Excellent",<u></u><u></u></p><p class="MsoNormal">        "color" : "#5e5",<u></u><u></u></p><p class="MsoNormal">"query" : {"InternetGatewayDevice.System<wbr>Config.Status.ModemStatus.<wbr>RSRP" : {"$gt" : "<%= 24 %>"}}<u></u><u></u></p><p class="MsoNormal">      },<u></u><u></u></p><p class="MsoNormal">      {<u></u><u></u></p><p class="MsoNormal">        "label" : "Good",<u></u><u></u></p><p class="MsoNormal">        "color" : "#ee5",<u></u><u></u></p><p class="MsoNormal">"query" : {"InternetGatewayDevice.System<wbr>Config.Status.ModemStatus.<wbr>RSRP" : {"$lt" : "<%= 25 %>", "$gt" : "<%= 19 %>"}}<u></u><u></u></p><p class="MsoNormal">      },<u></u><u></u></p><p class="MsoNormal">      {<u></u><u></u></p><p class="MsoNormal">        "label" : "Poor",<u></u><u></u></p><p class="MsoNormal">        "color" : "#e55",<u></u><u></u></p><p class="MsoNormal">"query" : {"InternetGatewayDevice.System<wbr>Config.Status.ModemStatus.<wbr>RSRP" : {"$lt" : "<%= 20 %>"}}<u></u><u></u></p><p class="MsoNormal">      }<u></u><u></u></p><p class="MsoNormal">   ]<u></u><u></u></p><p class="MsoNormal">}<u></u><u></u></p><p class="MsoNormal">When I apply the code and attempt to access the Home tab, I get the following error,<u></u><u></u></p><p class="MsoNormal" style="text-indent:0.5in">undefined method `each' for nil:NilClass<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">What am I missing?  Is there another file that I need to edit?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you.<u></u><u></u></p></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></div><br></div><img width="1" height="1" src="https://app.contextsmith.com/track/c2VyZ2lvMTk5MzJAZ21haWwuY29t/b08061c8d0a8b80e6b5d27e9eba671f9a684b87c/spacer.gif?q=1234">