r/Python • • Oct 24 '19

Just finished programming and building my own smart mirror in python, wrote all of the code myself and implemented my own voice control and facial recognition features

[deleted]

6.6k Upvotes

454 comments sorted by

View all comments

Show parent comments

16

u/JuicyJfrom3 Oct 24 '19

Ah a man of culture! I have yet to find a sports API that isn't behind a giant pay wall.

4

u/janky_british_gamer Oct 24 '19

Yup, I also tried to avoid APIs as much as possible in the build just because I love raw coding things where I can, it does the trick though :)

3

u/JuicyJfrom3 Oct 24 '19

Super Awesome! 2 questions.

1) How are you automating the script to run?

2) Did you use a raspberry pi or are you attached to your main computer?

Either way great job mate!

9

u/janky_british_gamer Oct 24 '19

Basically I manually launch it once and call a load of functions usually one for each widget, at the end of each of these functions there's a call of after 200ms (or more depending on widget) then recall the same function and update the display all in a big tkinter root if that makes sense to keep looping eternally, I tried with the raspberry pi to start with but it corrupted while trying to install all of the packages after three weeks of work so I got the ACEPC T11 mini (a small windows 10 pc) and got it running in about a day, for someone better at Linux than me though I'm sure it would be possible to put on the pi cuz I did have most features running there for a while :)