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.
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:
There was some discussion some time ago about using Labjack with Mango (someone wanted to monitor and control a remote cabin). At that time it was not possible due propriatary protocol. Labjack is now Modbus capable and has been tested ( if briefly) with Mango.
See here: http://labjack.com/support/ljsocket about halfway down the page.
This may open up a lot more possibilites for some folks.
I thought I had seen when I first started with Mango there was some discussion of implementing X-10 for Home (or other) Automation. Has this died or is there still a possibility? X-10 Power Line Carrier is a great way to avoid geeting involved with mains voltage when desiring to control various AC devices. It's pretty much plug and play and widely available from many suppliers.
So, Mango is working great for me and I keep trying to do new things. I currently have the system e-mail me when certain parameters go out of wack. So far so good.
Obviously I am not always on e-mail and would prefer a SMS text message. I tried to have the Mango email "firstname.lastname@example.org" through my email account at XXXXXX@cox.net. I receive an error back (I assume from Cox) that no relaying is allowed.
When I am personally logged in to Cox I can send the email to email@example.com with no problem.
Has anyone figured out how to have Mango send you a SMS text message? Do all email providers prevent relaying?
I have 1-wire DS2450 A/D numerical data available I would like to convert to binary for simple on/off notification. Can someone please give me some direction as to the proper script to do this for a metadata point?
If the input is <= 0.5 then output 0 binary
If the input is >0.5 then output 1 binary
I am not familiar with JS programming and syntax (last programming I did was 30 years ago in FORTRAN) and have tried several things with no success.
Thanks in advance!
I wanted to try to use the DS2450 A/D converter to interface with Mango to monitor field signals from HVAC equipment. I have only several temp sensors on my one wire so far. I use the standard serial adapter to my Win XP PC as the bus host.
I built a circuit to interface with and isolate from the field voltage which uses an LTV-814 (one channel) up to LTV-844 (four channel) AC/DC input opto-isolator. The output transistor of the LTV chip drives the input of the DS2450. I am using 5VDC (currently USB powered) to drive the output side of the LTV chip.
Initially it did not work. However after plowing through the DS2450 datasheet, I learned the default setting for the DS2450 for input voltage is 2.55 volts maximum on the inputs. Since I was using 5V it did not know what to do and returned a big fat 0.0 to Mango (and One Wire Viewer). I then used a voltage divider network to bring the input down to a level that the chip would recognize and report in it's default state.
An optional input value is 5.10V, but there is currently no way in Mango to select the input voltage or the resolution (default 8 bits) of the DS2450.
The default settings for memory map page 1, Control/Status starting at 08h is:
(hex) 08 8C 08 8C 08 8C 08 8C
If it could be modified to:
(hex) 08 8D 08 8D 08 8D 08 8D this would give 5.10V input enabled
The settings are all volatile and revert to default when the chip is repowered so they need to come from the host software every time the one wire bus is powered or reset. I'm not a programmer so I leave that to Matthew as a possible improvement !
Hope this helps someone.....at least I got to relearn hex to figure this out. Short lesson is if you are over the input voltage you will get 0.0 output. Also, when you really are at zero input voltage the chip output floats at 0.03 or so on all channels. I have two DS2450 and they both do the same thing.
Next job is to get it off my desk and into the field.
I have multiple DS18S20 temperature sensors running with no problems. However, I have found an issue with the DS18B20 temperature sensor. Whenever I restart Mango The reading of the DS18B20 spikes to 85 deg C. This happans after every restart (loading Tomcat from startup). Not after a manual rescan of the one wire network. This really screws up the resolution of the y-axis on my charts.
Data from a restart last night:
23.0 °C Dec 03 23:06
23.0 °C Dec 03 23:05
23.0 °C Dec 03 23:04
23.0 °C Dec 03 23:03
85.0 °C Dec 03 23:02
23.0 °C Dec 03 23:01
85.0 °C Dec 03 23:00
23.1 °C Dec 03 22:51
23.1 °C Dec 03 22:50
23.1 °C Dec 03 22:49
23.1 °C Dec 03 22:48
23.1 °C Dec 03 22:47
Anyone else seen this or have any ideas?
I have successfully integrated TED, The Energy detective, into Mango. I have been using TED for over a year to track energy data in an effort to reduce electrical consumption and cost. The consumption has been reduced by over 15% but the cost has stayed the same since my utility keeps raising rates. Overall I have avoided the increased expenditure by reducing consumption.
TED will output an XML file (not well known or documented) when commanded assuming you have the USB data option enabled. TEDService must be running but their "Footprints" software does not have to be to get the XML file. You can use the command "dashboarddata" to get the XML output.
On the Mango side I used the HTTP Retreiver as a data source. In the URL I used "localhost:8085/dashboarddata" (TED default port is 9090). In my case TED is on the same computer as Mango so I used localhost. You could use any computer on your LAN as long as your firewall setting are correct and use that computers static IP. Then in the Value RegEx field I used <DlrMtd>(.*?)</DlrMtd> to parse the XML file for specific data. In this example this returns the value for Dollars Spent Month-To-Date.
See my public page at http://mikeshouse.homedns.org
The 1-wire temp sensors are sitting on my desk so all the data is the same. I need to get around to running the Cat5 cable to the field devices.