Page 8 of 14

Re: ESP32-CAM as doorbell with camera

Posted: Monday 04 January 2021 9:47
by hanryz
stack wrote: Sunday 03 January 2021 20:49 I am very happy with my current esp32cam doorbell, just not satisfied with dark recordings.
Is there an esp32 cam with night vision?
€ 0,88 | 2.1cm 66/120/160 degree Suitable for ESP32 OV2640 2 million pixel camera module 24pin
https://a.aliexpress.com/_BPWBS8

In above offer on Aliexpress you can find a 850nm 160 deg. wide angle infrared module for ca 6 eur with shipping to Europe.

Btw which firmware do you use for your doorbell eap32 camera? Thanks

Re: ESP32-CAM as doorbell with camera

Posted: Monday 04 January 2021 19:12
by stack
ok thanks ,Do you then need infrared light?

sombody screenshot with night picture?
I use V1 software from this topic.
Still waiting for V2 but for now V1 is fine.

Re: ESP32-CAM as doorbell with camera

Posted: Monday 04 January 2021 21:07
by hanryz
stack wrote: Monday 04 January 2021 19:12 ok thanks ,Do you then need infrared light?
I do not know for sure, yet. I've ordered the camera a week ago and now waiting for it to arrive from China. It would be wishful thinking, that if it is advertised as infrared camera, the Chinese put an IR source on its board as well... Otherwise, also not too bad, I put an IR diode or two to lighten up the scenes :D

Re: ESP32-CAM as doorbell with camera

Posted: Tuesday 05 January 2021 10:04
by hoeby
EddyG wrote: Friday 18 December 2020 15:47 Could you already give a material specification?
I saw the the pushbutton hole is 18.5 mm in the Thingiverse project. Is that correct?
The hole for the button in de main-housing is 16mm.
Housing is 20mm high.
The thin front to get the mounting holes hidden, that has a hole of 18.5mm.
EddyG wrote: Friday 18 December 2020 15:47 Nice project. :D Looking forward to the GitHub project. Any ETA yet?
There is not a fixed date. But we made the desicion to release to code how it is now.
The basis code is finished for release. What not is finished, is the documentation. This needs work.
But that could not be the restriction to have not fun with it.
funky wrote: Saturday 26 December 2020 12:38 Is it a idea to fundrais housing ?
Thoughed about it. But without having a released code, this makes no sence.
It is on the wish list, but it most be affordable. A housing which cost 75+ euro is to expensive.
hanryz wrote: Monday 04 January 2021 9:47 2.1cm 66/120/160 degree Suitable for ESP32 OV2640 2 million pixel camera module 24pin
Never tested this camera. It looks like you need a separated infra-red light to get it working.
Keep in mind, that it maybe doens't fit the housing which is designed for this doorbell.

Re: ESP32-CAM as doorbell with camera

Posted: Thursday 07 January 2021 1:33
by hanryz
hoeby wrote: Tuesday 05 January 2021 10:04
There is not a fixed date. But we made the desicion to release to code how it is now.
The basis code is finished for release. What not is finished, is the documentation. This needs work.
But that could not be the restriction to have not fun with it.
Did I miss something or the V2 code has already been released? Thanks!

Re: ESP32-CAM as doorbell with camera

Posted: Thursday 07 January 2021 10:20
by hoeby
Sorry, my mistake, i didn't written it correct.

The code is not released.
We are making the last small things and a test with a pull from github if all works. When that goes without problems, than the code will be released

Re: ESP32-CAM as doorbell with camera

Posted: Thursday 07 January 2021 17:55
by hanryz
hoeby wrote: Thursday 07 January 2021 10:20 Sorry, my mistake, i didn't written it correct.

The code is not released.
We are making the last small things and a test with a pull from github if all works. When that goes without problems, than the code will be released
Thanks a lot! waiting impatiently for the code to be released to play with it. Tge IR camera has arrived. The camera board which came with it does not have USB so I also ordered the dev. board for this...

Would you please tell me if the V2 code supports writing to the memory card for which there is a slot on the camera board?

Thanks again!

Re: ESP32-CAM as doorbell with camera

