train-departure-display
train-departure-display copied to clipboard
firstDepartureBold variable not working
Hi,
First of all, thank you for this project. I have just this week built a departure board using the instructions at balena.
One thing not working for me though - I have set firstDepartureBold to false, but the first departure still shows in bold.
Regards, Chris
Just to add to the above. I commented out lines 407 and 408 of main.py on the device and rebooted. The first line then wasn't bold. However, as soon as I change a variable in Balena cloud and save the changes, the main.py on the device reverts to the original and once again the first line is in bold.
I have discovered the issue! All of the true / false flags in the variables are set to lower case. Python is case sensitive and expects the first letter of a True of False flag to be capitalised.
As soon as I changed the variables to either True or False, things started displaying as I would expect.