• B
    Balistar

    Solution is to use REST API instead.

    curl -X POST "http://192.168.1.2:8080/rest/v2/point-values?fireEvents=NEVER"

    API follows JSON syntax "Square brackets hold arrays and values are separated by ,(comma)"

    [
      {
        "annotation": "",
        "dataType": "NUMERIC",
        "timestamp": 1576117390000,
        "value": 227.1,
        "xid": "DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae"
      },
      {
        "annotation": "",
        "dataType": "NUMERIC",
        "timestamp": 1576117400000,
        "value": 228.1,
        "xid": "DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae"
      },
        {
        "annotation": "",
        "dataType": "NUMERIC",
        "timestamp": 1576117410000,
        "value": 229.1,
        "xid": "DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae"
      },
      {
        "annotation": "",
        "dataType": "NUMERIC",
        "timestamp": 1576117342000,
        "value": 220.1,
        "xid": "DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae"
      }
    ]
    

    Full CURL with this body:

    curl -X POST "http://192.168.1.2:8080/rest/v2/point-values?fireEvents=NEVER" -H "accept: application/json;charset=UTF-8" -H "Content-Type: application/json;charset=UTF-8" -H "X-XSRF-TOKEN: 58594b34-9a0d-4417-9b23-xxxx" -d "[ { \"annotation\": \"\", \"dataType\": \"NUMERIC\", \"timestamp\": 1576117390000, \"value\": 227.1, \"xid\": \"DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae\" }, { \"annotation\": \"\", \"dataType\": \"NUMERIC\", \"timestamp\": 1576117400000, \"value\": 228.1, \"xid\": \"DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae\" }, { \"annotation\": \"\", \"dataType\": \"NUMERIC\", \"timestamp\": 1576117410000, \"value\": 229.1, \"xid\": \"DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae\" }, { \"annotation\": \"\", \"dataType\": \"NUMERIC\", \"timestamp\": 1576117342000, \"value\": 220.1, \"xid\": \"DP_a9b3bce6-98ea-493a-b840-2450f3ffc3ae\" }]"
    

    posted in How-To read more
  • B
    Balistar

    Is there a way to bulk upload to the HTTP Receiver?
    With value and time

    Something like:

    parameterName=value@time

    temp=21.2@1576137626&
    temp=21.3@1576137636&
    etc...

    I can only get the first temp.

    posted in How-To read more
  • B
    Balistar

    Thanks. New version solved issue.

    posted in User help read more
  • B
    Balistar

    After upgrade from 3.4 to 3.7.3 HTTP JSON Retriever points started throwing events.

    Timestamp was not parsable, value= for point L1 Volt
    

    In point properties the Value JSON pointer is of course defined.
    The Time JSON pointer is not, simply because the JSON does not have it. This was not an issue before, and events were not thrown in 3.4. In 3.7.3 it does.

    What is the best way to set properties without a Time pointer?

    posted in User help read more
  • B
    Balistar

    I have upgraded all modules from 3.4 to 3.7.4.
    Loading system hangs at "Initializing pooled connection manager"

    INFO  2019-12-10T11:01:47,493 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'internal', v3.7.0 by Infinite Automation Systems Inc. 
    INFO  2019-12-10T11:01:50,104 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license... 
    INFO  2019-12-10T11:01:50,252 (com.serotonin.m2m2.db.BasePooledProxy.initializeImpl:36) - Initializing pooled connection manager
    

    mySQL only gets one hit from mango:

    2019-12-10T03:01:50.888382Z         8 Connect   root@localhost on mango using SSL/TLS
    

    When I comment-out all mysql enteries in overrides/properties env.properties and remove the h2 comments, systems loads OK (with obliviously very old settings before we moved to mysql.)

    Ubuntu 19:10
    mysql 8:0.18

    posted in User help read more
  • B
    Balistar

    Hi Jared,
    Since the new UI Module, the vendor CSS files, that are suppose to be loaded automatically, are blocked from loading in my Custom Dashboard.

    mangoUi~ngMango~ngMangoServices.js:39 Refused to load the stylesheet 'http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'".
    

    I believe I changed everything in my dashboard and is following your admin template.
    Other than styling my dashboard works fine.

    mangoUI 3.4.5
    on Chrome 67

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • B
    Balistar

    The best would be if your customer's network has its own IP address. Simply do a port forward on the network's router.

    Bar that, install teamviewer.com on the computer running Mango, or a bit more secure on another PC attached to the customer's LAN.

    posted in User help read more
  • B
    Balistar

    OK. In any case the current JSON retriever works fine in 3.2.

    I find this tool to be very helpful to quickly get the correct slashes for the pointers:

    www.jsonpointer.com

    posted in Mango feedback read more
  • B
    Balistar

    Missing again.

    Document file not found: .../mango/web/WEB-INF/dox/httpJsonRetrieverDS.htm

    core 3.2.2+20171009170034

    posted in Mango feedback read more
  • B
    Balistar

    @jared-wiltshire said in maEventAudio issues:

    @balistar
    I came checked into this and if you use acknowledged="false" instead of acknowledged="'false'" you should get the correct result.

    Thanks, that worked. "Acknowledge Box" shows all filtered events.

    posted in User help read more