• C
    CraigWeb

    Hi Christophe

    To troubleshoot your button open your browser's console and look for errors when you click on the button.

    For your page 2 make sure you registered the page to take parameters as in the picture below:
    0_1555598392289_untitled (10).png

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

    See if you get poll times that align with the occasions that the value has been Fire_Found and share them. It is really odd that it is that value for 1/10th of a second.

    posted in Development general discussion read more
  • C
    CraigWeb

    What is in your C:\Mango\yajsw\log\wrapper file when you start the service ?

    posted in User help read more
  • C
    CraigWeb

    Hi KLN

    Please, can you confirm that the NoSQL module has been deleted?
    Please paste you ma.log file here when you start via cmd prompt.

    posted in Mango Automation general Discussion read more
  • C
    CraigWeb

    Try to run the service, after it stops go to C:\Mango\logs\ma.log and post the context here so we can see what mango us doing.
    insert the text in a code element.

    posted in User help read more
  • C
    CraigWeb

    Hi KLN welcome to the forum.

    Your question is not clear.
    What happens when you start the service?
    Also, did you run the installService.bat as administrator?

    posted in User help read more
  • C
    CraigWeb

    Hi @support-jo

    We will need more information to have any idea what is going on.
    What kind of data source does the point belong to?
    Could the sensor give a false alarm?
    There is no reason why a point would just change the value for no reason.

    posted in Development general discussion read more
  • C
    CraigWeb

    Not sure if you have come right yet but this is how I did it.

    <ma-serial-chart style="height: 250px; width: 100%" series-1-values="bin1Temp" series-1-point="designer.points | filter:{deviceName:'Bin 1',name:'Temperature'}:true | maFirst" series-1-type="line" series-1-color="red" legend="true" balloon="true" options="{autoMargins: false, marginBottom: 30, categoryAxis:{labelsEnabled:false, gridAlpha: 0, axisAlpha: 0}}">

    0_1555398753805_untitled (9).png

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

    Hi Phillip

    Could you post a screenshot? Sounds like you have a <div> overflow. You can't have any static sizes or positions when you doing dynamic pages. If you pasted your HTML I could help.

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

    Hi Phillip

    First thing to confirm is when you registered the page in the edit menu page did you include ?DN in the URL path.
    The second thing, once that is confirmed what happens if you manually add the parameter into your browsers URL does it do what you expect/want?

    here is how I have done it in the past:
    My button on page 1:
    <md-button ui-state="'ui.site'" style=" font-size: 16px; " ui-state-params="{site: p.tags.Site}" ng-style="{'text-transform': 'none'}">{{p.deviceName}}</md-button>

    My page with a dynamic watchlist:

    <ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points- change="designer.points = $points" id="20969fc2-a491-4616-9130-35a2555b37c2" watch-list-xid="SystemQueryWL" auto-state-params="true"></ma-watch-list-get>
    <ma-watch-list-parameters id="ac84b0bc-6c9a-4963--3ae644855233" ng-model="designer.parameters" watch-list="designer.watchList" ng-change="updateParams = designer.parameters" ></ma-watch-list-parameters>
    
    

    I did not need to use <ma-state-params>

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

    Hi @cuihe

    You can use a point link to update you switch point every time the light changes. The point link icon is to the right of the data source Icon and looks like 2 chain links. You can read the point link help as well by clicking on the help icon.

    I think this will get quite messy if you are not able to read the switches position...

    posted in Development general discussion read more
  • C
    CraigWeb

    options=" categoryAxis:{labelsEnabled:false, gridAlpha: 0, axisAlpha: 0}"
    I believe this is what you looking for, not sure didnt test it.

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

    Hi @etantonio

    The advantage of the mango Persistent TCP publisher/data source pair is that if the link between slave and master goes down for some time. The data points will be synched after the link comes back up again. If the slave is still able to poll its Modbus data sources and log to the slave's database.

    If this was a Modbus publisher/data source pair you would not have this feature. If the link goes down the points will show unreliable on the master and the missing data will not be synched after the link comes back. It will behave as a normal Modbus master/slave pair.

    posted in Mango Automation general Discussion read more
  • C
    CraigWeb

    Hi Richard

    IMO the way you are going, you would be better off looking into making dynamic watchlists and use the <ma-watch-list-get to bring the watchlist data into your page. You will then have an array of objects called designer.points which contains all the points in the watchlist that you have created.

    you can then use the angularjs filter pipe to narrow down to the point you want to work with. eg:
    <ma-point-value point="designer.points | filter:{name :'Battery'} | first"></ma-point-value>
    The | first pipe will select the first object in the array if multiple points make it through the filter.

    <ma-get-point-value> does work when giving it an object. I tested in the play area as can be seen below. One thing to remember is that whatever does between the {{}} gets evaluated

    <p ng-init="object = {point:'DP_dfcc29bd-e057-4cee-ab0c-f77e0847c17f'}">
        The point value is <ma-point-value point="myPoint"></ma-point-value>
    </p>
    
    <!-- Get a point (and value) using its XID and assign it to an output variable "myPoint" -->
    <ma-get-point-value point-xid="{{object.point}}" point="myPoint"></ma-get-point-value>
    
    <p>
        The point name is "{{myPoint.name}}" and its value is {{myPoint.renderedValue}}.
    </p>
    {{object.point}}
    {{myPoint}}
    

    posted in Scripting general Discussion read more
  • C
    CraigWeb

    Hi

    It will be easier for us if you show us your points and your dashboard code. It is hard to know exactly what you have done.

    posted in Development general discussion read more
  • C
    CraigWeb

    Hi Richard

    I dont see any problem with <td class="mid" ng-class="{'good':DP_684160.value < 100,'bad':DP_684160.value > 99}">.
    You can confirm this but changing the logic to a true or false:
    ng-class="{'good':true,'bad':false}"
    Edit:

    <ma-point-value> does not assign a point object in side your pages scope. It is a component to have a live view of your point.

    use <ma-get-point-value point-xid="DP_684160" point="myPoint"></ma-get-point-value> if you would like a variable in you pages scope that you can do logic with. You can then use myPoint in your logic.

    posted in Scripting general Discussion read more
  • C
    CraigWeb

    Hi Ramhuzani

    I see how that message can be misleading. You will need to look in your ma.log file to see what error you are getting.
    If you go to system settings --> email settings you can confirm your SMTP server setting and test it from there. Then have a look at your ma.log file to see if it is an authentication failure or host failer etc.
    Note that it will send a test email to the email address of the user logged in. So you will need to make sure your user has an email address.

    posted in User help read more
  • C
    CraigWeb

    Hi Richard

    You will want to read this help document here: https://help.infiniteautomation.com/mango-rollups-and-statistics
    You should also read over the <ma-point-statistics point="myPoint" from="from" to="to" statistics="statsObj"> </ma-point-statistics>
    API documents which can be found at API Docs ---> components --> maPointStatistics

    you will also probably need to use maNow to use dynamic from and to values on the maPointSatistics
    Where your 'to' value will be now and you 'from' value will be now minus 7 days

    posted in Scripting general Discussion read more
  • C
    CraigWeb

    When smaller numbers are correct and larger numbers are incorrect. It is usually due to swapped registers or not zero-basing your address. The good news is that Modbus devices will apply the same rule across all the 32 and 64-bit data so once you have figured out on one data point you can apply it to the rest.

    posted in Mango Automation general Discussion read more
  • C
    CraigWeb

    Hi @khundream

    Here is a document on how to install mango as a service: https://help.infiniteautomation.com/installing-services
    If you want to restart mango daily for some reason you would need to write your own CRON job.

    posted in User help read more