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.

  • ma-point-values, Multiply values

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • New Module development, getting started

    4
    0 Votes
    4 Posts
    3k Views
    phildunlapP
    The BACnet module's source is closed, so you cannot build that yourself. You downloaded the demo of the 3.0 core, so you can grab the BACnet module from 3.0/web/modules/BACnet, you can just move that into your git/ma-core-public/Core/web/modules and it will be loaded when you launch the core. That's where you got the Meta data source. You will from build the pom.xml. Right click on it, run as a maven build. For the settings you need to link to the settings.xml file (which is in the other Maven builds you have defined for Virtual and Serial), the target is 'install' and the profile is 'install-module' (from the settings.xml file). This will create m2m2-YourModuleName-x.x.x.zip in git/ma-core-public/Core/web/modules which will be loaded when you launch Mango. Your module's 'loading' is done by checking which definitions classes (those in the com.serotonin.m2m2.module package) are extended in your module, and using them accordingly.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Ant build terminates with no messages

    23
    0 Votes
    23 Posts
    23k Views
    phildunlapP
    I have just done this again, new Eclipse workspace on the previously fresh computer. I started by deleting C:\Users\Phillip\.m2 to attempt to get it back to perfectly clean. Then I opened a new Eclipse workspace and cloned the projects from Github. I right clicked on the Core\pom.xml and did a Run As... --> Maven Install. I had to set / add my JDK again in Eclipse, through Window --> Preferences --> Java --> Installed JREs, (as well as the nested "Execution Environment" panel for JavaSE-1.8 and 1.7). Then I got some errors about Jars when running the maven install after setting the JDK. So, I did a Run As... --> Maven Clean on Core\pom.xml. Then I closed Eclipse, then deleted C:\Users\Phillip\.m2\repository. Then opened Eclipse into that workspace again, right clicked on Core\pom.xml, Run As... --> Maven Install ... success! Debug configurations.... Java Application --> New, selected project CoreBundle, did a search for Main classes, com.serotonin.m2m2.Main was right there in the list. Selected that, added the -Dma.home="C:\IA\Instance4\ma-core-public\Core" VM argument and started Mango.
  • Getting things to build (Eclipse-Neon, Maven, Ubuntu)

    2
    0 Votes
    2 Posts
    2k Views
    E
    Looks like a corrupt jar in Maven .... now to the next issue looks like I am missing a library Tests in error: DateUtilsTest.testPreviousMinutes:43 NoClassDefFound org/joda/time/DateTime DateUtilsTest.testPreviousMonths:170 NoClassDefFound org/joda/time/DateTime DateUtilsTest.quickTest:24 NoClassDefFound org/joda/time/DateTime DateUtilsTest.testPreviousHours:74 NoClassDefFound org/joda/time/DateTime DateUtilsTest.testPreviousWeeks:136 NoClassDefFound org/joda/time/DateTime DateUtilsTest.testPreviousYears:201 NoClassDefFound org/joda/time/DateTime Tests run: 6, Failures: 0, Errors: 6, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Mango Parent ....................................... SUCCESS [ 0.462 s] [INFO] Mango Assembly Descriptors ......................... SUCCESS [ 0.555 s] [INFO] Mango Core ......................................... FAILURE [ 1.329 s] [INFO] Mango Modules ...................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE
  • How to include Mango graphics in my App?

    2
    0 Votes
    2 Posts
    2k Views
    Jared WiltshireJ
    @jefero We don't have an example for integrating the Mango dashboards components into an app, however you should be able to leverage the Angular modules which are in the MA_HOME/web/modules/dashboards/web/js/mango-3.3 folder. I'd suggest looking at the adminTemplate/app.js file to see how to bootstrap the Angular application. The login procedure is cookie based at the moment so its not ideal for integrating into an app. We will be implementing JSON Web Token authentication for the REST API in the next release.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Error when building Graphical views with Mango Module

    2
    0 Votes
    2 Posts
    2k Views
    phildunlapP
    Hi Dung, You need to mvn install the core project. So, cd /path/to/repos/ma-core-public mvn install
  • How to build Mango Source the right way in Eclipse?

    3
    0 Votes
    3 Posts
    3k Views
    T
    Hi Joel, Thank you so much for your help ^^
  • Angular JS, Area Charts

    8
    0 Votes
    8 Posts
    5k Views
    Jared WiltshireJ
    I've also posted a topic here with more detail on upgrading your dashboard.
  • Exception when create private data source(with private module)

    2
    0 Votes
    2 Posts
    2k Views
    phildunlapP
    Hi Mebius, The error is as described, there is a mismatch in point type. Either this is in your code in the data source definition class you didn't define a unique data source type, or (more likely) you used another tab to browse either a data source or data point, which due to some state saved on the server in the user's session, then tried to perform an action which had relied on the state being another way. Eventually, it is our intention to remove a lot of this state tracking, but lots of pages use DWR so it is not a small effort. To know if that is it, you would just have to edit the point again (click the pencil) and try to make your changes and save it again.
  • Implementation with Intellij IDEA

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Test Framework for Mango

    12
    0 Votes
    12 Posts
    10k Views
    phildunlapP
    Hi Sasa, For the core I believe that's all.
  • Building Mango and HTTP Publisher

    8
    0 Votes
    8 Posts
    5k Views
    phildunlapP
    Hi Sasa, You are most welcome! The build.xml file in each other module's project can be used to build the module. Simply use these for your ant builds, and you can copy it into new modules and it should work fine. It relies on your core.home ant variable to point to the /path/to/ma-core-public/Core as it references that "module-build.xml" and it needs to know where to deploy the modules. This property was probably already set, as you need it to build the Core.
  • "BUILD FAILED" when build "MBus module" -- mbus-ds:jar:1.1.3 not found

    7
    0 Votes
    7 Posts
    4k Views
    mebiusM
    @phildunlap Hi phildunlap, I use the code from zip file instead of cloning code from git, module build works fine now with the same steps. Thank you very much for your kind help.
  • Developing a module

    3
    0 Votes
    3 Posts
    3k Views
    Woody BeverleyW
    Thanks for updating this with the solution Matteo.
  • Importing XML with DataFile

    8
    0 Votes
    8 Posts
    4k Views
    phildunlapP
    I can share the XSD, which was created by just copying the XML into an online XSD generator. Then you use JAXB to generate the class given in the last post, before adding the function mentioned.. 0_1467214195787_trendReport.xsd
  • API to CRUD publisher/data source/data point

    2
    0 Votes
    2 Posts
    2k Views
    Woody BeverleyW
    Hello Ricardo, The short answer is no. In the weeks and months ahead we will be expanding our API. Maybe you can make a good case for this feature in our Wishlist section. Thanks,
  • Not being able to configure CORS

    3
    0 Votes
    3 Posts
    3k Views
    terrypackerT
    Make sure you set the 'Accepts' header to application/json. It's possible that Mango can't figure out what type of response you want.
  • Problems Creating Datasource Modbus RTU

    6
    0 Votes
    6 Posts
    4k Views
    M
    I tried to create a connection in scadaBR and works perfect, attached image. [image: 5eAwp3r.jpg]