Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End the program #5

Open
derfeznoj opened this issue Feb 12, 2024 · 3 comments
Open

End the program #5

derfeznoj opened this issue Feb 12, 2024 · 3 comments

Comments

@derfeznoj
Copy link

derfeznoj commented Feb 12, 2024

I've tried mightily to 'End the program', 'Close the program', 'Exit the program' and all I'm doing is burning up API costs. It either misinterprets 'end' as 'and'. or it accepts the various commands as an API request and either generates an API error or returns some sort of goofy image. Is there an alternate way of stopping the program other than cycling power to the RP? I can use a ctrl-C if I'm connected headless or w/keyboard, but I will try to use this unconnected if possible.

You said: Close the program
You requested the following image: Close the program

Creating image...

Update: I experimented with the python code:

  1. Extended the silence timeout to 1.2 seconds
  2. Added "Quit the program"

I can now use "Quit the program" to quit the program. I've tried to do something about the marbles in my mouth for years to no avail.

@DevMiser
Copy link
Owner

It sounds like you solved this. If others have the same issue, please try the following:

Open a terminal and enter the following commands:

cd /home/pi/Lumina
sudo nano Lumina.py

Use your keyboard to scroll down to the line that begins with “CloseProgram_list”

You can add additional phrases of your choosing to that list.

For example, you may want to add “Stop”, and see if that works better.

@dan06
Copy link

dan06 commented Feb 13, 2024

The real problem is a missing comma at the end of line 47. If you add the comma at the end of the string (like the ones before and after it), all the phrases should work.

@DevMiser
Copy link
Owner

The comma has been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants