diff --git a/db/memories.db b/db/memories.db index 391f116..cfda479 100644 Binary files a/db/memories.db and b/db/memories.db differ diff --git a/etc/mema.ini b/etc/mema.ini index 6fd5146..bbe6a4a 100644 --- a/etc/mema.ini +++ b/etc/mema.ini @@ -23,6 +23,7 @@ use_external_ai = no #FIXME: now uses libcamera this is about the simplest set of options picture_command = libcamera-jpeg --nopreview -o +#picture command = DISPLAY=:0 libcamera-jpeg -o ## --- problematic video section --- ## # this doesn't do sound currently, need to recompile ffmpeg or move to cvlc? @@ -49,9 +50,9 @@ audio_maximum = 30 label_program = /home/pi/mema/label_video.py #FIXME: this is problematic, replace with jaro -xdg_open_command = handlr launch x-scheme-handler/http -- http://localhost:8000/memories.html +#xdg_open_command = handlr launch x-scheme-handler/http -- http://localhost:8000/memories.html #jaro_open_command = jaro http://localhost:8000/memories.html -#xdg_open_command = /home/hbarnard/projects/mema/browser.py +xdg_open_command = http://localhost:8000/memories.html #xdg_search_open = xdg-open https://google.com?q=mema keyword_slot_file = ~/.config/rhasspy/profiles/en/slots/keywords diff --git a/install.sh b/install.sh index 27ce6d8..b09b600 100755 --- a/install.sh +++ b/install.sh @@ -40,8 +40,9 @@ apt install ffmpeg apt install libcamera-apps apt install pulseaudio apt install vlc +apt install ntp # docker -sudo apt install docker.io +# no get_docker instead sudo apt install docker.io echo '*-------------------------------------------------------------------------------*' echo 'installing mema3' echo 'install python3 packages, make take a while' diff --git a/take_picture.py b/take_picture.py index 866a817..620365b 100755 --- a/take_picture.py +++ b/take_picture.py @@ -60,6 +60,7 @@ def main(): try: subprocess.call(picture_command_array, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) except subprocess.CalledProcessError as e: + logging.debug('taking picture error') raise RuntimeError("command '{}' return here with error (code {}): {}".format(e.cmd, e.returncode, e.output)) dots[0] = (0,255,0) # red else: @@ -81,7 +82,7 @@ def main(): else: mu.curl_speak(config['en_prompts']['done']) - + logging.debug('end of taking picture') dots.deinit() if pi else None print(result + "|" + media_path)