• C
    christoffv

    Good day to all the mango's :)

    I just want to know how I can use a XID in a script. I would like to compare the XID to value. If true do something. Can anybody please just tell me how to use the value. Me very very new to scripts in html5.

    Thanks
    Christoff

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • C
    christoffv

    I have created a new data point, plain subscribe to /motor1/temp1 and I get the value to show. The only difference is that the value that I can't see is a json value.

    posted in User help read more
  • C
    christoffv

    I know this is really a very dumb question, but hy do I see the history point values and not the value in the Data Point block. I have played with my setting of the data point but no luck.

    0_1520583421218_dffa79ef-286b-4c7b-8f34-9992ae6a1506-image.png

    posted in User help read more
  • C
    christoffv

    Thanks a million, It works now, This is why you need that extra pair of eyes.

    Thanks everyboy

    posted in User help read more
  • C
    christoffv

    Sorry, missed the most important part.

    0_1520349682356_66ae142b-82c0-42c2-8420-339a6f69f160-image.png

    posted in User help read more
  • C
    christoffv

    I am trying to generate some mqtt json data that I publish to a mosquitto server, and mango gives me this error.

    MY python code:

    import paho.mqtt.client as mqtt
    import json

    broker = "192.168.111.51"
    topic = "/BrokerID/Support/Broker"

    d = {}
    d["Format"] = "RegisterBroker"
    d["BrokerID"] = "AABBCCDDEEFF"
    d["Version"] = "1.0.5"

    data_out = json.dumps(d, ensure_ascii=False)
    print(data_out)

    mqttc = mqtt.Client()
    mqttc.username_pw_set("xxx", password="************")
    mqttc.connect(broker, port=1883, keepalive=60)
    mqttc.publish(topic, data_out)


    Mango error:
    ERROR 2018-03-03T19:55:39,388 (com.infiniteautomation.m2m2.mqtt.client.MqttClientDataSourceRT.messageArrived:371) - Error during read topic: "/BrokerID/Support/Broker" datapoint: "MyPi - Register Broker" payload: "{"Format": "RegisterBroker", "BrokerID": "AABBCCDDEEFF", "Version": "1.0.5"}" exception: "Invalid input: JSON Pointer expression must start with '/': ":""

    THanks, hope somebody can put some light on this.

    Christoff

    posted in User help read more
  • C
    christoffv

    @joelhaggar Can you please forward me the link for the mqtt demo, the supplied link is not working.

    Thks
    Christoff

    posted in Wishlist read more
  • C
    christoffv

    Possible toward any documents on how to use Mango with mqtt?

    Thanks

    posted in Wishlist read more