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.

  • TCP to Serial and the nmea listener

    2
    0 Votes
    2 Posts
    4k Views
    P
    I'd like to share a little work-around my buddy and i discovered whilst developing a certain project. We use mango for our SCADA environment and especially love the flexibility of it. This is shown out in the way we use the nmea listener. PROJECT: We needed a way to parse a comma separated sentance from a self built board and micro-processor (16fxxx for the nerds out there) Well, the nmea listener did the trick, but then out in the field it proved a little difficult as rs232 doesn't really like a 15 mile cable! So we packaged it up with a modem and sent it via GPRS on, well, lets say TCP port 5555 We then installed a piece of free software (see below) to forward the TCP message to a Virtual Serial Port - COM6. And...as you can see from the attached screenshots, it worked pretty well SOFTWARE: Mango (of course!) Virtual Serial Port Emulator from www.eterlogic.com (free for 32bit platform) Install the software and create a new 'connector' (er...com port) set it with defaults and tick the 'emulate baud rate' box. Then create a 'TCP Server'. Enter the TCP port you want the Server to listen on. Then choose the newly created serial port and in serial port settings, choose 19,200 baud and leave rest as default. Initialize the new 'Devices' and send some data. Create your NMEA listener as a data source in Mango and listen for data. With any luck, you should see some data coming in. THINGS TO WATCH OUT FOR: The NMEA listener is limited to 9600 baud. Thats fine, but your COM Port must be set to at least double that (19,200) for mango to hear your transmission. I don't know the exact reason, maybe someone else could offer an explanation. Don't 'enable' the NMEA data source in mango if you're trying to listen to test data. It will hog the serial port. I'm sure you know that, but it took me while to figure !! I hope someone finds this useful. After all we've benefited so much from this resource. njoy Attachment: download link
  • TCP/IP CAI WebControl I/O Board

    2
    0 Votes
    2 Posts
    6k Views
    M
    I stumbled on the CAI WebControl I/O board on another forum. it is an exceptional value at $34.00. 8 TTL out, 8 digital in, 3 analog in, 1-wire temperature (non-parasite power and very voltage sensitive), and humidity sensor input, microprocessor with PLC or Boolean 4000 line of code possible. Order on Amazon.com Hooks up to your LAN via standard TCP/IP. I can access it internally on any computer on the LAN or remotely off site with appropriate router settings. I have it interfaced with Mango retrieving data with HTTP Retreiver data source. Took me awhile of googling to find the xml. It is not documented for some reason in the manual. http://www.redhillnetworks.com/products/webcontrol/index.html Latest firmware also reportedly handles X-10 output by using two of the DO and an RF transmitter (310 mhz in US). I am very excited about this since Mango never did implement X-10. I have not tried this yet. Here is a screen shot of data source retreiving temperature sensor 1 data: Attachment: download link
  • How to collect and manipulate data in Mango?

    3
    0 Votes
    3 Posts
    5k Views
    I
    Hmmm... this is a month old with no replies - I am surprised. I am not a Mango expert, but what you want is what Mango is all about so I will try to point you in the right direction. Once you have the Modbus up and running, you need to create and configure one or more Data Sources. There is an icon for this. Once this is done, start adding and configuring data points for each data source. To calculate total energy you can define a Meta Data Source, and data points in it can be set up to be calculated from raw data from your PV system. This is all basic stuff for Mango and there should be items in the forum that will answer your questions (and maybe already have?) ;-) Ian
  • Triggering TimeSync to end devices

    23
    0 Votes
    23 Posts
    20k Views
    J
    Don't worry. Sure you are faster than my C++ skills
  • Arduino (BlackWidow) and Mango WIRELESS

    3
    0 Votes
    3 Posts
    4k Views
    M
    In Mango the library for ModbusIP is same as for serial. It's a different data source though.
  • Render dynamic graphics in customview

    9
    0 Votes
    9 Posts
    6k Views
    A
    Maybe this helps: http://wztip.info/index.php/Main_Page Arne
  • Howto Manage different kinds of data coming from the same modbus port

    7
    0 Votes
    7 Posts
    5k Views
    A
    Hello Craig, for information, actually I understand now why I had a difficulty here. In a meta data source, when I create a new numerical point "example", "example" is not available in the script context. Even if I save it, open an other point for edition and come back to "example" to edit it, it is still not available in the script context. Saving the data source doesn't help. I am forced to close the meta datasource, to reopen it for edition and then only when I edit the newly created point "example" (or any other point), "example" is available in the script context. Alex
  • V.1.11.0 installed but OPC DA datasource is not there :(

    19
    0 Votes
    19 Posts
    12k Views
    S
    ... just an update... been playing around and can now connect to the opc server.... but its only showing tags in the default container 'SystemVariables' and not my tags present in my group containers...??
  • Calling super.jsonSerialize(...)?

    4
    0 Votes
    4 Posts
    4k Views
    M
    Yes, you must explicitly call super for the serialization to work properly. The JsonReader provide access to some useful utilities that you may or may not need. Some code needs it, so it's there.
  • Custom dynamic bar and dial gauge

    4
    0 Votes
    4 Posts
    5k Views
    F
    That's it! I put my own .png gauge image in a separeted folder and its custom pointer using dial example in view.js, it works well. Thank you!
  • Yahoo Pipes, Mango and Google Maps

    2
    0 Votes
    2 Posts
    3k Views
    P
    Did you ever want to display feed from Yahoo Pipes? In my case, i show a Google Map of a vehicle's position in relative realtime The reason for this is that i am monitoring a bunch of data being relayed from a truck and wanted to display its position in realtime, on a map in the same webpage. Yahoo Pipes handles the KML data from my GPS Tracking Software, providing a live feed. I imagine you can display any Yahoo Pipes feed, its just i use the KML feature. this is a demo link i put up for all to see: http://limcoco.dyndns.org:9090/public_view.htm?viewId=4 if you'd like to know more, just let me know and i'll post some sample code. Ps. remember please that i'm a bit of a novice, and there is probably a much simpler way of achieving what i've done here. :-)
  • TED 5000

    2
    0 Votes
    2 Posts
    3k Views
    M
    Link to Ted 5000 http://www.theenergydetective.com/ted-5002-c Just a little post in case anyone is interested. The Ted 5000 monitors power coming in to your home via both phase wires. It comes with a web server which you can easily point Mango to and exact values from the device. I created a data source of a HTTP Retriever, then set the URL to http://ted5000/api/LiveData.xml. You can set the update period to whatever you want. You can then add your points. Here is an example: To monitor the current power draw: Data Type: Numeric Value RegEx: <CostNow>(.*?)</CostNow> That should do it!
  • TED 5000

    2
    0 Votes
    2 Posts
    3k Views
    M
    Link to Ted 5000 http://www.theenergydetective.com/ted-5002-c Just a little post in case anyone is interested. The Ted 5000 monitors power coming in to your home via both phase wires. It comes with a web server which you can easily point Mango to and exact values from the device. I created a data source of a HTTP Retriever, then set the URL to http://ted5000/api/LiveData.xml. You can set the update period to whatever you want. You can then add your points. Here is an example: To monitor the current power draw: Data Type: Numeric Value RegEx: <CostNow>(.*?)</CostNow> That should do it!
  • Multi-state (Image/state assignments problem)

    15
    0 Votes
    15 Posts
    7k Views
    H
    and how does it work? whats the script term? may anyone help me pls :) it must be multistate var b = p46.value + p47.value; return b; does not work, because.. 1000 = 10 0010 = 10 :/ mango think the figueres are dezimal not bitwise
  • Pachube

    15
    0 Votes
    15 Posts
    8k Views
    M
    I am successfully pushing data out to Pachube from Mango. Thanks for the tutorial above it was a BIG help. Pachube documentation is lacking or hard to find. Go to www.pachube.com and type in "Mikes House" in the search field and you will see me on the map. Double click the push pin and you will find my first few feeds. More to come. I gave Mango a little plug there as well.
  • How would you do that using Mango ? Request-Answer datapoints

    3
    0 Votes
    3 Posts
    3k Views
    M
    You would need a custom data source to get this done. Serotonin can do custom work, and other users can also built their own data sources.
  • How to implement metric system in mango

    3
    0 Votes
    3 Posts
    3k Views
    B
    click on "data sources" click on "show points" click on "point properties" for the point you want to change in the Point properties change Engineering units to what you want in the Text renderer properties format "00.0" will give 1 decimal place suffix "&de-g;C" will give °C, remove the - to make it work
  • How do I clone a datasource?

    11
    0 Votes
    11 Posts
    5k Views
    M
    Can you try keeping a DS/DP that has info that looks like this: File "/usr/lib/python2.6/json/init.py", line 267, in load parse_constant=parse_constant, **kw)
  • Pachube API request

    3
    0 Votes
    3 Posts
    3k Views
    M
    Because of the way that the Pachube API works a request is made every time a published point is updated. If you are publishing, say, 3 points, and your data source updates them every 10 seconds, you will end up making 30 requests a minute. If you are exceeding your limits there, you should reduce the amount of updates coming from your data source.
  • Event unix command - do I need special characters quoted

    10
    0 Votes
    10 Posts
    6k Views
    F
    Hi all I have found a work around - not sure why this works but it does Mango runs as root and when I run the command find /usr/local/tomcat/logs/ -type f -name * -mtime +5 -exec rm -f {} ; I get the error mentioned but when I run it as my user ("francis") sudo -u francis find /usr/local/tomcat/logs/ -type f -name * -mtime +5 -exec rm -f {} ; then this works it must be something to do with privileges etc - but I do not know why Francis