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.

  • Time sync to a Modbus device

    9
    0 Votes
    9 Posts
    4k Views
    phildunlapP
    Certainly! Glad to hear you got it working!
  • Is it possible to read several csv documents by scripting?

    4
    0 Votes
    4 Posts
    2k Views
    phildunlapP
    Certainly! I did just edit it though... needed to be more caring with system resources than I was.
  • Import javascript library

    scipting javascript
    98
    0 Votes
    98 Posts
    142k Views
    phildunlapP
    Maybe you should try adding echo $PATH; to your CoolpropScript.sh Did you add a user? If you're editing using crontab -e, you may be running them as the mango user and may have various file permission issues to tackle. If you place them with a user specified in the /etc/cron.d directory you may have more luck.
  • Is there a limit on # points in context memory

    6
    0 Votes
    6 Posts
    2k Views
    phildunlapP
    Okay. You may want to hit the /rest/v1/threads?stackDepth=30&asFile=true endpoint if you think it is stuck, then email it to me and I'll let you know.
  • Is it possible to delete a point Value through scripting?

    5
    0 Votes
    5 Posts
    2k Views
    phildunlapP
    The CONTEXT object was recently added to the contextual "Mango JavaScript" help dialogue, but I'm not sure the help page was updated. It's been around for a long time housing the runtime of the script and a few helper functions. The timetsamp was recently added for a particular purpose. The second item, com.serotonin.m2m2.Common.databaseProxy.newPointValueDao() is actually a specific call into the Java code. The com.serotonin.m2m2 is the package path to the class Common, which has member variable databaseProxy. The returned object is still a native Java object. There isn't documentation for this because it simply wouldn't be feasible. The code is open source, it's about the best we can do for direct references to the Java code.
  • Adding Metadata Source: error occured.

    2
    0 Votes
    2 Posts
    2k Views
    phildunlapP
    Hi Henry, You should consult the logs in a time like this, either at Mango/logs/ma.log or /logging_console.shtm
  • How can I published topic (mqtt) from a script

    3
    0 Votes
    3 Posts
    2k Views
    F
    Hi, thank by you rensponse I use set() but the topic no change or no change in the data point.
  • Hi All , javascript function to change multi-modbus serial point value

    2
    0 Votes
    2 Posts
    1k Views
    phildunlapP
    Hi Joe, Sorry this took so long to respond to. Is that toggle function working for you? You could tie your button to call a function that calls the toggle function several times, function toggleStuff() { togglePoint("F6_B01_R01"); ... togglePoint("F6_B01_R08"); } but perhaps your question is more complex? There are also endpoints for updating several data points at once, if you wished to make fewer API round trips, the /rest/v1/data-points endpoint (not data point xid, must be supplied in each point in the list in the PUT content.
  • Is DataPointWrapper object accessible for a runtime object?

    12
    0 Votes
    12 Posts
    5k Views
    phildunlapP
    This was released in 3.2
  • Handling modbus registers in a script

    2
    0 Votes
    2 Posts
    1k Views
    phildunlapP
    Hi przemom, Meta point scripts don't have the .set() function like a scripting data source does. So, your options are either to use a point link from your meta point to your modbus point, or to configure a scripting data source to set the value using varName.set( 12.34 );
  • How to find source name in pointlink

    4
    0 Votes
    4 Posts
    2k Views
    phildunlapP
    Certainly! Welcome to our forum!
  • How to calculate cumulative change in value only if certain condition is true

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    phildunlapP
    Hi gourav, It sounds like you want a numeric Meta point something like this... //valve is the boolean point controlling the valve, updating ontext, logging on change //total is the numeric point measuring the weight in the vessel if(valve.value || my.time > valve.lastValue().time) return "no value"; //we'll not be logging here... set data type exception to ignore! //Okay, valve just closed var values = valve.last(2); var difference = total.value - total.pointValueBefore(values[1].time).value; return my.vaiue + difference;
  • How to calculate an accumulating or running total on a point.

    5
    0 Votes
    5 Posts
    3k Views
    phildunlapP
    Glad to hear it!
  • Scripting Data source not running or updating script points.

    11
    0 Votes
    11 Posts
    4k Views
    phildunlapP
    Certainly! Glad you got it working!
  • Issue with kWh averaging meta script during a power outage.

    3
    0 Votes
    3 Posts
    2k Views
    raylatbasixR
    Hi Phil, Thanks for the advice, and also the script help. I will give this a try. Kindest Regards, Ray
  • 0 Votes
    15 Posts
    6k Views
    raylatbasixR
    Hi Phil, The lowest I've seen the delta go is -1.1 or so. I like the Idea of < -50, I think that will work. I will give this a shot. Thanks Again.
  • Best way to compare a previous time period on the same data point.

    13
    0 Votes
    13 Posts
    5k Views
    raylatbasixR
    Awesome, Thanks.
  • 0 Votes
    6 Posts
    3k Views
    raylatbasixR
    Your the best Phil, ago(SECOND, 86399) The above took care of my issue. My Generated history looks more accurate now. Thanks so much!
  • Totalized/Sum Binary Point per Day

    3
    0 Votes
    3 Posts
    2k Views
    M
    I got this to work: return point.past(MINUTE, 1440).get(true).starts; Thanks.
  • Script - Mimic No Update State

    14
    0 Votes
    14 Posts
    5k Views
    M
    Replacing data.count == 0 with data.length == 0 now works. Thanks for your help Phil.