One of the keys to success is passion. If you care about something or want it naturally you won't need to force yourself to work on it. The passion will be your fuel. Only work on things you are passionate about.
Just because you aren't given the credit and haven't been recognised for your work doesn't mean you have to give up or stop. You don't always need credit, other people do not always have to know what you are capable of doing as long as you do.