Blank lines in terminal output, saving events to a text file

I really like the command you formatted for us in the dashboard:

 https://api.particle.io/v1/devices/events?access_token=abc123MySecretToken

I combined it with the “screen output.txt” (more on that here) unix command to save a text file with all of my events to my dropbox. W works wonderfully on my mac!

The only small annoyance are the large number of blank lines. What causes the blank lines? Is there an easy way to avoid them?

It’s not a big issue for me to remove them when processing the resulting data. But, I was wondering if there is a way to prevent them in the firstplace?

It’s a `newline sent as keepalive - https://github.com/spark/spark-server/blob/master/views/EventViews001.js#L75

1 Like