• MattFox

    Hi there Mohit,

    1. Can you go into more detail as to what you're trying to achieve?
    2. Can you insert into a code block your dashboard markup?
    3. Please display any errors in your browser console if there are any

    Thanks

    Fox

    posted in Brewers Dashboard read more
  • MattFox

    Hi gentlemen, hope you don't mind if I join the party, Rob, looking at your config, you're going to want a HTTP JSON Receiver since the body of the message is in JSON.
    Secondly, configure your whitelist in the datasource settings to allow your Teltonika to send data in by entering it's ip address:
    192.168.1.1
    Use * as your device identifier
    I have learnt you need to amend the format of your JSON. The VR comes through as a broken array. namely: [2.388783e 02,]
    To set the time, use the unix timestamp option so mango can parse it. %t
    For ease of the jackson JSON format that mango uses:
    Change your send url to: http://192.168.1.129/httpds and move the RUT955 or remove it completely
    I did:

    {"RUT955":[{"TS":"27/03/2020 12:33:36","ST":7007,"VR":[2.388783e 02,0]},{"TS":"27/03/2020 12:33:36","ST":7501,"VR":[678,0]}]}
    

    LASTLY
    Add a custom header: you need to overwrite the Content-Type: application/x-www-form-urlencoded
    with:

    Content-Type: application/json
    

    once that's done we can look at your points. So far I can get them parsing with

    HTTP Parameter name: /RUT955/0/VR for voltage as an alphanumeric point. I cannot parse them as numeric because the format of the register data is a string (text), not a number.

    Let me know if you can further customise the data. Hope this helps

    Fox

    posted in How-To read more
  • MattFox

    Shame you can't just add 0.001 to force its hand also ha. Yep I agree with the precision, but that still doesn't explain the lack of enforced rounding when you state the number format..

    Think we'll need @terrypacker here for this one, if not @Jared-Wiltshire.

    Fox

    posted in User help read more
  • MattFox

    That's bizarre, looking at your outgoing text it's formatted. You'd half think that it's been set to 2DP, clearly not in this case....
    What version have you got where mango is concerned?
    I'd argue something is being ignored here as far as settings go.
    Just to humour me, try multiplying by 0.030 instead and see if that has any effect of breaking the chain...

    As for what else the issue could be, sorry not a clue. Need an infinite chap here to confirm....

    Fox

    posted in User help read more
  • MattFox

    Look at your text formatter for analogue values, set it to #.### or to that effect. That will set your DP places.

    Fox

    posted in User help read more
  • MattFox

    Check your ma.logs, if this thing is internet facing someone may have been hammering it causing the login to drop out in relation to max non-authenticated attempts being tripped..

    Fox

    posted in User help read more
  • MattFox

    Nope because how the system is implemented - as seen in the API:

    maPointEventManager service in module ngMangoServices
    Provides an EventManager factory pointing to the point-value websocket endpoint at '/rest/v1/websocket/point-value'
    
    All methods available to EventManager are available.
    Used by <ma-get-point-value> directive.
    

    So the only way to get around this is to write your own controller or component to provide just the data you want...

    Fox

    posted in How-To read more
  • MattFox

    @jared-wiltshire said in Adding Alarm Level Types:

    It is not possible to add/remove or change the colors of the alarm levels.

    posted in How-To read more
  • MattFox

    I think before we go further, you need to modify your naming convention...

    So you've got a system where techs are installing these systems, but there's no actual documentation on what's what??
    Sounds like an impending cluster...
    You're storing the batch number as a point value, as well as having four other points to hold sensor data, correct?
    Sounds like you need something to parse the data either before or in mango otherwise you're forever going to be chasing your tail.

    If you need to parse values you're going to have to write a controller to read these values and sort them into groups.

    EDIT: use a meta data source point for each PLC unit. get it to store the timestamps of when the batch number changes. That way you can create a dropdown of batch values, and filter them with a text box:

    //metapoint is settable, var name: batch, type alphanumeric
    //context point, plc batch number point: batchNum
    var curr = JSON.parse(batch.value);
    
    if(!curr)
    {
    var batchObj = {batch:batchNum.value,
    start:batchNum.time,
    end:''}
    return JSON.stringify( batchObj );
    }
    else
    {
    if(curr.batch == batchNum.value){return UNCHANGED;}
    if(curr.batch !== batchNum.value)
    {
       curr.end = batchNum.time;
       batch.set( JSON.stringify(curr), batch.time); //overwrite last value
    
       var batchObj = {batch:batchNum.value,
    start:batchNum.time,
    end:''}
    return JSON.stringify( batchObj );
    }
    }
    
    

    Fox

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • MattFox

    I believe it's always been an 'at a glance' tile just to show how much of everything is in the system. I'm using 3.5.6 and even then it's not a link.
    Admin Home is built into the mangoUI, so there is no way to amend it.

    Fox

    posted in Mango Automation read more