Thu May 14, 2015 10:55 pm
I've actually been having good luck collecting data. I'm pulling the json output of the ubntbox program and pushing it to remote couchdb via a fairly simple script and deleting successfully posted data from a buffer. If a radio cant connect, it can store up quite a bit and then when it finally gets through dump a gap-free history. In the script I'm also pinging the radio's gateway a few times for a connectivity test and shoving that into the post. Unfortunately I can't get curl to run on airOS so I'm having to build an http post as part of the script and telnet it to couchdb, but it works and returns success or failure.
I haven't gotten into post-processing the data much which is required because the output in airos v5 vs v7 is different, and I haven't created any views to look at the data yet but if I formulate the views right then charts etc shouldn't be too difficult w/ chart.js or similar.
I could probably build (aka compile) some utilities like curl and jq if I took the time to setup an openwrt cross build environment :/ but that's too much work and it's probably better to deal with a little extra data transfer and process it on a dedicated box.
Probably just another project I wont finish though :/