FlyingDiver wrote:The only thing my script might need is some code to remove leading zeros from hours or dates. But I really doubt having the zeros there would change the TTS results.
The format() method can create the time/date string without leading 0's:
- Code: Select all
indigo.variable.updateValue(pennwood_date, '{dt:%A}, {dt:%B} {dt.day}'.format(dt=now))
indigo.variable.updateValue(pennwood_time, '{dt.hour}:{dt.minute} {dt:%p}'.format(dt=now))
That should generate the time and day without leading 0's.