Mercurial > code > home > repos > homeauto
comparison espNode/garage_hall_cam.yaml @ 1678:7831b5de3572
espNode checkpoint
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 22:59:39 -0700 |
parents | bc3516d02762 |
children |
comparison
equal
deleted
inserted
replaced
1677:aa35ae7a1acc | 1678:7831b5de3572 |
---|---|
1 # jump IO0 to GND on the board for programming | 1 # jump IO0 to GND on the board for programming |
2 | |
3 # bang(pts/13):/my/proj/homeauto/espNode% forever { catchsegv ./readcam.py --cam garage_hall_cam --port 10020 -v } | |
4 | 2 |
5 | 3 |
6 esphome: | 4 esphome: |
7 name: garage_hall_cam | 5 name: garage_hall_cam |
8 platform: ESP32 | 6 platform: ESP32 |
9 board: nodemcu-32s | 7 board: nodemcu-32s |
10 build_path: build | 8 build_path: garage_hall_cam |
11 | 9 |
12 wifi: | 10 wifi: |
13 ssid: !secret wifi_ssid | 11 ssid: !secret wifi_ssid |
14 password: !secret wifi_password | 12 password: !secret wifi_password |
15 domain: '' | 13 domain: '' |
16 use_address: 10.2.0.28 | 14 use_address: 10.2.0.74 |
17 | 15 |
18 #mqtt: | 16 mqtt: |
19 # broker: '10.2.0.1' | 17 broker: '10.2.0.1' |
20 # port: 1883 | 18 port: 1883 |
21 # username: '' | 19 username: '' |
22 # password: '' | 20 password: '' |
23 | 21 |
24 logger: | 22 logger: |
25 baud_rate: 115200 | 23 baud_rate: 115200 |
26 level: DEBUG | 24 level: DEBUG |
27 | 25 |
28 ota: | 26 ota: |
29 | 27 |
30 api: | 28 # Serves multipart mime stream of jpegs at GET / |
31 port: 6053 | |
32 password: 'MyPassword' | |
33 | |
34 esp32_camera: | |
35 external_clock: | |
36 pin: GPIO0 | |
37 frequency: 20MHz | |
38 i2c_pins: | |
39 sda: GPIO26 | |
40 scl: GPIO27 | |
41 data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35] | |
42 vsync_pin: GPIO25 | |
43 href_pin: GPIO23 | |
44 pixel_clock_pin: GPIO22 | |
45 power_down_pin: GPIO32 | |
46 | 29 |
47 name: camera | 30 # gst-launch-1.0 souphttpsrc location=http://10.2.0.74/ do-timestamp=true ! multipartdemux ! jpegdec ! autovideosink |
48 | |
49 # https://github.com/esphome/esphome/blob/dev/esphome/components/esp32_camera/esp32_camera.cpp#L265 says a 'stream' is 5 sec long | |
50 | |
51 # setting to 5 causes 'Setup Failed: ERROR' | |
52 max_framerate: 4 fps | |
53 # https://github.com/raphaelbs/esp32-cam-ai-thinker#capabilities says camera | |
54 # is likely ov2640 with these native resolutions: | |
55 # uxga=1600x1200 svga=800x600 cif=400x296 | |
56 # My camera has 'Setup Failed: ERROR' if this is not 640x480. Not sure why. | |
57 # Also the camera had 'Setup Failed: ERROR' when its cable needed reseating. | |
58 | |
59 # 160x120 (QQVGA) 'Got invalid frame', then no more | |
60 # 128x160 (QQVGA2) | |
61 # 176x144 (QCIF) fps: 25 jpg: 20 img: 2KB burst of frames then stopped. | |
62 # fps: 20 jpg: 20 no frames | |
63 # 240x176 (HQVGA) | |
64 # 320x240 (QVGA) fps: 10 jpg: 20 some frames, 4.5KB | |
65 # 400x296 (CIF) | |
66 # 640x480 (VGA) fps: 4 jpg: 10 works, 20KB | |
67 # 800x600 (SVGA) | |
68 # 1024x768 (XGA) | |
69 # 1280x1024 (SXGA) fps: 1 works | |
70 # 1600x1200 (UXGA) | |
71 | |
72 resolution: 640x480 | |
73 | |
74 # 10 to 63. default=10. higher is | |
75 # worse. https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/__init__.py#L84 | |
76 # sets the lower limit to 10, but | |
77 # https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/components/ov2640/sensors/ov2640.c#L345 | |
78 # suggests that it might be 0 (for an ov2640, anyway). | |
79 jpeg_quality: 10 | |
80 |