@domsen123 A bit more hacking on this and I got it to work. I changed how the date comparison is done:
var now = moment();
var startTimeSplit = this.config.startTime.split(":");
var endTimeSplit = this.config.endTime.split(":");
var startTime = moment().hour(startTimeSplit[0]).minute(startTimeSplit[1]);
var endTime = moment().hour(endTimeSplit[0]).minute(endTimeSplit[1]);
if( now.isSameOrAfter(startTime) && now.isSameOrBefore(endTime) ){
I had to do this in three places:
in the start() function
in the getDom() function
in the getHeader() function
I’m no seasoned programmer, so I’m sure there is a better way to do this, but this at least works for me, and I can verify that Canadian addresses seem to work fine.
Any chance you can add a configuration to each destination for the travel mode? i.e.: Driving, Transit, Biking, Walking. I have two destinations currently configured, my wife’s commute, which she drives, and mine, for which I take transit. I’d like mine to show transit time, not driving time.