Paper-mail with email project
Moderators: grovkillen, Stuntteam, TD-er
Paper-mail with email project
I have completed the mailbox project https://www.letscontrolit.com/wiki/inde ... ifications and that works. However, I notice that when the mailbox is opened and closed quickly, the miniwemos D1 (ESP Easy version v2.0.0-dev12) does not reset and therefore does not give a message. If the mailbox is opened and closed more slowly, I get a message. Can this be solved so that the reactiontime is shorter?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
Change message delay to 100-200 instead of default 1000?
Found under advanced page.
Found under advanced page.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
I have adjusted the delay to 100 but no change. This seems to be a setting for the speed of sending message. My problem is different. It seems that the magnetic microswitch that needs a certain amount of time to be able to perceive that it is ' open' .
I use this switches:
https://nl.aliexpress.com/item/5pcs-MC- ... 0.0.QX921q
Is there another way to solve this?
I use this switches:
https://nl.aliexpress.com/item/5pcs-MC- ... 0.0.QX921q
Is there another way to solve this?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
I would try a micro switch instead.
5PCS 3 pins Micro Touch Switches NO NC 3a/5a 125VAC 250VAC Mini limit Switch Micro Switch Microswitches With 48mm Long Lever
http://s.aliexpress.com/AVBFZzUv?fromSns=Copy to Clipboard
5PCS 3 pins Micro Touch Switches NO NC 3a/5a 125VAC 250VAC Mini limit Switch Micro Switch Microswitches With 48mm Long Lever
http://s.aliexpress.com/AVBFZzUv?fromSns=Copy to Clipboard
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
That is a good plan B but this should also be able to work properly? A magnetic switch I can put in the lid of my mailbox, a touchswitch not I am afraid.
Re: Paper-mail with email project
Can you try a different location of the switch on the mailbox?
Close to hinge is short detection time, the further away, the longer.
Not sure if it is possible, but just trying to think along.
Re: Paper-mail with email project
No problems with that. I use a reed switch for that and set MQTT delay to 0. Works over a year now like a charm... 

Re: Paper-mail with email project
I am working on the same project with my mailbox.
My question is: As the open/close lasts around one second, how much time the esp07S will be powered ? I know that I can configure a static ip to save time, but it still needs some time anyway to connect to the ssid and to send a mail.
I have applied the recommended settings ( https://www.letscontrolit.com/wiki/inde ... ifications )
I am using a esp07S with espeasy V2.xxx powred with 2 x AA batteries
Thanks
Gilles
My question is: As the open/close lasts around one second, how much time the esp07S will be powered ? I know that I can configure a static ip to save time, but it still needs some time anyway to connect to the ssid and to send a mail.
I have applied the recommended settings ( https://www.letscontrolit.com/wiki/inde ... ifications )
I am using a esp07S with espeasy V2.xxx powred with 2 x AA batteries
Thanks
Gilles
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
I would suspect you need around 10 seconds for the entire process, at maximum 15 seconds.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
yes, you are right.
I think so, but how/where to configure the time the esp will be up, these 10 or 15 seconds that I need for the ESP to boot, connect to the network and send the email?
I think so, but how/where to configure the time the esp will be up, these 10 or 15 seconds that I need for the ESP to boot, connect to the network and send the email?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
If you use rules you can use events to know when the publish is done. Exactly how you go about that I don't know (I'm writing this on my phone, from the rural Sweden, preparing for moose hunt).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
I apologize for my bad english. Let me rephrase.
Let's say the ESP is in deep sleep. It will be awaken when the switch will detect that the door is open even for one second. How much time the ESP will stay up before going again to the deep sleep? Is there a way to configure the time that the ESP will stay up before going back to sleep ?
Let's say the ESP is in deep sleep. It will be awaken when the switch will detect that the door is open even for one second. How much time the ESP will stay up before going again to the deep sleep? Is there a way to configure the time that the ESP will stay up before going back to sleep ?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
You set the awake time in the settings.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
The easyNotification "guide" (https://www.letscontrolit.com/wiki/inde ... ifications) says:
Enable deep sleep with a sleep time of 0 seconds. (this way it only wakes up manually by the switch)
Enable Sleep on connection failure
Set message delay to 0.
What settings are you talking about?
Enable deep sleep with a sleep time of 0 seconds. (this way it only wakes up manually by the switch)
Enable Sleep on connection failure
Set message delay to 0.
What settings are you talking about?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
The wiki is a bit behind the schedule. The settings is there in the GUI. Install and see 

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Paper-mail with email project
wow. I have found this in the forum:
but I only have this: I need to check why. I will be driving all the day (while some other will be hunting
.
I will check tomorrow what went wrong, but I wil not be at home so I will not be able to test.
I may have a version issue. I run v2.0-20180126 compiled with the FEATURE_ADC_VCC to get the battery level.
Thanks
Gilles
but I only have this: I need to check why. I will be driving all the day (while some other will be hunting

I will check tomorrow what went wrong, but I wil not be at home so I will not be able to test.
I may have a version issue. I run v2.0-20180126 compiled with the FEATURE_ADC_VCC to get the battery level.
Thanks
Gilles
Re: Paper-mail with email project
the png has disappeared. Here is what I have:
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Paper-mail with email project
Yes, the problem is that you're running an "ancient" version.
We really need to stress that you should always provide what version you're using.
We really need to stress that you should always provide what version you're using.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Who is online
Users browsing this forum: No registered users and 20 guests