• terrypacker

    Ah yes I forgot about that setting. Using the menu: Safari --> Preferences --> General then uncheck:

    Open "safe" files after downloading

    posted in Mango Automation Installation read more
  • terrypacker

    @Pedro I was just reviewing this and had a few questions:

    1. Are you seeing any Data Lost events? If so these should enlighten us as to why this is happening, they get raised whenever a batch fails to write. I would make sure that event level is set to something other than Do No Log too.

    2. Do you have any Alphanumeric points that would be saving very large strings of text? The NoSQL database has a limit to the size of each entry, which is large but its possible this could cause these symptoms.

    posted in User help read more
  • terrypacker

    @CraigWeb @cwangv I also use OSX and have found that if you use the Finder to unzip a Mango core it will not preserve the executable bit for the *.sh files inside the zip and it also adds a quarantine attribute to every file.

    You can manually remove these and then set the executable via chmod but I find that just unzipping the file from the command line will retain the executable bit. So I usually execute unzip <core-file>.zip. This still leaves all the files quarantined though. See the @ on the end of the attributes:

    -rwxr-xr-x@ 1 mango staff 1089 Jul 8 22:15 ma.sh

    xattr -l ma.sh
    com.apple.quarantine: 0083;5d26502d;Safari;2F8BDDE1-3098-4B0D-A0B5-316BD592EFBF
    

    You can remove the quarantine attribute for all the files recursively if you execute this in your MA_HOME folder.
    sudo xattr -dr com.apple.quarantine . (Note the dot to mean from this directory)

    The quarantine attributes don't seem to matter much as they are used by the launcher when you double click a file to execute it, which won't happen since you need to execute ma.sh start at the command line to run Mango.

    posted in Mango Automation Installation read more
  • terrypacker

    Sorry, our maven repository only holds the latest snapshot versions and lets the older ones roll off. The latest version is 3.6.1-SNAPSHOT for the api module. Since that version will also eventually drop off of the repository I would suggest you use the release version of the api module as that will always be available. So change the dependency from 3.6.0-SNAPSHOT to 3.6.0 and you should be good to go.

    posted in Development general discussion read more
  • terrypacker

    @jwang I have been working on getting some examples setup to help build a data source that might be of help.

    Here is a repository that I'll be adding to in the coming weeks but for now it has one example polling data source that works with Mango 3.6.0 its a vanilla module that can be used as a starting point:

    https://github.com/infiniteautomation/ma-modules-contrib

    Here is another one I recently completed as a user module that is not part of the Mango codebase:

    https://github.com/terrypacker/mango-modules/tree/master/acurite-ds

    There is one thing that both of these pom.xml files don't have that would allow you to develop and build them without any of the Mango code checked out locally, which would be to reference the IAS Maven repositories. You can add them into the pom like this:

    <repositories>
        <repository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
            <id>ias-snapshots</id>
            <name>Mango Dependencies</name>
            <url>https://maven.mangoautomation.net/repository/ias-snapshot/</url>
        </repository>
        <repository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>ias-releases</id>
            <name>Mango Dependencies</name>
            <url>https://maven.mangoautomation.net/repository/ias-release/</url>
        </repository>
     </repositories>
     <pluginRepositories>
        <pluginRepository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>ias-snapshots</id>
            <name>Mango Dependencies</name>
            <url>https://maven.mangoautomation.net/repository/ias-snapshot/</url>
        </pluginRepository>
        <pluginRepository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>ias-releases</id>
            <name>Mango Dependencies</name>
            <url>https://maven.mangoautomation.net/repository/ias-release/</url>
        </pluginRepository>
     </pluginRepositories>
    

    posted in Development general discussion read more
  • terrypacker

    @carnecro I've never actually attempted to do this but from looking at the code it would seem that the returned list of properties for an all request is built from the properties that are added in the ObjectProperties class. The list for an AnalogObjectValue is created on roughly line 706. I would think that if you were to manually add your proprietary properties to this map when you initialize your AnalogValueObject then they will be returned in a request for all properties. So this code, executed once will likely solve your problem:

    boolean required = true; //If property is required
    PropertyIdentifier yourCustomPropertyId = new PropertyIdentifier(492);
    com.serotonin.bacnet4j.obj.ObjectProperties.add(ObjectType.analogValue,  yourCustomPropertyId, YourCustomPropertyClass.class, required);
    

    Also as a side note I've dealt with some hardware BACnet devices that don't let you read the PropertyIdentifier.all(#8) which has forced us to not be able to rely on that type of request.

    posted in BACnet4J general discussion read more
  • terrypacker

    @raylatbasix all endpoints located below /rest are restricted to authenticated users. For a 3rd party app I would suggest token authentication which is quite easy to use from the client side by including the token in the Authorization header as shown on this page:

    https://help.infiniteautomation.com/mango-rest-api-authentication?rq=token

    Ensure you use https to protect the token.

    posted in User help read more
  • terrypacker

    @phillip-weeks said in Upgraded to 3.6 Legacy DS Import CSV giving errors:

    OK that makes sense I think mango expects comma delimited correct?

    Yes you are correct.

    As for Excel and quotes, I just did a little test locally and Excel will add quotes but only when it is totally necessary (like when a comma exists in the data, or a quote exists in the data). So I was able to export a CSV from Mango open with Excel 2008 and the save it and re-import it fine. The quotes did change but they are still strictly correct.

    Mango makes no effort to determine if quotes are required as it is legal syntax to put them around every entry so long as the escaping is respected.

    Hope that helps.

    posted in User help read more
  • terrypacker

    @Phillip-Weeks I just checked the format of the files you sent over, it looks like Excel has mangled the CSV format. Excel is capable of handling tab delimited formats and I've seen it default to importing a CSV and then replacing the commas with tabs etc. I would open the file you downloaded from Mango in a text editor and compare that to what you saved out of Excel to make sure you can get the format right before uploading it.

    posted in User help read more
  • terrypacker

    @Phillip-Weeks the legacy UI no longer supports CSV downloads, this was lost during the upgrade of the v2 REST api. Would it be possible to use the much improved CSV export/import feature in the new UI?

    https://help.infiniteautomation.com/bulk-importing-data-points?rq=bulk%20data

    posted in User help read more