Giter Site home page Giter Site logo

Comments (10)

onoj avatar onoj commented on August 12, 2024 1

It seems i'm having the same issue -
working through speedtest.sh, SPEED_RESULT has the correct JSON output, but TMP doesnt have any value at all, something seems to be going wrong with the jq command.

my log.json exists, and is writable and i'm using ubuntu 16.04. jq is version jq-1.5-1-a5b5cbe

from isp-speedtest-logger.

tobias-kuendig avatar tobias-kuendig commented on August 12, 2024 1

You'll have to initialize the json structure in the log file first. Otherwise the command won't work when running it against an empty file:

echo '{"log": []}' > log.json

from isp-speedtest-logger.

claym avatar claym commented on August 12, 2024

Nor does mine!

Running

Ubuntu 16.10

the jq install here is: jq-1.5-1-a5b5cbe

from isp-speedtest-logger.

kitsunekyo avatar kitsunekyo commented on August 12, 2024

what do you mean with 'doesnt put out'? the json output seems to work, is it the writing to a file that doesnt work?

if thats the case, make sure to have permission to write to the file and the file exists in the location you specified in the bash script

from isp-speedtest-logger.

roycwc avatar roycwc commented on August 12, 2024

same here, seems like the jq parsing line has some problem. (on osx)

from isp-speedtest-logger.

kitsunekyo avatar kitsunekyo commented on August 12, 2024

please let me know if @claym instructions could help you out.

from isp-speedtest-logger.

kitsunekyo avatar kitsunekyo commented on August 12, 2024

closed as no reply for three weeks

from isp-speedtest-logger.

seanvree avatar seanvree commented on August 12, 2024

FYI:

I think I'm having this issue too.

Log file is present, and I initialized it. At the top of the log.json appears: "'{"log": []}' "

speedtest.sh is just not writing to it.

from isp-speedtest-logger.

kitsunekyo avatar kitsunekyo commented on August 12, 2024

hm. thats weird, have you checked if speedtest.sh outputs anything? we're trying to pipe it's output into the log file. so if it doesnt output anything, it wont write to the file

from isp-speedtest-logger.

seanvree avatar seanvree commented on August 12, 2024

@kitsunekyo - yes, it outputs just fine, just doesn't write it to the log.json.

from isp-speedtest-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.