DiddyWeb security

I've resurrected my Diddyborg after installing a 12000mAh pijuice Li ion battery. I was wondering how secure it is to run DiddyWeb.py the python gui over the internet. I am thinking it would be worth just remotely activating (which I can do with node-red) but I cant find a way to then kill the server after I've finished. I succesfully added buttons to the python GUI but after much googling could not find a command that would self terminate the server. Any ideas.Or are there any other ways of keeping it secure?
Thanks

piborg's picture

The script has a running variable that can be used inside the handle function to shut everything down cleanly:

global running
running = False

It then should close the script after it has handled the reply :)

Wow. That was easy. Works great. Thanks!

Subscribe to Comments for "DiddyWeb security"