IP camera from eBay

Very interesting...I'll definatly try that out!

Oh by the way, Zoomkat, I figured out why it didn't compile correctly...thanks for your help! I appreciate it!

Oh by the way, Zoomkat, I figured out why it didn't compile correctly...thanks for your help! I appreciate it!

Ok, what's the answer? In quiring minds want to know. :slight_smile: Also, does your cam also have an ethernet connection on the rear so it can be hard wired to a router, or to other cams?

I looked in the timealarm.h file and found that some const ints were named "s" and "m" and "h" instead on "sec" and "min" and "hr". So I replaced that and it compiled. Not really sure why it was like that but IT COMPILED! (-: Yep the camera has an Ethernet port on the back as well which is neat.

I looked in the timealarm.h file and found that some const ints were named "s" and "m" and "h" instead on "sec" and "min" and "hr". So I replaced that and it compiled.

myreprapinfo, were you able to compile the example sketch (before you changed the header file) ?

Can you post a simple sketch that produces the error with the distrubuted header so I can have a look.

There's a simialr thread to this one here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1272209078

Yes, mem, I could compile the example sketches fine before I changed the header file, however, mine did not compile and did get the errors on the 2 forums posts I did (if you want I could post some links).

When I changed the 3 const ints, mine compiled as well as the example sketches. I am currently not home so I can't test my set up at all really.

Thanks,
Elijah

myreprapinfo, did you consider the possibility that if the examples compile ok then perhaps the error was in your code and it would be better to fix the sketch rather than change the library?

Could you post a small sketch that demonstrates the problem - just include enough code to produce the compiler error but please eliminate everything that is not relevant. It will be helpful to others that may encounter similar problems to understand what went wrong.

Yes, I did. I looked EVERYWHERE in my code to see if there were any issues and I found none. According to the error, it said that there was a problem in the headerfile, not my sketch. I'm not sure why the example skeches compiled though.

I'll will post the code; however, I'm on my iPhone typing this and I do not have access to any code. Look for it by the end of today.

Thanks for your help!

Elijah

I had a look at your sketch and found the problem.
You are including a header file named x10constants.h that is redefining the names of variables.

x10constants.h defines the uppercase letters A through P as binary constants so any code in a sketch that names a variable with one of these letters will cause a compiler error. For example, if you had the following perfectly reasonable line of code anywhere in your sketch:
int I = 0;

The compiler will return an error because x10contants.h has defined I as a binary constant, and that cannot be assigned a value at runtime.

The correct fix for this is to make the defines in x10constants.h unique so they won't accidently trample on other peoples variable names.

Apparently you are not the first to be tripped up by this, see the playground article [u]here[/u] :

This links an updated library [u]here:[/u] where the author of the updated library says:

The single letter X10 house codes #defines, which caused me lots of problems, have been replaced with #defines like HOUSE_A, HOUSE_B, rather than just A or B.

I suggest you use this updated library instead of the x10 version you have. You should then find that the TimeAlarms library will compile without errors.

Thanks so much! Changed the 2 header files and it compiles perfectly!

Thanks again!
Elijah

Great info

hi... :smiley:
I have trendnet ip camera 410... and I like to control that camera on my web page. it's camera have ptctrl.cgi for control.. I also like to post datetime.cgi on my web page..but I don't know how to call the ptctrl.cgi and datetime.cgi using html..

please I need your help..
Sorry because my English is not good...
Thanks Before.. :wink:

Hey! Private message me and I'll give you some code and such.