I get motivated even more seeing the github streak (github.com/rajeshvaya) and it a very small measure which helps me going as well.. everyday for past 64 days I have made sure I spend my first 3 hours of my morning time (even on weekends.. I make sure I get up early)
after you get this initial start it is kind of self-motivating which will keep you moving forward.
What i think is just 2 important things to get this:
1. Work on the projects which interest you and not because other people think its cool or just to make little amount of money
2. Try to spend first few hours of morning on your side project rather than ad-hoc amount of time and different time-span of day. Keep it regular, same time just like gym