Local cosmic-ray measurements with Fermi-LAT