It’s been a while since I last worked on this project, I’m still waiting for my hardware funding request to be approved, which made me lose motivation.
But I’m back, so here’s what’s new:
I separated the main function in cooking_helper.py Unix-style, so that everything is cleaner and easier to debug or scale (in case the CSV file gets bigger)
Now it doesn’t need to open the csv everytime, instead it just opens it once upon startup.
In main.py, created an initialize() function which separates the tasks into an easier format. The AssistantDisplay class and the list of recipes is then passed onto the while True loop.
The main() function is now much simpler: it calls the initialization function, then in the loop it checks whether there are new recordings thanks to an imported function, if there are not it waits 0.2 seconds before checking again, and if there is then it runs the process_recording() function.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.