Have you considered abandoning the project? No, really. It seems like a bad sign that you didn't say "I want to work." Why is this project important enough that you're willing to force yourself to enjoy it even if you currently don't?
(When I have trouble working, it usually takes the form "I have trouble starting to work without using something like Beeminder + Pomodoros, but once I start working I have no problem continuing." But it sounds like your problem may be worse than that, and if it is, I'm not convinced tricking yourself into enjoying it more is the best solution.)
I could work as little as I need to pay for necessities and internet. Since "internet" seems to include everything I could ever possibly want, this would work great for me. However, I'm not the only one I care about. I need to be productive, because if I don't donate as much as I can to the best charity I can find, hundreds of innocents will die.
Also, this project is somewhat of a lower limit. Insomuch as there is anything productive I want to do, I want to do it. If I can't manage to do it, I can't be productive.
...It seems like a bad sign that y
I have a master's project I'm having trouble working on. It's something I've wanted to do, and I even started working on, long before I started my master's degree. If I can't even enjoy that, then I'm doomed to spend eight hours a day doing something I hate for the rest of my life. Even if I manage to improve my willpower, I doubt I'll be very productive doing something I don't want to do.
Does anyone have any idea how I can enjoy working more?