dolvany / cablemodemstats Goto Github PK
View Code? Open in Web Editor NEWMonitor your cable modem!
Monitor your cable modem!
Running SB6141
(or the first command in the file with jq
) results in the following error
jq: error: syntax error, unexpected ?//, expecting ';' or ')' (Unix shell quoting issues?) at <top-level>, line 1:
(now|floor) as $now|map(.children|del(.[0])|map(.children|map(.text)|del(.[0]))|transpose|map(.[2]|=sub(" .*";"")|.[4]|=sub(" .*";"")?//.))|(.[0][]|{type:"downstream",channel:.[0],snr:.[2],power:.[4],time:$now}),(.[1][]|{type:"upstream",channel:.[0],power:.[4],time:$now}),(.[2][]|{type:"codewords",channel:.[0],unerrored:.[1],correctable:.[2],uncorrectable:.[3],time:$now})
jq: 1 compile error
I tried with the following jq
versions:
1.4-2.1+deb8u1 (installed via apt)
jq-1.6 (installed from source).
Not sure how to fix this.
I am having trouble getting this to successfully collect data on a raspberry Pi, but only through cron.
If I do /home/pi/cableModemStats/SB6141 | /home/pi/cableModemStats/influx
manually I get no output and I can see the data get updated in Influx DB. However, with the following lines in my crontab (via crontab -e) I get no data refresh.
* * * * * (/home/pi/cableModemStats/SB6141 | /home/pi/cableModemStats/influx) >/dev/null 2>&1
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.