This simple piece of Python code demonstrates how to acquire images from a spectrometer and plot the calibrated spectrum ๐.
In my case I was using the M-Spectrometer from ThunderOptics and what I needed was something much simpler than the SpectraGryph software ๐ฅด that they suggest by default. So I simply took the calibration polynomials coefficients, installed the DirectShow camera driver and used OpenCV VideoCapture.