Lumina
Lumina copied to clipboard
End the program
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:
- Extended the silence timeout to 1.2 seconds
- 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.
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.
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.
The comma has been added.