Closed anmorfe closed 3 years ago
INCREDIBLE!!!! It works..... I can believe it.... Thank you for your patient.... Now I ony have the problem with wifi credentials... Every time I Unplug the power cord, i have to connect to the ap Teleview, curiously, the credentials are saved in "Open SSIDs", but it doesnt connect directly, I have to connet to AP Teleview, go to Open SSIDs and select my access point....
ok gr8. now try this : uncomment line 166 in TeleView.ino acConfig.autoSave=AUTOCONNECT_USE_PREFERENCES;
It shows an error:
I have made some heavy updates in the project this weekend. I would appreciate if you test them before I release them. you can download them from here : https://github.com/asmaklad/TeleView/tree/feature/upgrade_telegram_library
Please keep your current code and don't overwrite it just yet.
Ok, I have tried your code without pir sensor. I have used the libraries as you said in the read me file and it works perfectly... No errors. No problem with WiFi credentials. Now, I'm going to try it with modifications in order to use an external pir sensor. I will share the results. Thanks again.
Great I am delighted that it works.I will merge the code.On Apr 26, 2021 12:22, anmorfe @.***> wrote: Ok, I have tried your code without pir sensor. I have used the libraries as you said in the read me file and it works perfectly... No errors. No problem with WiFi credentials. Now, I'm going to try it with modifications in order to use an external pir sensor. I will share the results. Thanks again.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
I have tried using pir sensor, I only have add "#define PIR_PIN 13" in camera_pins.h, no more changes and it works better than before (sometimes it was triggered whithout real motion near the sensor)... I'm very gratefull with your help. If I'm allowed to abuse your patience, I would like you to give me an advice about how to modify your code in order to add an output pin connected to a buzzer that make an alarm sound when movement is detected. It wold be nice to add a button wich turn on or turn off the alarm sound.... I remind you that the objective is to have a security surveillance system...
Great . Sure no problem. but I need some more input first: 1) What type of a buzzer ? 2) Which PIN you connect it to ? 3) Sample triggering code if possible.
You could add a physical switch in series with the buzzer to enable/disable it. (no software mods required)
1.- piezo buzzer 2.- which one did you recommend? 3.- Ufff... every time the sensor detects movement?
I think I have explained myself wrong. I meant to add a button on the telegram keyboard
Something more, i have noticed tha the user doesn't work properly
Something more, i have noticed tha the user doesn't work properly
I think this output is not from Teleview, I think it is from another project.
Ok you should use an "Active Buzzer" as per this link https://diyi0t.com/active-passive-buzzer-arduino-esp8266-esp32/ I assume PIN 12 I have not tested this code yet on a board. adding a button in the Telegram is such a hassle , there is so much to modify to save the configuration and display it in the Web and Telegram /options. try to make physical easier. I have made some mods for the Buzzer in this branch: https://github.com/asmaklad/TeleView/tree/feature/add_buzzer
Something more, i have noticed tha the user doesn't work properly
I think this output is not from Teleview, I think it is from another project.
yes, this output is from bot used as userChatIds in Teleview....The adminChatIds works but the userChatIds doesn't respond to /start or /options or anything else
Userchatid doesnt work. Not implemented yet. It is in the readme.
Userchatid doesnt work. Not implemented yet. It is in the readme.
Sorry, I didn't read it...
ok now the user ID works. also it is possible to add the bot into a group and there you can have as many people as you want controlling it. please check this branch: https://github.com/asmaklad/TeleView/tree/feature/add_buzzer
Thanks a lot... I will test it... I have been trying the code, and I have noticed that after five or six hours more or less, the system freezes. Do you know what the reason could be? I have add a heatsink to the processor, but the problem persist...
It is very difficult to troubleshoot those issues remotely . However, I would try the following: 1) Disconnect the PIR sensor . (just to find out the root cause) 2) Connect the ESP to a serial port and record the error that it reports in the Serial monitor. 3) Some Internet chatter suggest changing the power supply/micro USB cable used with the ESP. 4) disable web-monitoring ? Are you using it frequently ? like open it in a browser and auto refresh every couple of seconds. (don't do that) 5) Try reducing the CPU frequency from the tools menu.
In any case : These devices needs to have a watchdog circuit installed around it that reboots it every time it stalls. A good solution is to get one of those IKEA time switches that reboots the device every couple of hours: https://www.ikea.com/gb/en/p/taenda-timer-24-hours-indoor-earthed-white-10445765/
One more thing to try: in telegram_utils.h , double this number : int Bot_mtbs = 1000; //mean time between scan messages this will slow the telegram response.
I made more changes , now more elegant interface.
I´m going to test it....
Check the latest changes in the master branch. I added also the Buzzer button you asked for and many more.
I am closing this Issue.
done
I have instaled the sketch properly in esp32 cam as a esp CAMERA_MODEL_AI_THINKER, no errors, i have configured the telegram token and the chat id, but the telegram bot doesn´t shows anything... Could you tell me what is the problem...? The esp32 cam was bought in aliexpress, but the sketch didn`t show any problem...