function cron_gps(ndays)

if ~nargin
    ndays = 7;
end

webDir = getWebPath;
imgDir = fullfile(getWebPath, 'bog', 'images');

ids = {'m1','m2'};
for i = 1:length(ids)
    id = ids{i};
    try
        close all
        m_lookGps(id, ndays);
        set(0,'CurrentFigure',1)
        writegif(fullfile(imgDir, [id '_gps.gif']))
    catch
        fprintf(1, 'm_lookGps(%s, %i) failed\n', id, ndays);
    end
end
close all