npoints should be $meta->npoints
Merge branch 'master' of https://github.com/emoncms/emoncms