• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. v8dave
    3. Topics

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 34
    • Posts 120
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by v8dave

    • V

      Data not showing when user selects the page

      User help
      • • • v8dave
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      CraigWebC

      Yes, a couple of people have complained about excel doing that. If you are working on the latest version of mango you can edit multiple data points at the same time which in most cases, you will not need to export and edit.

      If not you should use libre office instead of excel. it handles CSVs much better than excel. Another option is to use VS code text editor. You can highlight a text, right-click and choose change all occurrences.

    • V

      How do change text colour based on data update?

      Mango Automation general Discussion
      • • • v8dave
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      phildunlapP

      Hi v8dave,

      That sounds to me like a time to use the ng-class attribute, where you can use logic to apply one or another CSS class.

      For example, this thread has an LED of many colors throbbing: https://forum.infiniteautomation.com/topic/4469/how-to-make-style-blinking-via-value/4

      There are also many other examples of using ng-class on the forum.

    • V

      Can't get transform rotate() to work

      Mango Automation general Discussion
      • • • v8dave
      5
      0
      Votes
      5
      Posts
      1.6k
      Views

      Jared WiltshireJ

      @v8dave said in Can't get heading to change:

      This is the error from the console.

      mangoUi~ngMango~ngMangoServices.js?v=f41ab677f738e8ffe5b8:39 Error: <g> attribute transform: Expected number, "rotate()".

      You have not addressed any of the other comments I have made. You can see from that error that myDirection.value is undefined. See above for how to solve and for how to stop the error in the console.

    • V

      How to create data points to handle MQTT from multiple devices?

      Mango Automation general Discussion
      • • • v8dave
      7
      0
      Votes
      7
      Posts
      1.5k
      Views

      I

      For another option, the strategy I took was that I created global scripts to create the data points (MQTT/Modbus, virtual, meta) for my devices.

      The scripts I have are:
      dataPointJsonTempates
      --> This script contains the minimal set of values I need to set for each type of data point.
      createDataPointFunction
      --> This script contains the list of points I need for each of the devices. It loops through each list of points and calls the appropriate function below.
      createDeviceFunctions
      --> This script creates each of the appropriate data point, event detector, and event handlers.

      The intention was to detect the error generated when an unknown MQTT topic is subscribed to and create the required data points from the device id in the topic. I haven't gotten that working yet but it is a lower priority item at the moment.

      For now, I have a scripting data source to call the function:
      createDevice('PCU_110006');

      I have created multiple 'createDataPointFunctions' scripts for the different devices I need. The same pattern is applied.

      Ian

    • V

      How to input creation date into Excel report

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      2
      0
      Votes
      2
      Posts
      1.6k
      Views

      JoelHaggarJ

      We are planning to add in some features so you can add in things like the time that the report was run. You could also just create the cell with the named range of "time.lastTime" If you bind a data point that is logging regularly it will insert the last time stamp of that data point. You could also create a virtual data point or meta datapoint to store a time value.

    • V

      How to get browser to show server time

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      5
      0
      Votes
      5
      Posts
      2.8k
      Views

      P

      Jared; Should this code also work in v3.0 I tried it in both play areas and only 2.8.8 works? Is there a different format in 3? Thanks.

      maMoment is the change

    • V

      Strange error: Invalid non-numeric rollup type: AVERAGE

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      3
      0
      Votes
      3
      Posts
      1.9k
      Views

      V

      I don't have any boolean points showing on any dashboard displays.

    • V

      Mango just just shuts down

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      3
      0
      Votes
      3
      Posts
      2.2k
      Views

      V

      Just a quick update, My client finally updated the server to a 4GB memory option and for 24 hours now we have not seen any shutdowns. Previously we would see at least 5-6 in that time.

    • V

      How to set this value on loading the page

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      Will GellerW

      You will want to use ng-init. you can pretty much put it anywhere on the page but I usually put them on a parent div or just drop one in like:

      <div ng-init="rollupInterval='1 minutes'"><div>

      You can put any angular expressions in ng-init similar to what you are doing on ng-click. The code will just be run automatically run on page load rather then after a click event.

    • V

      Dreaded out of memory issue

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      13
      0
      Votes
      13
      Posts
      5.4k
      Views

      V

      That should have said DOESN'T LIKE.

      Seems more stable with 512.

      We have 20 data points with one system and 15 on another. I've already suggested to the client we upgrade to the 4GB and as we are looking to get more clients, we will probably move this from the current virtual server to a dedicated real one soon and that comes with 8GB of RAM.

    • V

      MangoAPI. Is there any documentation on how to use this module?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      phildunlapP

      It hosts a set of URLs that information can be requested from, if you have authenticated. You can play with it by enabling swagger by setting swagger.enabled=true in your env.properties file and restarting Mango, then navigating to http://[ip]:[port]/swagger

      Edit: In Mango versions after 3.5, it would be found at [ip]:[port]/swagger-ui.html

    • V

      How to setup and event on rate of change?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      28
      0
      Votes
      28
      Posts
      14.1k
      Views

      phildunlapP

      Very true. The community definitely makes me take a closer look at many things, which I enjoy.

      Virtual points can be useful to check if your meta point is behaving as you expect.

      The blue help icon (?) in sections with scripts has a 'related item' called 'Mango JavaScript' that documents the functions a data point has. Examples are definitely spread around the forum as well. There's a whole section called 'Scripting general discussion'

    • V

      Email won't connect to the server

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      6
      0
      Votes
      6
      Posts
      2.2k
      Views

      V

      Ah ha. I just tried one of the other ports that it supports, 80 and that works and I then change this in the email settings and it sends the emails.

      Will wait now and see if the scheduled email in a few hours gets sent out.

    • V

      Alarm on limits breached. Is this possible?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      3
      0
      Votes
      3
      Posts
      1.7k
      Views

      V

      That works fine now that I know how to set them up.

      Cheers.

    • V

      How to create tanks like this page?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      4
      0
      Votes
      4
      Posts
      2.0k
      Views

      Jared WiltshireJ

      Hi Dave, I understand your need for the list of directives. It is definitely something that is on our agenda. In the meantime the examples are a pretty comprehensive resource if you read through them.

      There is no need to use AmCharts for what I was suggesting, I was suggesting to use something like the vertical bar from the "bar display" example. The example just couples plain HTML elements with CSS styling. Take a look at the style sheet which is linked to from the example to see where the border radius is used. I was thinking you could set the border radius to a larger value to give it more of a tank like appearance (make it wider too).

      CSS is a web standard used for styling elements on web pages - see here https://developer.mozilla.org/en-US/docs/Web/CSS
      Or more specifically for the border radius property - https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius

      We do intend on making it easier for laymen to create and manipulate dashboards, unfortunately at the moment if you need to create customized components you will require some web development knowledge.

    • V

      ma-date-range-picker custom ranges?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      3
      0
      Votes
      3
      Posts
      1.6k
      Views

      V

      Perfect Woody. With a little bit of work to make some minor changes it does what I need and I can leave the original there too.

      Thanks.

    • V

      How to limit list entries to a particular data source?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      9
      0
      Votes
      9
      Posts
      2.5k
      Views

      JoelHaggarJ

      Ok so I'm going to assume you got that working then?

    • V

      How to include another HTML file on the end of another?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      6
      0
      Votes
      6
      Posts
      2.2k
      Views

      JoelHaggarJ

      You could do that a few ways.

      Use the username or users group in the RQL query for the data points.

      Do an RQL query to get a list of unique Device Names the users has permissions for and then use those in the drop down. It would default to the first one but if they had permissions for more then one they could still use a selector.

      Put all the data points in a point hierarchy folder that matches the username and use the username in a point hierarchy query.

      There are probably more ways but I think this should give you some ideas. This is probably something we could put some examples together on in the coming weeks.

    • V

      How to get the time of the last received data for a DataSource?

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      12
      0
      Votes
      12
      Posts
      3.1k
      Views

      V

      I think I got it to work. I won't know until the data starts to come in again. Needed the dual curly brackets :)

      <img ng-src="{{(currentTime - mywatchdog.time) > 300000 ? 'img/ligthbulb_off.png' : 'img/ligthbulb_on.png'}}">
    • V

      Image not showing in dashboard page1.html

      Dashboard Designer & Custom AngularJS Pages
      • • • v8dave
      2
      0
      Votes
      2
      Posts
      1.2k
      Views

      Will GellerW

      The reason those images are not found are those src paths are relative to the custom dashboard that is using page1.html while the the image actually exists in the /mdAdmin folder that contains the dashboard docs pages.

      So you would need to jump up one folder from your custom dashboard then into /mdAdmin to find those images. This worked for me:

      <ma-switch-img point="motor1" ng-click="motor1.toggleValue()" src-false="../mdAdmin/img/ligthbulb_off.png" src-true="../mdAdmin/img/ligthbulb_on.png" default-src="../mdAdmin/img/close.png">