create firebase database https://console.firebase.google.com then
Simple code for firebase realtime database operation using python
then run your script $ python Automation.py
I have skiped nodemcu board installation, python installation, board driver installation , pip installation etc.