Hello all i'm making an alarm which would like to put on or off with a simple flask server, i followed the tutorial at https://www.raspberrypi.org/learning/py ... worksheet/
and http://mattrichardson.com/Raspberry-Pi-Flask/index.html it work everything but i don't understand a thing.
When i have my alarm on (i use for my apiary i'm a beekeeper) on the box i would like to stop it for working inside then reactivating from the web as i followed in the tutorials but it doesn't work i explain if i click on the button on the web page it say me on or off alarm but as i see the script still run and unfortunately it switch on the alarm with the send mail script. I would like to have something which it stop the pin but not sending the mail like if its working without shutting off the raspberry itself.
It is possible doing something like that?
If yes could someone send me a link where to understand how to do it?
If necessary i can paste the code of all my work
Last but not least sorry for my english but its not my motherspeak so if seem to be confused just say me what is not so clearly to understand.
Thanks to all and in the meantime have a nice day