Einzelnen Beitrag anzeigen
  #3 (permalink)  
Alt 29.07.10, 23:28
robertg robertg ist offline
Member
 
Registriert seit: Jan 2010
Ort: Utrecht, Netherlands
Beiträge: 33
Standard question ?

Dear Attain,

Thanks for the reply... It looks simple the code and very usefull.

I don't have any problem with reading in German, only writing in German is difficult. I don't know if de moderators will let me start an English topic the German topics else I would have placed it there. Maybe I just have to try it an see what will happen .

I have some questions... hopefully you can help me with it:

Do you also use it to read back if an alarm has been raised. This to prevent that you keep writing messages in the log. Example: on a variable change of a temperature I have some code that checks if the temperature is not above 95 C. When it's too high it will trip an alarm. But in the meantime the temperature keeps rising which can give it an alarm again. I have an extra alarm set on 105 C that will send a sms to different mobile numbers. How would you do this? Put an global variable in say ‘Alarm95Solar’ which you set when the temperature is too high and reset it when it drops below the 95?


Do you put this function in every php script where an alarm can be raised? Or is there a way to call a function from a different file? I tried to do this, call a function from another file but couldn't get it to work. It would be nice to have a function base so that I can reuse the code.

The rest looks easy, thanks!
Robert
Mit Zitat antworten