• D
    DieselD

    Found a bug I think.. when not using Angular Material, the device name list directive wasn't working. The optionsExpr when using <select> seems to need a different input.. adding 'deviceName for' in the optionsExpr seemed to fix it. I added another variable for the material design below..

    template: function(element, attrs) {
              var optionsExprmd = 'deviceName in deviceNames track by $index';
    	  var optionsExpr = 'deviceName for deviceName in deviceNames track by $index';
    
              if ($injector.has('$mdUtil')) {
                  return '<md-select md-on-open="onOpen()"><md-option ng-value="deviceName" ng-repeat="' + optionsExprmd + '" ng-bind="deviceName"></md-option></md-select>';
              }
    
              return '<select ng-options="' + optionsExpr + '"></select>';
    

    posted in Mango feedback read more
  • D
    DieselD

    Make sure the Pi has an adequate power supply (>2 amps). I had some issues with mine until I got a proper power supply.

    posted in User help read more
  • D
    DieselD

    Is there a way to filter a point list with a query that uses an array?
    I have a point list with 100 points, but i only want 30 of them to be selectable (all with various names). Essentially, I'm wondering if there is somehow that I can do;

        <md-input-container ng-init="nameFilter=['Data1','Data2']>
            <label>Filtered point list</label>
            <ma-point-list limit="200" ng-model="myPoint2" query="{name:nameFilter}"></ma-point-list>
        </md-input-container>
    
    OR with RQL
    
        <md-input-container">
            <label>Filtered point list using RQL</label>
            <ma-point-list ng-model="myPoint3" query="'name=in='+nameFilter+';'"></ma-point-list>
        </md-input-container>
    
    

    either way I can't get it to work, only works with a single variable input. thanks.

    Re: Filtering the Menu list for the Angular JS

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    One thing I notices with ma-set-point.. If a user edits the input box and doesn't hit enter (forgets to press it or changes their mind), the value stays to what the set, it won't change back to what the actual value is.

    For example, I have an input box to set a temperature setpoint. If it's changed and set is not pressed (or enter is hit), the value stays to what they typed, however, the actual setpoint is incorrect. I suggest a timeout feature so after 5-10 seconds that it revert to what it is actually set at. Ideally, it would only revert back if the input box is not in focus..

    posted in Wishlist read more
  • D
    DieselD

    Thanks.. you make a good point there. I may have to rethink how I'm doing this...

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    I may just say screw it at this point! though I usually am too stubborn to give up on dumb things like this

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    Well I really wasn't trying to use the enable, but it was a good starting point. I want to be able to change the modbus slave id from the dashboard for a set of data points. Essentially I have six identical modbus units that all send identical data points (different values). If one of the units is replaced with another unit with a different slave id, I want to easily change it without having to go into the data points and change them all.
    I realize i could also change the id on the unit itself but didn't really want to do that and get them mixed up.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    ok.. im not the best with JS as I'm still figuring out.. I thought I'd ask hoping there would be an easier way then writing up new code to do it.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    Yeah.. though i don't think that works with setting other things like 'enabled', unless I'm wrong? When I do try it, the Set button gets grayed out.
    I figured out how to read it directly just doing something as simple as:

    <ma-point-list limit="100" ng-model="myPoint2"></ma-point-list>
    <button type="submit" class="btn btn-default" ng-click="myPoint2.$get()">Submit</button>
    <pre><code>{{myPoint2.enabled}}</code></pre>
    
    

    get figure out how to set it though.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • D
    DieselD

    I got that.. I'm looking for how to do it in HTML/JS, so it can be changed via the dashboard.

    posted in Dashboard Designer & Custom AngularJS Pages read more