Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

  • SVG with selectors from query not working

    15
    0 Votes
    15 Posts
    3k Views
    Jared WiltshireJ
    @alexzer Here's an example of both approaches. Change the url in the page to try the two different approaches: Page (dashboard markup): <ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points-change="designer.points = $points" id="33366719-20b2-4f57-8d86-61145fc36354" watch-list-xid="WL_f942f3de-bafb-4318-93ee-1932762031a8"></ma-watch-list-get> <div class="ma-designer-root" id="8a47a1c9-b651-497e-8a7c-64b350497174" style="width: 1366px; height: 768px; position: relative;"> <ma-svg id="9f7c2bd8-5268-4ff0-a1a2-d29bdfbe8e21" ng-include="'/rest/v2/file-stores/public/drawing-ng-repeat.svg'" style="position: absolute; left: 0px; top: 0px;"></ma-svg> <ma-point-values id="f10206bd-bfd9-43ad-8d7c-72b2ac7cf540" points="designer.points" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals + ' ' + dateBar.rollupIntervalPeriod}}" style="position: absolute; left: 0px; top: 600px;" values="combined"></ma-point-values> </div> drawing.svg <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 800 600" height="600" width="800"> <g transform="translate(0,0)"> <rect y="0" x="0" height="50" width="100" style="fill:none;stroke:#000000;stroke-width:2;" ng-style="{fill: combined[0]['value_binary'] ? 'red' : 'green'}" /> <text y="30" x="10"><tspan>Row 1, col 1</tspan></text> </g> <g transform="translate(100,0)"> <rect y="0" x="0" height="50" width="100" style="fill:none;stroke:#000000;stroke-width:2;" ng-style="{fill: combined[0]['value_voltage'] > 10 ? 'red' : 'green'}" /> <text y="30" x="10"><tspan>Row 1, col 2</tspan></text> </g> <g transform="translate(0,50)"> <rect y="0" x="0" height="50" width="100" style="fill:none;stroke:#000000;stroke-width:2;" ng-style="{fill: combined[1]['value_binary'] ? 'red' : 'green'}" /> <text y="30" x="10"><tspan>Row 2, col 1</tspan></text> </g> <g transform="translate(100,50)"> <rect y="0" x="0" height="50" width="100" style="fill:none;stroke:#000000;stroke-width:2;" ng-style="{fill: combined[1]['value_voltage'] > 10 ? 'red' : 'green'}" /> <text y="30" x="10"><tspan>Row 2, col 2</tspan></text> </g> </svg> drawing-ng-repeat.svg <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 800 600" height="600" width="800"> <g ng-repeat="value in combined | limitTo: 10" ng-attr-transform="translate(0,{{$index * 50}})"> <g ng-repeat="pt in designer.points" ng-attr-transform="translate({{$index * 100}},0)"> <rect y="0" x="0" height="50" width="100" style="fill:none;stroke:#000000;stroke-width:2;" ng-style="{fill: value['value_' + pt.xid] ? 'red' : 'green'}" /> <text y="30" x="10"><tspan>{{pt.xid}} @ {{value.timestamp | maMoment:'format':'l LTS'}}</tspan></text> </g> </g> </svg>
  • How to chart with data points in the X axis instead of time

    9
    0 Votes
    9 Posts
    3k Views
    Jared WiltshireJ
    @alexzer how are you including the user module in your application? You can't just put it in as a script tag. Please see https://help.infiniteautomation.com/getting-started-with-a-user-module/
  • ma-date-range-picker

    5
    0 Votes
    5 Posts
    2k Views
    Jared WiltshireJ
    @DESLE I can't quite work out what exactly you are looking for. Hopefully what @MattFox provided might help you. Like he said it seems that you just need to use preset="MONTH_SO_FAR" and a rollup of 1 day. @desle said in ma-date-range-picker: Can I set up 00:00:00 - 23:59:59 one day? Just remember that with date/time ranges the start is inclusive and the end is exclusive. e.g. if you query the API for 2018-06-17 00:00:00 to 2018-06-18 00:00:00 and there is a point value at exactly 2018-06-18 00:00:00 then it will not be returned. Another way to look at it is this, if there was a point value at 23:59:59.500 (500ms to midnight) then it would not be returned if you queried for 2018-06-17 00:00:00 to 2018-06-17 23:59:59, you should be querying up to 2018-06-18 00:00:00
  • State parameters

    4
    0 Votes
    4 Posts
    1k Views
    phildunlapP
    That sounds like a CSS styling to me. text-transform: uppercase; is on the md-button class in material design's CSS.
  • Google map can not be used and can not add datasource

    5
    0 Votes
    5 Posts
    2k Views
    phildunlapP
    Did you try deleting your Mango/work/jsp directory?
  • Gauges Function AmCharts

    35
    0 Votes
    35 Posts
    29k Views
    Jared WiltshireJ
    @leoboeng The new UI module has been released.
  • Latest point values

    5
    0 Votes
    5 Posts
    2k Views
    L
    It worked, thank you.
  • Git Hooks

    15
    0 Votes
    15 Posts
    3k Views
    Jared WiltshireJ
    @rshah said in Git Hooks: What did you notice that caused you to think that was the solution @Jared-Wiltshire ? Just a hunch after playing with this stuff for a long time, the parent element had these set and it was obviously affecting the children's layout somehow.
  • ma-serial-chart can not set multiple axis and max-min

    6
    0 Votes
    6 Posts
    2k Views
    CraigWebC
    Spot on thank you!
  • Point Filter

    3
    0 Votes
    3 Posts
    1k Views
    L
    @jared-wiltshire When I search the point and select it loads the data, then when I leave the text box the point does not appear, as in the second image I sent, there the only thing I did was click outside the text field of the filter point. I wish that when he clicked off he kept the point there as selected.
  • Charts with Dashboard Designer

    4
    0 Votes
    4 Posts
    1k Views
    MattFoxM
    Happy to help where I can, I've had more than my fair share of err.. intriguing intricacies with the amcharts stuff. If you have any questions, I don't mind the occasional chat message to help you get in the right direction. You'll generally find though that a lot of questions you may have are already here in the forums. Good Luck Fox
  • Pie Chart Labels

    3
    0 Votes
    3 Posts
    1k Views
    P
    Thank Jared, That is the go!
  • Publishers send to events

    2
    0 Votes
    2 Posts
    1k Views
    phildunlapP
    Hi John-Beer, I don't think you are using Mango's names for things. Publishers make the point values of data points available to other machines. Tags are key value pairs associated with data points. The HTTP Sender sends data point values that occur while it is running over HTTP to a configured URL in a format discussed in this thread: https://forum.infiniteautomation.com/topic/2187/how-to-use-publishers-http-sender Events are either detected by data sources or data points, and tracked independently whether a condition was met or a thing didn't function as expected. These can be handled in such a way to set a point value to a data point, which can be send by the publisher. The HTTP Sender does not make any use of what Mango calls 'tags'
  • future defining of usermodule required scripts/functions help

    4
    0 Votes
    4 Posts
    2k Views
    MattFoxM
    Thanks for doing this on such short notice Jared
  • Help with scripting

    7
    0 Votes
    7 Posts
    2k Views
    P
    @jared-wiltshire Thank-you so much Jared; I have it working now thanks to your help, And a great help indeed.
  • Help with ma-switch-img

    5
    0 Votes
    5 Posts
    2k Views
    Jared WiltshireJ
    @john-beer You could use a animated gif if you want to use the switch <ma-switch-img> component. Alternatively you could just style a div to look like a LED indicator using CSS. Here's an example. You can put everything between the <style> tags into a user style sheet if you want to re-use it on multiple pages (Administration, UI settings, User stylesheet URL). <div class="ma-designer-root" id="1b41b158-5dab-4cb8-8981-1f8861f58bcd" style="width: 1366px; height: 768px; position: relative;"> <ma-get-point-value point-xid="binary" point="binaryPoint"></ma-get-point-value> <div id="eb9bf90f-9ca2-41f2-9eb1-755b5840c061" style="position: absolute; left: 172px; top: 40px; width: 50px; height: 50px;" class="led" ng-class="{'led-blink': binaryPoint.value}" ng-style="{'background-color': binaryPoint.value ? 'rgb(0, 255, 0)' : 'rgb(255, 0, 0)'}"> <div class="led-inner"></div> </div> <div id="20040fcf-9884-4eb6-8e8d-43bf4f5e0a68" style="position: absolute; left: 262px; top: 40px; width: 50px; height: 50px; background-color: rgb(0, 255, 0);" class="led" ng-class="{'led-blink': binaryPoint.value}"> <div class="led-inner"></div> </div> </div> <style> .led { border: 5px solid grey; border-radius: 50%; overflow: hidden; box-shadow: 5px 5px 5px rgba(30,30,30,0.7); } .led-inner { height: 100%; width: 100%; border-radius: inherit; } .led-inner:after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: radial-gradient(rgba(255,255,255,0.3),rgba(0,0,0,0.3)); } .led-blink .led-inner { animation: led-blink 1s ease-in-out infinite; } @keyframes led-blink { 0% { background-color: rgba(0,0,0,0); } 50% { background-color: rgba(0,0,0,1); } } </style>
  • Isometric Layout

    3
    0 Votes
    3 Posts
    994 Views
    P
    Thanks as always!
  • Linear gradients and ios safari

    5
    0 Votes
    5 Posts
    5k Views
    Jared WiltshireJ
    The two directives reference the image differently, <ma-switch-img> simply uses a <img> tag internally and sets its src attribute. <ma-svg> embeds the contents of the SVG into the page. This definitely points to the SVG not being able to reference its gradients correctly once its embedded, I'd play around with moving the <linearGradient> into a <defs> tag inside the SVG as per the stack overflow link I posted.
  • ma-serial-chart series-1-title vs series1-title

    2
    0 Votes
    2 Posts
    1k Views
    phildunlapP
    In my brief experimenting zero or more dashes are permitted between the series and its number, so, series------1-title should do the same thing as series1-title though I didn't look up where that's actually getting handled. So, I wouldn't worry about it, unless you have some cause to.
  • Chart Axes min/max not working

    8
    0 Votes
    8 Posts
    2k Views
    MattFoxM
    If you're going to use 4 series graphs, I suggest you do 4 value axes properties. Sods law, it's skipping it because the number of series charts and the values axes amount isn't the same. Just my opinion but even though you have two vertical axes, you still have four series points.