Only download most recent reading?

1169 views
Skip to first unread message

Ken Woods

unread,
Mar 25, 2015, 5:24:34 PM3/25/15
to wireless-s...@googlegroups.com


That downloads a 10MB file, but I only need the last line of that CSV.

Anybody have any ideas on how to do that?

Zhiheng Cao

unread,
Mar 25, 2015, 5:27:42 PM3/25/15
to Ken Woods, wireless-s...@googlegroups.com
There is a jsfiddle example at mytaglist.com/apidoc.html
--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-...@googlegroups.com.
To post to this group, send email to wireless-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/wireless-sensor-tags.
To view this discussion on the web visit https://groups.google.com/d/msgid/wireless-sensor-tags/9aad7acc-c532-468d-9667-b93dcdeb9c3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from MetroMail

Ken Woods

unread,
Mar 25, 2015, 8:27:48 PM3/25/15
to wireless-s...@googlegroups.com, kenw...@gmail.com
#bash only, because of conversion C - F stuff.
WORKINGDIR=/some/path/

cat $WORKINGDIR/boileroutput.csv | cut -f8 -d" "> b.txt; C=$(<b.txt); echo "9*$C/5+32" | bc -l > $WORKINGDIR/boilercurrent.txt

For archiving and documentation for futurepeople of this shitty hack.





On Wednesday, March 25, 2015 at 1:27:42 PM UTC-8, mytaglist.com support wrote:
There is a jsfiddle example at mytaglist.com/apidoc.html

On Wednesday, March 25, 2015, Ken Woods <kenw...@gmail.com> wrote:


That downloads a 10MB file, but I only need the last line of that CSV.

Anybody have any ideas on how to do that?

--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-tags+unsub...@googlegroups.com.
To post to this group, send email to wireless-sensor-tags@googlegroups.com.


--
Sent from MetroMail
Reply all
Reply to author
Forward
0 new messages