I just modified a door sensor and put it in my mailbox to monitor open close activity (trying to catch some thiefs on my busy street). I had an email test application that I strung with a wizard script and ended up spamming my cell phone SMS.
Does anyone have a simple program to send an email on sensor change they could share with the class?
I have a simple send email line in the startup tab but it repeats over and over because that code is looping apparently.
I’d rather just have a check for sensor value change but I haven’t done this yet. Better yet I’d rather make a program where i can put a check mark on the sensor to receive update notifications via email and in the program specify which kinds of updates, battery alerts, etc…
I’ve never done any of this so getting started with it is the hard part but I know how to do basic programming. Startup tells me it runs once but apparently that isn’t true.
We can create snippets here in themes, on GitHub and as a .hgx packages… I don’t know what method is better.
But all these possibilities will increase fragmentation level.
I don’t know why I have so much trouble with HG on PC anymore. The program just won’t work when I restart the service. I have to add a line of code to send an email within the first if statement and trigger the sensor to send an email and then remove the code I added for it to actually work on it’s own. Restarting the service resets whatever that accomplishes and I have to do the process over again. I guess this is a bug? Not sure what you want to try and track down the cause :\
can you paste the full code of you program on here?
Also try adding a program.notify(“MyApp”, “Sensor change blah”); prior to the send email command… to see if its the email side that isn’t working, ie Get the program working and then look at whether its the email…