I've been reading through your replies and all of them are brilliant ideas,but so far i think using GSM or an ethernet shield are far more suitable for me than setting up a server,just because i really don't know how to set up a server and i dont have the requirements on me at the present.
The following is just me explaining the differences of both methods GSM and the internet,so you can skip it if u want:
As for GSM, i think i could get GSM shield and set the arduino to send me text message when the power is coming from the power plant or a backup generator.
And here is how i think it should go:
1. Arduino monitors which electric wire is ON (main line from the power plant or another wire from the backup generator).
- When one of the wires is ON the arduino sends me an SMS, only once.
- Arduino checks periodically for a change - the main line is off while the line from the backup generator isn't or vice versa or of both of them are off.
4.if a change is detected the arduino sends me another SMS telling me the power is coming from.
On the other hand, Using the internet (of course by ethernet or wi-fi) i can do as recommended and send myself a message through e-mail,or even twitter - if thats possible(?).
But by using the internet i would run into the issue which you guys pointed out which is powering on the router.But for that i think i can create a delay in the arduino code for about 4min. or so, giving enough time for the router to turn on, and thats when the arduino sends me the message.
And yes this means i can't tell if both energy sources are down.
End of explanation
I also want to point out that my house is almost always powered.Rarely do both sources fail,and i only get a blackout when the power source is shifting from the powerplant to the backup generator, and it usually last for less than a minute.
Long story short, I think I'll get myself an ethernet shield(or wi-fi) and use that, and i know it might not be the most reliable,but -like many most of us here- money is an obstacle and here in lebanon SMS is somehow cheap(30c) but i have to pay a monthly fee of about 17k LBP (about 12$) for my SIM card.And with electricity source changing almost 5 times a day- over 30 days.....that's quite a bill!
If you have any remarks please dont hesitate to share them with me.
Thanks for all your replies, i really appreciate it ;) .
Sorry it took me awhile to reply....