leswright1977 / PySpectrometer

Raspberry Pi Spectrometer
Apache License 2.0
665 stars 107 forks source link

API feature request #20

Open osenbruggen opened 2 years ago

osenbruggen commented 2 years ago

I have to do a lot of color measurements on different RGBW led strips. It would be awesome to automate this process. It would be great if I could trigger a measurement externally with maybe a TCP of HTTP(S) command and get the measurements back as JSON (or some other format like comma delimited CSV like). Would you please consider this?

leswright1977 commented 2 years ago

You mean like an open socket spewing the data live?

osenbruggen commented 2 years ago

Yes that would be nice :)

marcosdotps commented 2 years ago

Is this feature request about streaming data (lets say include a producer serving one capture per second) or snapshots on demand (to get what the sensor is capturing)?

I've been thinking about adding a simple and lightweight kafka producer recently.

osenbruggen commented 2 years ago

Well I would like to do some automated measurements. I work in the led lighting industry. We want to measure led strip colors. So I would run an automated script cycling through different colors, capture the measurement and save them in a file to compare the different led strip outputs. So either a continues stream of the option to trigger a measurement would both be fine.