From an influxDB command line you can use:
influx -precision rfc3339 -database ruuvi -host pi93graf
either from the R-Pi4 or any other system where you have influx installed.
sending influx command processor something like:
select (temperature*9/5)+32 from ruuvi_measurements where mac='DC4B596ED18B' limit 3 tz('America/New_York')
Will write something like:
name: ruuvi_measurements
time temperature
---- -----------
2019-09-15T20:00:44.423701794-04:00 75.2
2019-09-15T20:03:59.23170522-04:00 75.2
2019-09-15T20:05:04.884082449-04:00 75.2
to stdout.
You could then use the sed command to delete the headers and replace spaces with commas.
Would that work for you? Do you need more specific details?