Small dosimeters as solid state detectors can be useful for the dosimetric characterization and periodic quality control of radiotherapy proton beams. The calibration of solid state detectors for proton beams is not a solved problem especially for ophthalmologic proton beams, where these detectors present a LET-dependent signal. In this work a PTW diamond detector has been selected because of its good signal reproducibility (0.3%) and stable response with accumulated dose. A method that takes into account the LET dependence of the diamond detector signal, at 62 MeV proton beam, is here proposed. In particular an empirical correction factor, kDD(Eo) (Rres), has been determined as a function of the residual range quality index, to correct the diamond detector signal for a proton beam of incident effective energy E0= 62 MeV. A dedicated software allows us to use the diamond detector as an on-line reference dosimeter, where an ionization chamber may be difficult to use, or for periodic quality control procedures. The article also reports a comparison between the signal dependence on proton energy of silicon, diamond, and radiochromic film detectors.