Code Monkey home page Code Monkey logo

Comments (7)

Michaelvilleneuve avatar Michaelvilleneuve commented on June 9, 2024

Hi, can you provide the error ? Are you sure the JSON is still valid ?

from lg-netcast-control.

PabloMongayOlacia avatar PabloMongayOlacia commented on June 9, 2024

That is what it says:

[nodemon] 1.17.4
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting ./node_modules/babel-cli/bin/babel-node.js app.js --presets node6
module.js:674
throw err;
^

SyntaxError: /home/pablo/lg-netcast-control/config.json: Unexpected number in JSON at position 13
at JSON.parse ()
at Object.Module._extensions..json (module.js:671:27)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/pablo/lg-netcast-control/LgApi.js:5:1)
at Module._compile (module.js:652:30)
at loader (/home/pablo/lg-netcast-control/node_modules/babel-register/lib/node.js:144:5)
[nodemon] app crashed - waiting for file changes before starting...

from lg-netcast-control.

Michaelvilleneuve avatar Michaelvilleneuve commented on June 9, 2024

Your JSON config file is invalid, paste it here if you want or try to fix it.

from lg-netcast-control.

PabloMongayOlacia avatar PabloMongayOlacia commented on June 9, 2024

Of course!

{
"code": 052129,
"ip": "192.168.43.120"
}

from lg-netcast-control.

Michaelvilleneuve avatar Michaelvilleneuve commented on June 9, 2024

Oh ok, that's because 052129 is not a a number because of the 0. Try passing it as a string.

from lg-netcast-control.

PabloMongayOlacia avatar PabloMongayOlacia commented on June 9, 2024

I was waiting to test it with the TVs...
Just changing JSON like:
{
"code": “052129”,
"ip": "192.168.43.120"
}
And it works perfect.
Lots of thanks!

from lg-netcast-control.

Michaelvilleneuve avatar Michaelvilleneuve commented on June 9, 2024

You're welcome !

from lg-netcast-control.

Related Issues (2)

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.