A noob needs some guidance

Thanks fwd03 I will apply that when I get to using those inputs.

New question; From a browser I know I can do this 192.168.1.15/geto2.cgi and get the TTL output for # 2. And the output would be either a 0 or 1. Is there a way to get all the outputs like 0011oo11 ?

Thanks!
 
Ed,

There is no function to only get all output. But it has a function to getall.cgi. Then you have to parse the output. Or you can using /api/status.xml output in your app.

CAI_Support
 
Not quite what I was hoping for. I am trying to get some way to show the status of the TTL oputputs at the moment. I want to work this into a home monitoring system on my droid. I am quite inexperienced at this. Thanks
 
New question; From a browser I know I can do this 192.168.1.15/geto2.cgi and get the TTL output for # 2. And the output would be either a 0 or 1. Is there a way to get all the outputs like 0011oo11 ?

If you're using a real operating system - BSD, Linux etc, you could do this:

wget --user=admin --password=password -O - -q "http://192.168.1.15/api/status.xml" | sed -n '/ophex/ {s#</.*##; s#.*>##;p;}'
0x01
 
Nope just my droid. I am resisting using a dedicated machine at home since it would only be used for this and that is more than I want to put into this project at this time. I am with you on the "Real Operating System" part though.
 
Not quite what I was hoping for. I am trying to get some way to show the status of the TTL oputputs at the moment. I want to work this into a home monitoring system on my droid. I am quite inexperienced at this. Thanks

If you have a spare variable, you could always synthesise the output word into a variable you could read.
Code:
	set var8 0
	tsteq op1 1
	add var8 1
	tsteq op2 1
	add var8 10
	tsteq op3 1
	add var8 100
	tsteq op4 1
	add var8 1000
...
	tsteq op8 1
	add var8 10000000


That would give you a single variable (var8) that you could read, that would show you each bit either 0 or 1 (ie, would "look" like binary).
Does that help?
 
Good idea Ross.
I would add 1,2,4,8,16,32,64,128, so that the result is a binary number up to 255.

Yes, but looking at it on an android is not intuitive that way.... eg, a human looking and seeing 202.... which bits are on??

whereas 11001010 is far more "readable" without something else to interpret it.
 
All good ideas I think. I just have to see what I can do with the gui and the app developer. My goal is to have a "light" on the app indicate the status of an output. My doors for instance to know when they are shut.
 
Since the last time I have some progress. I have an app on my android that allows me to open each of my garage doors independently. It also will show using a red or green LED graphic if the door is closed or not. I used simple magnetic alarm switches on my doors. Now , I am on to using the temp sensors. My issue is that I can't seem to parse out the info I need for the sensor temps. I can do it individually, but not from the getall command. I want it to monitor my home temps, since I live in Michigan and am planning on a trip this winter and I am just OCD enough to want to know the house is still warm. Just how elaborate can one get with a temperature chart in the PLC?. My heating system is a warm water system that uses the outdoor temp to regulate the water temp that the system pumps to the floor emitters. There is quite a curve that changes with the water temp, and the outdoor temperature.
 
How often do you want the temperature data? It might be easier to have a family web site by a hosting company. Collect all the data on the web server.
 
One thing I want to do is replace the processor for my heating system. It is not very flexible. It keeps track of the outside temp and automatically adjusts the water temp to heat the house, so it would need to run in the PLC if it is possible. I have the temp sensors and the door controls running on an app in my android at the moment. I would like to be able to set the house temps from the App some day. At this point I can monitor. although I have what seems to be a faulty sensor at the moment.
 
Back
Top