The medication you are taking for hypothyroidism
is important to control your thyroid level and one important thing you have to keep in mind is that you have to take this medication continously without any interruption.
As far as the problem of weight gain and swelling in leg is concerned, it can be due to change in the thyroid level and I would suggest you to consult your doctor and have an investigation done to make sure that your thyroid level is within normal limit.
Apart from this, if you are planning to use some house hold remedy to loss weight, than it is ok to do so. Only thing which you have to keep in your mind is to make sure that this is not done along with the medication for the thyroid condition and keep both things separat.
Thanks and take care