Comments (7)
Hi, can you provide the error ? Are you sure the JSON is still valid ?
from lg-netcast-control.
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.
Your JSON config file is invalid, paste it here if you want or try to fix it.
from lg-netcast-control.
Of course!
{
"code": 052129,
"ip": "192.168.43.120"
}
from lg-netcast-control.
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.
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.
You're welcome !
from lg-netcast-control.
Related Issues (2)
- app crash HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lg-netcast-control.