Git Product home page Git Product logo

iotgo's Issues

请问一下,centos6.7下面安装完成后,启动时报错

[root@localhost IoTgo]# DEBUG="iotgo" ./bin/www

/root/IoTgo/config.js:25
mailgun: {
^^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/IoTgo/routes/http.js:4:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/IoTgo/routes/index.js:6:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

这是什么原因?
配置文件
[root@localhost IoTgo]# cat config.js
module.exports = {
host: 'localhost', // Hostname of IoTgo platform
db: {
uri: 'mongodb://localhost/iotgo', // MongoDB database address
options: {
user: 'iotgo', // MongoDB database username
pass: 'iotgo' // MongoDB database password
}
},
jwt: {
secret: 'jwt_secret' // Shared secret to encrypt JSON Web Token
},
admin:{
'[email protected]': 'password' // Administrator account of IoTgo platform
},
page: {
limit: 50, // Default query page limit
sort: -1 // Default query sort order
},
recaptcha: {
secret: '', // Google reCAPTCHA serect
url: 'https://www.google.com/recaptcha/api/siteverify'
},
pendingRequestTimeout: 3000
mailgun: {
api_key:'', //Mailgun API Key
domain:'', //Mailgun Domain Name
from:'' //Mailgun Default SMTP Login Email
},
upgradeUrl:"http://v.itead.cc/api/upgrade"
};
另外一定要用google的验证码系统吗?

Docker file for IoTgo Docker image

@humingchun

I am interested in the docke image for IoTgo.
Where can I can the docker file used for building the image?
I have checked on the github folder and its not there

Hear from you soon!

Many thanks!

God blesses!!!

Best regards,
Sanyaade

Timer

Hi @humingchun !

How to use Timer?
Please Guide>..
I have tried but not able to configure time ..
timer_issue

Error: image dockerfile/mongodb:latest not found

I am a newer to docker, I meet error like this, would you help me ?
sudo docker pull dockerfile/mongodb
Pulling repository dockerfile/mongodb
Error: image dockerfile/mongodb:latest not found

Parellel Request processing IoTgo server

When we do any change on web portal It will be reflected when that switch is getting synced.
Time is the constraint in this case.
Change refection time becomes to much high sometimes.

ret = sw1.sync()
ret = sw2.sync()
ret = sw3.sync()
ret = sw4.sync()

So is that some cluster arrangement or parallel switch sync that you can suggest.
see I need only for 4 switches. I am connecting 4 switches per board(IoT Node).

Some guidance on this..please

Erro while trying to start application on windows system

I am trying to execute application on windows by using following command:

node www

However I ma facing following error:

C:\Users\lenovo\Documents\shared with VM\iotgo\IoTgo\node_modules\bcrypt\node_modules\bindings\bindings.js:79
        throw e
              ^
Error: %1 is not a valid Win32 application.
C:\Users\lenovo\Documents\shared with VM\iotgo\IoTgo\node_modules\bcrypt\build\Release\bcrypt_lib.node
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at bindings (C:\Users\lenovo\Documents\shared with VM\iotgo\IoTgo\node_modules\bcrypt\node_modules\bindings\bindings
.js:74:15)
    at Object.<anonymous> (C:\Users\lenovo\Documents\shared with VM\iotgo\IoTgo\node_modules\bcrypt\bcrypt.js:3:35)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)

I am newbie to MEAN stack. So pardon me if the resolution is too obvious.

connect to mongodb error

test: ubuntu 14.04 x64
IoTgo: master
node:4.4.7
mongo:2.4.9 or 3.2.9

config.js

module.exports = {
host: 'yun.widora.io', // Hostname of IoTgo platform
db: {
uri: 'mongodb://localhost/iotgo', // MongoDB database address
options: {
user: 'iotgo', // MongoDB database username
pass: 'iotgo' // MongoDB database password
}
},
jwt: {
secret: 'jwt_secret' // Shared secret to encrypt JSON Web Token
},
admin:{
'[email protected]': '12345678' // Administrator account of IoTgo platform
},
when ./bin/www,I seem connect to db error.
so comment //pass:'iotgo' then connect OK.
but the admin cann't login.

docker下部署问题

sudo docker pull dockerfile/mongodb
这条命令运行后提示image dockerfile/mongodb not found 是怎么回事。

cann't login in

error: Email address or password is not correct!
my config.js is:
admin:{
'[email protected]': '12345678' // Administrator account of IoTgo platform
},

but cann't login.

the log:
root@iZ285zrpk4eZ:~/IoTgo# DEBUG="iotgo" PORT=3000 ./bin/www
iotgo Express server listening on port 3000 +0ms
iotgo Connect to DB successful! +180ms
GET /login 302 12.267 ms - 70
POST /api/user/login 200 28.361 ms - 53

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.