My passion is as high as always, only the world has changed and I've become wiser. Mind you, I've still broken my personal record in job-switching in the last 2 years, despite being in my mid-40ies. If anything, with age I've become *more* nimble but less anoyingly eager - at least on the outside.
Here's some advice:
1.) Switch your job. Don't worry, you'll live. And if only it is to find out that you had the best job in the world. Ok them, *now* you know. Look for the next one like that. Sometimes a bit of jobhopping is required to find out what you want and what you don't want. Pratice job-hopping and interviewing. Not to make it a habit, but to get used to looking until you've found a place where you are valued. Going freelance is a variant to that. If you're scared of going freelance even though you'd like to: Go freelance! Again: You'll live. And you'll never look back at your old life with anything other than pitty.
2.) More experienced people in our field - like me - would rather do nothing than work with a shitty team unwilling to learn or toil away on something that can't work or only will work with extreme stress and effort, because someone in sales or PM wasn't listening and didn't do his homework. Contrary to my younger colleagues, I, like most other experienced in our field, smell a projekt doomed to fail from 10 miles away. They might think I'm not passionate or that I'm complacent. Until three weeks later they've wasted 50hrs trying to get something to work that simply can't under the given circumstances. When the project finally runs against the wall and the crew and the problem has everyones attention, the boss turns to me. I say: "We need A,B and C. Otherwise this won't work. End of Story." Optionally, depending on the situation, I add in ".... As I said 3 months ago.". Sidenote: I allways *did* say it 3 months ago, but sometimes it's wiser not to rub it in. Also a thing experieced devs have learned.
Then we get what we need - which usually is simply a phone number of someone who we need to talk to and the mandate to do freely as we will, as long it stays within budget and solves the problem. Then I fix the problem by working a few hours of overtime - which I do gladly, because I, at this point, don't have to deal with any bullshit and I feel like getting something done. Just happened again yesterday, btw. Stayed till half past eight and did all the scaffolding and on monday morning finally everybody is going to hush and listen how we're going to do the last fixes.
3.) There's life beyond computers. I ditched my internet connection at home. Capped mobile data and Inet caffees are enough for regular E-Mail or getting your surfing fix inbetween. I've got enough of that at work, and I try not to spend 12 hours at the keyboard each day as I used to. It's lost its exitement. Mind you, I still pick up new stuff each day and make technology decisions 5 times a week at a minimum - but I've gotten way better and faster at dropping ideas. I try not to run in circles on the web anymore. I'm slowly building my Idea Immune System, and try to avoid getting all worked up within minutes about every new tech-fad that comes along. I've also got other things to do before I grow old. When my joints start aching, then I can go back to surfing and trying new web-toolkits 24/7, until then I want to get better at things I'm not that good at yet. Meeting women, cooking (moving away from fast-food), martial arts, exercising, traveling, dancing and perhaps even going back to playing guitar.
You should think about stuff like that too.
My general advice on this is:
You should at least have one regular thing in your life that fulfills you with deep inner satisfaction that has nothing to do with your job or other parts of your life. That can be a religion, any form or art or some outdoor activity or something along those lines. It should be that you can say to yourself: OK, even if I lose my job tomorrow, go broke, have my wife running away and my house burn to the ground, there's still that thing I can do that is fun and gives my life true meaning.
Hope I could help.
Good luck.