<div dir="ltr">That's true. Let's wait for Zaid or another guru to enlighten us... :)<br></div><img width="1" height="1" src="https://app.contextsmith.com/track/c2VyZ2lvMTk5MzJAZ21haWwuY29t/a8f6780f2b2508b494c9dc28473f3332176732ea/spacer.gif?q=1234"><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_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/sergiofdz/<br></a></div><div dir="ltr"><div><span>(+34) 687 016 994</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">2017-11-28 11:04 GMT+01:00  <span dir="ltr"><<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_6821714479154927104WordSection1"><p class="MsoNormal">I am confused, how is what I am doing any different than what is being done in the “Connected Devices” graph?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The only real difference is that I am not declaring the validation rules correct?<u></u><u></u></p><p class="MsoNormal"><a name="m_6821714479154927104__MailEndCompose"><u></u> <u></u></a></p><span></span><p class="MsoNormal"><b>From:</b> Users [mailto:<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.<wbr>genieacs.com</a>] <b>On Behalf Of </b>Sergio Fernández<br><b>Sent:</b> Tuesday, November 28, 2017 4:41 AM<span class=""><br><b>To:</b> Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br></span><b>Subject:</b> Fwd: Graph help on Homepage<u></u><u></u></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">In the release of v1.1.0 we can find this explanation from Zaid:<br><br><br><u></u><u></u></p><ul style="margin-top:0in" type="disc"><li class="MsoNormal" style="color:#24292e;margin-top:3.0pt;box-sizing:border-box"><span style="font-size:12.0pt;font-family:"Segoe UI",sans-serif">Presets precondition queries no longer support "$or" or other MongoDB logical operators.<u></u><u></u></span></li></ul><p class="MsoNormal"><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"><u></u><u></u></p><div><div><div><div><div><div><div><p class="MsoNormal">Sergio Fernández Rubio - <a href="https://www.linkedin.com/in/sergiofdz/" target="_blank">https://www.linkedin.com/in/<wbr>sergiofdz/<br></a><u></u><u></u></p></div><div><div><p class="MsoNormal"><a href="tel:+34%20687%2001%2069%2094" target="_blank">(+34) 687 016 994</a><br>CEO @ ACSdesk<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://acsdesk.com" target="_blank">https://acsdesk.com</a><u></u><u></u></p></div></div></div></div></div></div></div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt">---------- Forwarded message ----------<br>From: <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>><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><u></u><u></u></p><div><div><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.<wbr>SystemConfig.Status.<wbr>ModemStatus.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.<wbr>SystemConfig.Status.<wbr>ModemStatus.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.<wbr>SystemConfig.Status.<wbr>ModemStatus.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:.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><p class="MsoNormal" style="margin-bottom:12.0pt"><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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal"><u></u><u></u></p></div></div></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>