Posted: Thursday 07 January 2021 18:04
by jvdz
hanryz wrote: Thursday 07 January 2021 17:55 Would you please tell me if the V2 code supports writing to the memory card for which there is a slot on the camera board?
The new software will, like the current version, simply be available as sourcecode, compiled firmware.bin and on top of that an spiffs.bin containing the webserver files and config. The firmware.bin will somehow need to be loaded onto the ESP (by whatever means you have available) and then the spiffs.bin can be loaded either using that same method or via OTA.
After the initially load, you can update either bin file via OTA, or even single webserver files in spiffs that require updates, making it easier to make modifications to the web frontend.

Jos

Re: ESP32-CAM as doorbell with camera

Posted: Friday 08 January 2021 20:24
by hoeby
It's a beautiful day, sun is shining.
About that second we have to think twice today. But it is a beautifull day, because de V2 code is released and ready to use.

But before getting to the link.
When you have a question about the code. Post it here or in the discussion tab on github, don't make an issue on github for it.
The issues tab is meant for when there is a real issue. Otherwise management is difficult.

When you want to build with us on the code. Do this on the "development" environment
Pulls to the master will be ignored.

Now getting to the beautifull part, the link.
https://github.com/Hoeby/ESP32-Doorbell

The instructions are not finished (yet). But the mayor two to get you going, are finished
You need the program "visual studio code" for getting the code on your esp32cam.
All is explained in the instruction, which starts with: https://github.com/Hoeby/ESP32-Doorbell ... _upload.md

Have fun and lets us know how you think about it

Re: ESP32-CAM as doorbell with camera

Posted: Saturday 09 January 2021 10:07
by EddyG
Compiles perfect, both firmware.bin and spiffs.bin. :D Tnx.
Have to wait until the hardware comes form Ali, but can already play with my developer ESP32.

Re: ESP32-CAM as doorbell with camera

Posted: Sunday 10 January 2021 20:02
by tux21
Hello guys, I would like to build this doorbell but I'm struggling with Volumio Build. I'm completely new into Volumio and VSCso I don't know if I made anything wrong. Just following step-by-step the manual but after build command I finished with following issue. Can anybody help me please?

Error is starting from here:
Library Manager: Installing git+https://github.com/Lightwell-bg/ssdpAWS
FileNotFoundError: [WinError 2]
File "C:\Users\jirim\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 170:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\jirim\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\jirim\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\jirim\.platformio\platforms\espressif32\builder\main.py", line 224:
target_elf = env.BuildProgram()
File "C:\Users\jirim\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "C:\Users\jirim\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
env.ProcessProjectDeps()
File "C:\Users\jirim\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "C:\Users\jirim\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 140:
project_lib_builder = env.ConfigureProjectLibBuilder()
File "C:\Users\jirim\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "C:\Users\jirim\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
project.install_dependencies()
File "C:\Users\jirim\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 898:
lm.install(spec)
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 49:
spec, silent=silent, skip_dependencies=skip_dependencies, force=force
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\manager\library.py", line 86:
force=force,
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 97:
pkg = self.install_from_url(spec.url, spec, silent=silent)
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 141:
vcs = VCSClientFactory.new(tmp_dir, url)
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line
55:
src_dir, remote_url, tag, silent
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line
137:
self.configure()
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line
146:
result = proc.exec_command([cls.command, "--exec-path"])
File "c:\users\jirim\.platformio\penv\lib\site-packages\platformio\proc.py", line 113:
p = subprocess.Popen(*args, **kwargs)
File "C:\Users\jirim\.platformio\python3\lib\subprocess.py", line 800:
restore_signals, start_new_session)
File "C:\Users\jirim\.platformio\python3\lib\subprocess.py", line 1207:
startupinfo)
================================== [FAILED] Took 1.35 seconds ==================================

Re: ESP32-CAM as doorbell with camera

Posted: Sunday 10 January 2021 22:37
by hoeby
In the download file is an "ESP32-Doorbell.code-workspace" file, try setting this in vsc and try again.

How to load the file:
- Go to Visual Studio Code
- Select "File" menu (top left)
- Select "Open Workspace"
- Search the file and "Open"

Re: ESP32-CAM as doorbell with camera

Posted: Sunday 10 January 2021 23:53
by winnipegsubaru
you need to download the zip file from here:
https://github.com/Lightwell-bg/ssdpAWS

Unzip it and place it in:
C:\Temp\ESP32-Doorbell-master\.pio\libdeps\ESP_4096

