The PyPortal fetches and sets the microcontroller's current UTC time. This may take up to 15 seconds. |
|
Formatting the Name LabelAdd spaces to the left of the TOTP key name in the |
|
When the timer is five seconds away from refreshing, the progress bar will change from white to red. Once the time hits zero, the progress bar resets and the key regenerates. |
Customizing the Authentication Friend
Everyone's desk is different and we can do a bit of customization to our PyPortal authentication friend.
BackgroundIn the code.py file, change |
|
Customizing the ButtonsWe can change the button's fill color and text color. To change the button's fill color: in the code.py file, change To change the button's text color: in the code.py file, change |
|
Formatting the Name LabelThe x-location for the name label is zero by default. You may need to modify the |
In secrets.py, add spaces to the left of the the key in totp_keys
to center the names, if desired:
'totp_keys' : [(" Discord", "JBSWY3DPEHPK3PXP"), (" Gmail", "JBSWY3DPEHPK3PZP"), (" GitHub", "JBSWY5DZEHPK3PXP"), (" Adafruit", "JBSWY6DZEHPK3PXP"), (" Outlook", "JBSWY7DZEHPK3PXP")]