You should focus more on diet. To lose weight you need to be in a caloric deficit. That is where you burn more calories than you eat in a day. Do that consistently over time and you will lose weight. As far as your knee things like swimming and biking are good cardio choices that have low impact. You should also consider getting weight training in as well, just avoid exercises that make your knee hurt.