mattdsteele / pibooth-config

11 stars 2 forks source link

initial help #1

Open jo-ei opened 2 years ago

jo-ei commented 2 years ago

Hi Matt, I am trying to use your plugin for the neppxiel ring. Unfortunately it does not work for me. I see the rainbow, however the countdown and also the white flash does not work as seen in your video.

Would you have a tip for me?

logging extended by prefixed with: "NEOpixel PLUGIN: "

pi@pi4:~ $ sudo pibooth -v
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
pygame-menu 4.0.7
[ DEBUG   ] pibooth           : Plugin found at '/opt/pibooth-addons/pibooth_neopixel.py'
[ INFO    ] pibooth           : Installed plugins: neopixel-0.0.2
[ INFO    ] pibooth           : Starting the photo booth application on Raspberry pi 4B
No protocol specified
No protocol specified
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
[ DEBUG   ] pibooth           : Fallback to pibooth default camera management system
[ DEBUG   ] pibooth           : Found gPhoto2 cameras on ports: 'usb:001,004'
[ INFO    ] pibooth           : Configuring gPhoto2 camera ...
[ DEBUG   ] pibooth           : Getting option actions/viewfinder=2
[ DEBUG   ] pibooth           : Setting option imgsettings/iso=100
[ WARNING ] pibooth           : Invalid value '100' for option iso (possible choices: ['Auto']), trying to set it anyway
[ DEBUG   ] pibooth.gphoto2   : ptp_usb_getresp [usb.c:514]: PTP_OC 0x9110 receiving resp failed: PTP Device Busy (0x2019)
[ DEBUG   ] pibooth.gphoto2   : _set_config [config.c:9128]: 'ptp_canon_eos_setdevicepropvalue (params, cursub->propid, &propval, cursub->type)' failed: PTP Device Busy (0x2019)
[ DEBUG   ] pibooth.gphoto2   : gp_context_error: The property 'ISO Speed' / 0xd103 was not set (0x2019: PTP Device Busy).
[ DEBUG   ] pibooth.gphoto2   : gp_camera_set_config [gphoto2-camera.c:1115]: 'camera->functions->set_config (camera, window, context)' failed: -110
[ ERROR   ] pibooth           : Unsupported option imgsettings/iso=100 ([-110] I/O in progress), configure your DSLR manually
[ DEBUG   ] pibooth           : Setting option settings/capturetarget=Memory card
[ WARNING ] pibooth           : No printer found (pycups or pycups-notify not installed)
[ INFO    ] pibooth           : NEOpixel PLUGIN: Starting up
[ DEBUG   ] pibooth           : +< Activate state 'wait'
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 41 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 41 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 59 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 80 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 80 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iTXt' 99 29
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 140 5756
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Starting proc
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Got to thread cycle
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Stopping rainbow process
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Stopped rainbow process
[ DEBUG   ] pibooth           : +> took 14.206 seconds
[ DEBUG   ] pibooth           : +< Activate state 'preview'
[ INFO    ] pibooth           : |  Show preview before next capture
[ DEBUG   ] pibooth           : |  Setting option actions/viewfinder=1
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth.gphoto2   : |  ptp_usb_getresp [usb.c:514]: PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  No translation defined for 'de/capture' key
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iCCP' 41 388
[ DEBUG   ] PIL.PngImagePlugin: |  iCCP profile name b'ICC profile'
[ DEBUG   ] PIL.PngImagePlugin: |  Compression method 0
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 441 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 441 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 459 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 480 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 480 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tEXt' 499 25
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 536 8192
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iCCP' 41 388
[ DEBUG   ] PIL.PngImagePlugin: |  iCCP profile name b'ICC profile'
[ DEBUG   ] PIL.PngImagePlugin: |  Compression method 0
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 441 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 441 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 459 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 480 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 480 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tEXt' 499 25
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 536 5653
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: In preview enter
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382256'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381552'
[ DEBUG   ] pibooth           : |  Add to buffer the image '3010089168'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382224'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382032'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977344016'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382064'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381840'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977344016'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381552'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382032'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382224'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977344016'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382192'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382256'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382064'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977344016'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977341712'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382032'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2976857968'
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977382096'
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: In preview exit
[ DEBUG   ] pibooth           : +> took 9.476 seconds
[ DEBUG   ] pibooth           : +< Activate state 'capture'
[ INFO    ] pibooth           : |  Take a capture
[ DEBUG   ] pibooth           : |  Setting option actions/viewfinder=0
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: In capture exit
[ DEBUG   ] pibooth           : +> took 2.050 seconds
[ DEBUG   ] pibooth           : +< Activate state 'processing'
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iCCP' 41 388
[ DEBUG   ] PIL.PngImagePlugin: |  iCCP profile name b'ICC profile'
[ DEBUG   ] PIL.PngImagePlugin: |  Compression method 0
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 441 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 441 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 459 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 480 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 480 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tEXt' 499 25
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 536 8192
[ INFO    ] pibooth           : |  Saving raw captures
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: Make (271) - type: string (2) Tag Location: 22 - Data Location: 158 - value: b'Canon\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: Model (272) - type: string (2) Tag Location: 34 - Data Location: 164 - value: b'Canon EOS 1200D\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: Orientation (274) - type: short (3) - value: b'\x01\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: XResolution (282) - type: rational (5) Tag Location: 58 - Data Location: 196 - value: b'H\x00\x00\x00\x01\x00\x00\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: YResolution (283) - type: rational (5) Tag Location: 70 - Data Location: 204 - value: b'H\x00\x00\x00\x01\x00\x00\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: ResolutionUnit (296) - type: short (3) - value: b'\x02\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: DateTime (306) - type: string (2) Tag Location: 94 - Data Location: 212 - value: b'2022:08:02 16:51:24\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: Artist (315) - type: string (2) - value: b'\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: YCbCrPositioning (531) - type: short (3) - value: b'\x02\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: Copyright (33432) - type: string (2) - value: b'\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: ExifIFD (34665) - type: long (4) - value: b'h\x01\x00\x00'
[ DEBUG   ] PIL.TiffImagePlugin: |  tag: GPSInfoIFD (34853) - type: long (4) - value: b'\x86 \x00\x00'
NEOpixel PLUGIN: Stopping
[ INFO    ] pibooth           : |  Creating the final picture
[ INFO    ] pibooth           : |  Use PilPictureFactory to create background
[ INFO    ] pibooth           : |  Use PilPictureFactory to concatenate images
[ INFO    ] pibooth           : |  Use PilPictureFactory to assemble final image
[ INFO    ] pibooth           : |  Use PilPictureFactory to draw texts
[ INFO    ] pibooth           : |  Use PilPictureFactory to outline boundary borders
[ INFO    ] pibooth           : |  Save image '/media/pi/piBilder/pibooth/2022-08-02-17-48-36_pibooth.jpg'
[ DEBUG   ] pibooth           : +> took 2.819 seconds
[ DEBUG   ] pibooth           : +< Activate state 'finish'
[ DEBUG   ] pibooth           : |  No translation defined for 'de/finishedwithimage' key
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iCCP' 41 388
[ DEBUG   ] PIL.PngImagePlugin: |  iCCP profile name b'ICC profile'
[ DEBUG   ] PIL.PngImagePlugin: |  Compression method 0
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 441 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 441 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 459 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 480 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 480 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tEXt' 499 25
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 536 4879
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IHDR' 16 13
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'iCCP' 41 388
[ DEBUG   ] PIL.PngImagePlugin: |  iCCP profile name b'ICC profile'
[ DEBUG   ] PIL.PngImagePlugin: |  Compression method 0
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'bKGD' 441 6
[ DEBUG   ] PIL.PngImagePlugin: |  b'bKGD' 441 6 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'pHYs' 459 9
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tIME' 480 7
[ DEBUG   ] PIL.PngImagePlugin: |  b'tIME' 480 7 (unknown)
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'tEXt' 499 25
[ DEBUG   ] PIL.PngImagePlugin: |  STREAM b'IDAT' 536 8192
[ DEBUG   ] pibooth           : |  Add to buffer the image '2977381584'
[ DEBUG   ] pibooth           : +> took 10.407 seconds
[ DEBUG   ] pibooth           : +< Activate state 'wait'
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Starting proc
[ INFO    ] pibooth           : |  NEOpixel PLUGIN: Got to thread cycle

Thanks Jochen

mattdsteele commented 2 years ago

Hi @jo-ei - unfortunately I don't have my pibooth setup anymore, or I could try and launch it to see if I see anything similar.

You might also try running demo.py as a standard Python program; I'd be curious if the Neopixel code works outside pibooth?

lxne commented 1 month ago

Hi, I am very interested in this plugin. Did you get it working? Did you have to disable audio?

Best wishes Alex