• C
    CraigWeb

    Busy trying to setup Idrive backup on a MangoES and got a little stuck with some permissions. Could someone help with how to give the util the right permissions. Its a live system, I don't want to take chances.

    mango@Mango:/opt/Idrive_ARM$sudo ./login.pl
    sudo: ./login.pl: command not found
    mango@Mango:/opt/Idrive_ARM$sudo perl ./login.pl
    idevsutil file does not have executable permission. Please give it executable permission
    
    

    posted in User help read more
  • C
    CraigWeb

    Hi @iperry

    Do you plan on dynamically editing the SVG to add more elements or dynamically adding SVG's to the page.
    Not sure how you have structured your SVG and if new sensors have a relation to the existing sensors ie: connecting pipes or lines ect.

    You could do a ng-repeat and dynamically add smaller SVG's for each sensors data that comes from the pages query.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • C
    CraigWeb

    It does not effect the logging. But doing that would have a global effect on any page that uses the datebar. You could also set the roll up in your

    <ma-point-values point-xid="BDP_EERST_WTW_TOTFL" values="point1Values" from="dateBar.from" 
       to="dateBar.to" rollup="SIMPLIFY" simplifyTolerance="500">
       </ma-point-values>
    

    posted in How-To read more
  • C
    CraigWeb

    If I look at Mats html it should already be mobile friendly. <div flex layout="row" layout-xs="column">
    means that the div is a row but if the window is extra small then it will be a column.
    As for what you want to accomplish with the stats box go through this page : https://material.angularjs.org/latest/layout/alignment give it a shot and if you don't come right paste your code and ask for help. Don't be afraid to copy code from the angular material site and play with it until it does what you want.

    posted in How-To read more
  • C
    CraigWeb

    in the API docs for the <ma-point-values> (ui/docs/ng-mango/ma-point-values). You'll see all the options that can used. Just remember to make them a string.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • C
    CraigWeb

    @mrlucretius I was able to reproduce the offset on my pc. The more I change the window size the bigger the offset. I believe it has something to do with the auto-scale. if I change your main div to

     <div class="ma-designer-root" id="jhodges"  ma-scale-to="ma-ui-page-view" ma-maintain-ratio="letterbox">
    

    The offset goes away but the page doesn't scale. I think implementing flex might be a solution. Will see if I can modify the code for your today.

    posted in How-To read more
  • C
    CraigWeb

    @MattFox Thanks for that tip, I edit the userModule.js like this to add a second module. don't get any console errors.

    define(['angular', 'require','./components/settingsModal.js'], function(angular, require,settingsModal) {
        'use strict';
     var userModule = angular.module('userModule', ['maUiApp']);
    try {	
    	userModule.component('settingsModal', settingsModal);
        }
    catch(e){console.log(e);}	
    
    try{userModule.component('myComponent', {
        bindings: {
            name: '@?'
        },
        template: '<span>Hello {{$ctrl.name}}</span>'
    });
    }
    catch(e){console.log(e);}
    
        return userModule;
    });
    

    posted in Wishlist read more
  • C
    CraigWeb

    For anyone following this thread:
    found a small typo on the useModule.js code. The try block needs to be closed with a }.

    @MattFox Thank you very much for doing this. I've been wanting to dive into modules for sometime now but have never been able to find the time. This will really help with the learning curve.

    There is just one thing that has got me here. When I try add a 2nd userModule my previous one disappears. Could someone help me with how to do this correctly, it will be very much appreciated.

    posted in Wishlist read more
  • C
    CraigWeb

    Hi @iperry

    I can guarantee, that you wont look back, once you get comfortable using tags.

    posted in Development general discussion read more
  • C
    CraigWeb

    Hi @mrlucretius

    I used your code and put in my own data point XID and it worked perfectly. with out seeing the rest of your code it is hard to do any more. could you share the rest of the page code.

    Could you also check if there are any errors on your chrome dev tools console.

    Also just a shot in the dark here. paste this code into your page and have a look what the actual data you giving the chart is:

    <md-card >
                    <md-toolbar class="md-whiteframe-1dp md-hue-3">
                        <div class="md-toolbar-tools">
                            <h3 >
                                values
    
                            </h3>
                        </div>
                    </md-toolbar>
                    <md-card-content layout="row">
                      <md-list class="md-dense" flex >
                                
                                <md-list-item layout="row" ng-repeat="v in pt_Meter1.kWh_Values " >
                                    <span > {{v.timestamp | maMoment:'format':'ll LTS'}} :</span>
                                    <span flex> </span>
                                    <span > {{v.value}} </span>
                                </md-list-item>
                </md-card-content>
                </md-card>
                </div>
    </div>
    

    posted in How-To read more