It's kind of working with actual workouts, but its messy. I reckon if I can code up displaying actuals then folding in planned workouts should be a breeze. I'm using the Qxt widget 'QxtScheduleView' for the weekly view (below) ... lets just say the documentation is brief and its a bit 'quirky' ;)
As it happens I previously coded up webcal support to read iCal or other .ICS (files or URLs). For example I can fetch and parse my training schedule from TrainingPeaks.com via a webcal URL using the excellent libical from freeassociation. So adding planned workouts should be quite easy once the view is sorted.
I reckon this should all be sorted by the end of the weekend, so planning mode can start in earnest soon...
And I now have a monthly "calendar" view, although I skipped the Qt calendar widget since it sucks so hard. Wrote my own. Hey, why re-use when you can reinvent?
Just added the ability to configure colors and show planned workouts from a calendar.ics file in the cyclist home directory. This means we can mix actual and planned on the display, so next step is to allow us to edit and create planned workouts... and the fun will really begin :)



5 comments:
Wow. Seriously Mark, if this is what you're whipping up as a hobby I'm downright frightened to think of what you'd do on the clock!
This is very very cool. Perhaps the foundation of making GC a proactive tool!
I'll be downloading your repo with baited breath!
Don't get too excited... but given enough time and crashes I might write a bit of code worth using :)
Nice
Does this app use qxtscheduleview ?
Re: does it use qxtscheduleview.
Well I started to use it and the code is still there and kind of works, but there are a few bugs I need to iron out... in fact I'm toying with writing my own.
Why do you ask?
Post a Comment