My 2c. I'm not necessarily good at following my own advice, but here are some suggestions
in case any hit home.
Are you good at teaching? You may be unmotivated by what you are currently doing , but you may still have valuable skills to offer. There seems to be a lot of code academies being set up to teach people how to code. Here in the UK there is a CodeClub that teaches school kids how to code, and in the last week I read about a new academy set up which uses mentors from industry on a volunteer basis. There may be something similar in your area.
Volunteering may not fix the problem with finding the motivation when building your own code, but is another string to your bow, and gives you different perspective on your skills.
One way to mitigate the stress of deciding what to build when learning a new skill is to do a course on Coursera or Udacity in the area you are interested in. Something that stretches your skills in just the right way so as to challenge you and reinvigorate your interest in coding.
Yes its totally possible to learn a new skill outside of those kinds of environments just from information on the Internet, and I guess thats the default way to acquire new information but I find that when my motivation is suffering the combination of a syllabus, deadlines and the course community gives me the motivation to acquire a new skills without feeling I have to create something awesome.