The direction of gravitational acceleration (g= 9.8m/s2) always downwards to the Earth. when you are at rest gravitational acceleration (g) will not equal to zero, then weight machine will find the weight f=mg (kg m/sec2), which downwards to the earth.