(or wherever your project is stored).

Restart Visual Studio and try to build.

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 9:27
by jvdz
All required libraries should be downloaded automatically by PlatformIO since they are defined in PlatformIO.ini.

Jos

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 16:48
by tux21
Thanks to all of you, but same issue. I tried to open Workspace instead of the Folder and even download ssdpAWS library and place it to the project folder. Same error I got even on another PC which I have :(

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 17:03
by jvdz
Could you email me the total build log so I can have a look to see what is happening?
-or-
Maybe checkout the PlatformIO issue: https://github.com/platformio/platformi ... /issues/65 & https://github.com/platformio/platformi ... issues/154
.. which seem similar to what you have?

Jos

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 18:17
by MikeF
I've successfully downloaded the v1 script from the original post to a M5Stack Timer Camera X (more of this later), and connected a pushbutton to one of its GPIO pins. Pressing the button triggers an email with an attached snapshot - courtesy of @waaren 's dzVents script here: viewtopic.php?t=26611.

However, I don't know how to get the snapshot (or video stream, for that matter) to actually appear in Domoticz. (To get the above to work, I defined the camera in Setup > More Options > Cameras, and linked a dummy switch to it under Active Devices; I see snapshots and streams when I click on the corresponding icons.)

Any clues? What am I not doing?

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 21:59
by gielie
I am new to VSC and i cant get it to work, same error as above. I tried to download the missing zip and put in the folder without luck, same error. Can’t figure out what the error means, probably missing some extensions.

This is the error I get.

Code: Select all

Executing task: C:\Users\jolan\.platformio\penv\Scripts\pio.exe run --environment ESP_4096 <
 
Processing ESP_4096 (board: esp32dev; platform: espressif32; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (2.1.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10004.201016 (1.0.4)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing git+https://github.com/Lightwell-bg/ssdpAWS
FileNotFoundError: [WinError 2] Het systeem kan het opgegeven bestand niet vinden:
  File "C:\Users\jolan\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 170:
    env.SConscript("$BUILD_SCRIPT")
  File "C:\Users\jolan\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\jolan\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\jolan\.platformio\platforms\espressif32\builder\main.py", line 224:
    target_elf = env.BuildProgram()
  File "C:\Users\jolan\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\jolan\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
    env.ProcessProjectDeps()
  File "C:\Users\jolan\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\jolan\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "C:\Users\jolan\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\jolan\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
    project.install_dependencies()
  File "C:\Users\jolan\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 898:
    lm.install(spec)
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 49:
    spec, silent=silent, skip_dependencies=skip_dependencies, force=force
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\manager\library.py", line 86:
    force=force,
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 97:
    pkg = self.install_from_url(spec.url, spec, silent=silent)
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 141:
    vcs = VCSClientFactory.new(tmp_dir, url)
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 55:
    src_dir, remote_url, tag, silent
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 137:
    self.configure()
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\package\vcsclient.py", line 146:
    result = proc.exec_command([cls.command, "--exec-path"])
  File "c:\users\jolan\.platformio\penv\lib\site-packages\platformio\proc.py", line 113:
    p = subprocess.Popen(*args, **kwargs)
  File "C:\Users\jolan\.platformio\python3\lib\subprocess.py", line 800:
    restore_signals, start_new_session)
  File "C:\Users\jolan\.platformio\python3\lib\subprocess.py", line 1207:
    startupinfo)
================================================================================================== [FAILED] Took 1.97 seconds ==================================================================================================
The terminal process "C:\Users\jolan\.platformio\penv\Scripts\pio.exe 'run', '--environment', 'ESP_4096'" terminated with exit code: 1.

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 22:11
by jvdz
Did you check the 2 links I added to my last post to see if you can follow some of the advice given there?
It's is hard for me/us to give support to issues with PlatformIO. ;)

so specifically this part: https://github.com/platformio/platformi ... -699666575

edit: One other thing to check: Do you have git installed? To check, just open the CMD prompt and run: git

Re: ESP32-CAM as doorbell with camera

Posted: Monday 11 January 2021 22:40
by tux21
That is what was missing, thank you so much for your help!
I've just installed git following the link below, reboot and it works flawlessly.

https://phoenixnap.com/kb/how-to-install-git-windows