gladysassistant / gladys Goto Github PK
View Code? Open in Web Editor NEWA privacy-first, open-source home assistant
Home Page: https://gladysassistant.com
License: Apache License 2.0
A privacy-first, open-source home assistant
Home Page: https://gladysassistant.com
License: Apache License 2.0
Bonjour,
petit problème pour moi, impossible de le faire tourner, le npm install n'installe jamais tout même si j'utilise le npm install -g node-gyp et que j'installe sudo apt-get install libasound2-dev, et j'ai installé à la main sails-util-mvcsloader qui ne s'installait pas via le package.json
Une idée?
Erreur ramené par le node app.js
info: User hook policies loaded from /root/gladys2.0/api/hooks/example/policies.
info: User hook config loaded from /root/gladys2.0/api/hooks/example/config.
error: Error: The hook orm
is taking too long to load.
Make sure it is triggering its initialize()
callback, or else set sails.config.orm._hookTimeout to a higher value (currently 30000) at tooLong [as _onTimeout] (/root/gladys2.0/node_modules/sails/lib/app/private/loadHooks.js:92:21) at Timer.listOnTimeout [as ontimeout] (timers.js:112:15) { [Error: The hook
ormis taking too long to load. Make sure it is triggering its
initialize()callback, or else set
sails.config.orm._hookTimeout to a higher value (currently 30000)] code: 'E_HOOK_TIMEOUT' }
error: Grunt :: module.js:340
throw err;
^
Error: Cannot find module 'grunt-cli/bin/grunt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/gladys2.0/node_modules/sails/lib/hooks/grunt/grunt-wrapper.js:10:1)
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 Function.Module.runMain (module.js:497:10)
info: User hook models loaded from /root/gladys2.0/api/hooks/example/lib/../models.
error: [ { [Error: ENOENT, lstat '/root/gladys2.0/api/hooks/example/assets']
errno: 34,
code: 'ENOENT',
path: '/root/gladys2.0/api/hooks/example/assets' } ]
error: A hook (example
) failed to load!
/root/gladys2.0/node_modules/async/lib/async.js:30
if (called) throw new Error("Callback was already called.");
^
Error: Callback was already called.
at /root/gladys2.0/node_modules/async/lib/async.js:30:31
at process._tickDomainCallback (node.js:463:13)
So far I've followed the instructions according to README. I get Gladys run perfectly with mysql settings. But when I run node app.js with mongodb settings it fails.
Last commit: 98ea1cf
Mongodb settings:
glnv: {
adapter: 'sails-mongo',
host: 'localhost',
port: 27017,
// user: 'username',
// password: 'password',
database: 'glnv'
},
Database and collections are being created after running node app.js
Error messages:
node app.js
info: User hook policies loaded from /home/vagrant/glnv/api/hooks/example/policies.
info: User hook config loaded from /home/vagrant/glnv/api/hooks/example/config.
info: User hook models loaded from /home/vagrant/glnv/api/hooks/example/lib/../models.
info: User hook services loaded from /home/vagrant/glnv/api/hooks/example/lib/../services.
info: User hook controllers loaded from /home/vagrant/glnv/api/hooks/example/lib/../models.
info:
info: .-..-.
info:
info: Sails <| .-..-.
info: v0.11.0 |\
info: /|.\
info: / || \
info: ,' |' \
info: .-'.-==|/_--'
info: `--'-------'
info: __---___--___---___--___---___--___
info: ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/home/vagrant/glnv`
info: To see your app, visit http://localhost:1337
info: To shut down Sails, press <CTRL> + C at any time.
debug: --------------------------------------------------------
debug: :: Sun Jun 14 2015 03:29:02 GMT+0000 (UTC)
debug: Environment : development
debug: Port : 1337
debug: --------------------------------------------------------
/home/vagrant/glnv/node_modules/sails-mongo/node_modules/mongodb/lib/utils.js:97
process.nextTick(function() { throw err; });
^
TypeError: Object #<bound> has no method 'query'
at Object.module.exports.scheduleAllAlarms (/home/vagrant/glnv/api/services/AlarmService.js:134:9)
at Object.bound [as scheduleAllAlarms] (/home/vagrant/glnv/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at Object.module.exports.onStart (/home/vagrant/glnv/api/services/StartService.js:29:16)
at Object.bound [as onStart] (/home/vagrant/glnv/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at /home/vagrant/glnv/config/bootstrap.js:19:18
at wrapper (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/lodash/index.js:3602:19)
at applyInOriginalCtx (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:421:80)
at wrappedCallback (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:320:18)
at _normalizeCallback.callback.success (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31)
at _switch (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:48:28)
at /home/vagrant/glnv/node_modules/sails/node_modules/waterline/lib/waterline/query/dql/destroy.js:123:11
at /home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:189:25
at bound.<anonymous> (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/lib/waterline/utils/schema.js:151:44)
at fn (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/lib/waterline/utils/callbacksRunner.js:136:10)
at iterate (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:181:13)
at Object.async.eachSeries (/home/vagrant/glnv/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:197:9)
Bonjour, je n'arrive pas a créer un compte.
J'ai essayé plusieurs type de mail
[email protected]
[email protected]
a chaque fois j'ai le message:
[{"error":"E_VALIDATION","status":400,"summary":"1 attribute is invalid","model":"User","invalidAttributes":{"email":[{"rule":"email","message":""email" validation rule failed for input: '[email protected]'"}]}}]
Comme je n'y connais rien en node.js, je ne sais même pas ou trouver le fichier qui
comporte cette vérification.
Bonjour;
je suis nouveau sur Gladys, et après quelques difficultés pour l'installation.
Le module météo ne s'actualise pas.
J'ai un peux farfouiller et le problème chez moi vient de la lib "simpleweather v3.0.2", mais qui sont résolues en passant à la version 3.1.0.
2ème question: pourquoi avoir abandonné open weather?
3ème question: pourquoi passer par une lib qui prend pas en compte la position des logements ajoutés dans Gladys, mais uniquement la géolocalisation?
Merci
In order to have a working motion detector, the launchertype table need to be edited :
from motion to motionRoom
Once done, you can call scripts based on the motion sensor 👍
Tout d'abord, bravo pour Gladys, je sens que je vais abandonner le monde extérieur par ta faute :)
Ensuite, comment sécuriser la connexion à Gladys via https (si on veut y accéder depuis l'extérieur par exemple)
Cordialement
info: ScenarioService : launcher : every30Minutes : null
info: Launch action : GoogleCalendarService syncCalendar
warn: saveorUpdateEvent : No start date for the event.
warn: saveorUpdateEvent : No start date for the event.
warn: saveorUpdateEvent : No start date for the event.
/root/Gladys/api/services/GoogleCalendarService.js:181
callback(null);
^
TypeError: callback is not a function
at /root/Gladys/api/services/GoogleCalendarService.js:181:11
at calendarEventsFound (/root/Gladys/api/services/GoogleCalendarService.js:56:9)
at Request._callback (/root/Gladys/node_modules/googleapis/lib/transporters.js:90:7)
at Request.self.callback (/root/Gladys/node_modules/googleapis/node_modules/request/request.js:123:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/root/Gladys/node_modules/googleapis/node_modules/request/request.js:1047:14)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/root/Gladys/node_modules/googleapis/node_modules/request/request.js:998:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:441:9)
at process._tickDomainCallback (node.js:396:17)
S'agit-il d'un bug connu ? SI vous avez besoin de plus d'infos, n'hésitez pas ;)
Je pense que ca serait une vrai plus value pour aider au lancement de la 2.0 d'ajouter une section de démonstration au site gladysproject.com afin d'apprécier - sans être un développeur - cette nouvelle version. 👍
I tested the alarm.js script and i have this error after playing :
throw TypeError('Uncaught, unspecified "error" event.');
^
TypeError: Uncaught, unspecified "error" event.
at TypeError (<anonymous>)
at Player.EventEmitter.emit (events.js:74:15)
at Player.next (/home/pi/gladys/node_modules/player/dist/player.js:242:14)
at Decoder.<anonymous> (/home/pi/gladys/node_modules/player/dist/player.js:167:25)
at Decoder.g (events.js:175:14)
at Decoder.EventEmitter.emit (events.js:117:20)
at finishMaybe (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_writable.js:371:12)
at afterWrite (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_writable.js:291:5)
at onwrite (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_writable.js:281:7)
at WritableState.onwrite (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_writable.js:106:5)
at afterTransform (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_transform.js:104:5)
at TransformState.afterTransform (/home/pi/gladys/node_modules/player/node_modules/lame/node_modules/readable-stream/lib/_stream_transform.js:79:12)
at handleRead (/home/pi/gladys/node_modules/player/node_modules/lame/lib/decoder.js:142:14)
at afterRead (/home/pi/gladys/node_modules/player/node_modules/lame/lib/decoder.js:121:7)
Hi,
Line 27, you get "data" from request to googleapi.
Line 30, you try to work on "result" instead of "data".
Just after app start
gladys-0 (err): debug: --------------------------------------------------------
gladys-0 (err): error: Sending 500 ("Server Error") response:
gladys-0 (err): TypeError: Object #<MockServerResponse> has no method 'redirect'
gladys-0 (err): at module.exports (/home/pi/gladys/api/policies/checkToken.js:25:18)
gladys-0 (err): at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:179:5)
gladys-0 (err): at callbacks (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
gladys-0 (err): at param (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
gladys-0 (err): at param (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:135:11)
gladys-0 (err): at pass (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
gladys-0 (err): at nextRoute (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
gladys-0 (err): at callbacks (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
gladys-0 (err): at /home/pi/gladys/node_modules/sails/lib/router/bind.js:187:7
gladys-0 (err): at module.exports (/home/pi/gladys/api/policies/isMachineMaster.js:17:10)
gladys-0 (err): at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:179:5)
gladys-0 (err): at callbacks (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
gladys-0 (err): at param (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
gladys-0 (err): at param (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:135:11)
gladys-0 (err): at pass (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
gladys-0 (err): at nextRoute (/home/pi/gladys/node_modules/sails/node_modules/express/lib/router/index.js:100:7) [TypeError: Object #<MockServerResponse> has no method 'redirect']
Bonjour,
lorsque j'essaye d'exécuter l'application après suivi la procédure d'installation, j'ai l'erreur suivante :
info: User hook policies loaded from /home/Pi/Programmation/Javascript/gladys/api/hooks/example/policies.
info: User hook config loaded from /home/Pi/Programmation/Javascript/gladys/api/hooks/example/config.
/home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/node_modules/bindings/bindings.js:87
throw err
^
Error: Could not load the bindings file. Tried:
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/build/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/build/Debug/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/build/Release/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/out/Debug/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/Debug/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/out/Release/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/Release/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/build/default/bcrypt_lib.node
→ /home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/compiled/0.10.25/linux/x64/bcrypt_lib.node
at bindings (/home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/node_modules/bindings/bindings.js:84:13)
at Object.<anonymous> (/home/Pi/Programmation/Javascript/gladys/node_modules/bcrypt/bcrypt.js:3:35)
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.<anonymous> (/home/Pi/Programmation/Javascript/gladys/api/controllers/SessionController.js:18: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 /home/Pi/Programmation/Javascript/gladys/node_modules/include-all/index.js:129:29
Que dois-je faire ? L'erreur semble venir d'un module.
Hello,
Lorsqu'on est sur le graphe d'un device, et qu'une valeur vient s'ajouter dynamiquement, le format de date est pas le même que les autres valeurs :)
Par ailleurs, il y a un reste de console.log() qui traine ligne 119 du device.controller.js
info: ScenarioService : launcher : alarmRing : 4
info: Launch action : ScriptService exec alarm.js
info: Playing : music/******.mp3
warn: In script error TypeError: undefined is not a function
/home/pi/gladys/api/services/ScriptService.js:95
if(err) return callback(err);
^
TypeError: undefined is not a function
at /home/pi/gladys/api/services/ScriptService.js:95:21
at Object.module.exports.sandbox (/home/pi/gladys/api/services/ScriptService.js:117:5)
at Object.bound [as sandbox] (/home/pi/gladys/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at /home/pi/gladys/api/services/ScriptService.js:94:19
at /home/pi/gladys/api/services/ScriptService.js:72:4
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
I can't access to a module service from a script. Is undefined. Security or bug ?
warn: In script error ReferenceError: KodiService is not defined
Hi, each time I try to create an account, I have the following error :
[{"error":"E_VALIDATION","status":400,"summary":"1 attribute is invalid","model":"User","invalidAttributes":{"email":[{"rule":"email","message":""email" validation rule failed for input: '[email protected]'"}]}}]
bonjour,
j'ai essayer de m'installer ma petite gladys, mais il y a un truc byzarre dans la dit il est dit :
Gladys create automatically all the tables it needs. (only in development mode, not in production, so be sure to start Gladys one time in development mode before trying production mode).
et donc on fait comment pour démarrer le mode developement pour avoir la base de donnée ?
Bonjour, tout dabord je te félicite de mener ce projet avec autant de serieux.
Je voudrais installer Gladys sur un raspberry avec la dernière version de "Jessie". donc j'install le prérequis, et a l'étape du : "npm install" dans le dossier gladys un ou plusieurs monule ne s'install pas je ne comprend pas tout étant débutant j'ai fais plusieurs recherches sans trouvé...
voici l’erreur redondante après plusieurs réinstallation de jessie, gladys ....
/
[email protected] install /home/pi/gladys/node_modules/speaker
node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.1.13-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/gladys/node_modules/speaker
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the speaker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls speaker
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.13-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/gladys
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
|
[email protected] install /home/pi/gladys/node_modules/lame
node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.1.13-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/gladys/node_modules/lame
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
[email protected] install /home/pi/gladys/node_modules/serialport
node-pre-gyp install --fallback-to-build
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/gladys/npm-debug.log
npm ERR! not ok code 0
Bonjour,
après avoir lancer la commande npm install,
quand je lance node app.js j' ai l'erreur suivante:
Error: Cannot find module './lib/decoder'
une idée pour régler ce problème?
Merci
Ps: voila l'erreur complète:
[jm@bichito gladys]$ node app.js --help
info: User hook policies loaded from /home/jm/gladys/api/hooks/example/policies.
info: User hook config loaded from /home/jm/gladys/api/hooks/example/config.
module.js:338
throw err;
^
Error: Cannot find module './lib/decoder'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/jm/gladys/node_modules/player/node_modules/lame/index.js:6:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
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 Object. (/home/jm/gladys/node_modules/player/dist/player.js:51:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
Hello,
I managed to burn Gladys Floppy image to my Raspberry's SD Card, but what now ?
Everything bootep up, but nothing shows up, I can't connect to the local http server or else...
Could you please expand the "Getting Started" section to go further?
Thanks.
Implement scenarios in the v3
Bonjour,
j'ai reussi à m'installer gladys sur une machine virtuel (j'ai pas de raspberry sous la maiin)
je vais essayer de mettre la machine virtuel a dispô mais ou uploader 1 go ?
qu'elle capteur peut on utiliser avec une machine virtuelle sachant que le seul moyen et d'avoir quelque chose connecter sur le reseaux, en fait que je trouve comment trufer m maison de capteur.
et que je puisse connecter un haut parleur dans la maison pour lui envoyer des sons depuis gladys
Je découvre la domotique, et apparamment c'est pas facile mais c'est super interressant les scénarios décrit sur votre site son génial !!
faut que je trouve comment mettre en place ça et ajouter des modules j'ai pleins d'idée déja !!!
c'est vraiment un projet génial !!
merci
According to README, only node.js v0.10 is supported right now.
Node.js ( = v.0.10.xx, some troubles appears with node.js 0.12.x )
Gladys should work with more up-to-date versions of node.
If you are ok, I can check and resolve compatibility issues with the latest node.js version (v4.x) :-)
Bonjour,
Je tente l'installation sous Windows 8.1 et j'ai plusieurs messages d'erreur :
Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 47, position 50
Voir le log complet ci-dessous.
Une idée ?
Merci,
Hervé
λ npm install
npm WARN package.json crypto@0.0.3 crypto is also the name of a node core module.
-
> bcrypt@0.8.0 install F:\Gladys\node_modules\bcrypt
> node-gyp rebuild
|
F:\Gladys\node_modules\bcrypt {git}
{lamb} node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
F:\Gladys\node_modules\bcrypt\build\bcrypt_lib.vcxproj(47,50): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 47, position 50.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\Gladys\node_modules\bcrypt
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
> [email protected] install F:\Gladys\node_modules\speaker
> node-gyp rebuild
F:\Gladys\node_modules\speaker {git}
{lamb} node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
F:\Gladys\node_modules\speaker\build\deps\mpg123\output.vcxproj(42,50): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 50.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\Gladys\node_modules\speaker
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
> lame@1.1.2 install F:\Gladys\node_modules\lame
> node-gyp rebuild
F:\Gladys\node_modules\lame {git}
{lamb} node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
Warning: Missing input files:
F:\Gladys\node_modules\lame\build\deps\mpg123\..\..\..\deps\mpg123\test_output.c
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
F:\Gladys\node_modules\lame\build\deps\lame\mp3lame.vcxproj(42,178): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 178.
F:\Gladys\node_modules\lame\build\deps\mpg123\mpg123.vcxproj(42,50): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 50.
F:\Gladys\node_modules\lame\build\deps\lame\lamevectorroutines.vcxproj(42,178): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 178.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\Gladys\node_modules\lame
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
> [email protected] install F:\Gladys\node_modules\player\node_modules\lame
> node-gyp rebuild
F:\Gladys\node_modules\player\node_modules\lame {git}
{lamb} node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
Warning: Missing input files:
F:\Gladys\node_modules\player\node_modules\lame\build\deps\mpg123\..\..\..\deps\mpg123\test_output.c
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
F:\Gladys\node_modules\player\node_modules\lame\build\deps\lame\mp3lame.vcxproj(42,178): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 178.
F:\Gladys\node_modules\player\node_modules\lame\build\deps\mpg123\mpg123.vcxproj(42,50): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 50.
F:\Gladys\node_modules\player\node_modules\lame\build\deps\lame\lamevectorroutines.vcxproj(42,178): error MSB4025: Impossible de charger le fichier projet. Il existe un caractère non valide dans l'encodage donné. Ligne 42, position 178.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\Gladys\node_modules\player\node_modules\lame
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! bcrypt@0.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! F:\Gladys\npm-debug.log
F:\Gladys
λ
Voudrais suggerer des button Openshift et Heroku pour permettre une installation
Hello there,
can Gladys have an Articial Intelligence, can be learn and do itself like Watson from IBM :)
Well do u think we can add it on Articial Intelligence for gladys ?
a way to learn itself
it will be cool :)
Hi, great project,
Can you please let me know how or tips to add support for spark photon WiFi support?
This will open an endless possibilitiesbecause most devices today are WiFi and/or Bluetooth enabled.
Thanks
Bonjour,
J'ai aussi des problèmes d'installation sur un Raspberry Pi.
Ma raspbian est en version "Jessie"
Voilà le log complet :
> bcrypt@0.8.0 install /home/pi/Gladys/node_modules/bcrypt
> node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.18.11+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/Gladys/node_modules/bcrypt
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
> sails@0.11.0 preinstall /home/pi/Gladys/node_modules/sails
> node ./lib/preinstall_npmcheck.js
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! bcrypt@0.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.0 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.18.11+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/Gladys
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
/
> speaker@0.2.5 install /home/pi/Gladys/node_modules/speaker
> node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.18.11+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/Gladys/node_modules/speaker
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
/
> serialport@1.7.4 install /home/pi/Gladys/node_modules/serialport
> node-pre-gyp install --fallback-to-build
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
-
> lame@1.2.2 install /home/pi/Gladys/node_modules/player/node_modules/lame
> node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.18.11+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/Gladys/node_modules/player/node_modules/lame
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Gladys/npm-debug.log
npm ERR! not ok code 0
root@raspberrypi1:/home/pi/Gladys#
Bonjour,
Voici ce que j'ai essayé de lancer pour faire fonctionner gladys sur un rpi sous hypriot (rpi docker) :
mkdir -p /home/monUser/gladys/{mysql,hooks}
docker run --name gladys-mysql \
--restart=always \
-v /home/monUser/gladys/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=monTest \
-e MYSQL_DATABASE=gladys \
-d mysql:latest
Initialiser Gladys
docker run --name gladys-node-init \
-v /home/monUser/gladys/hooks:/src/api/hooks \
-e NODE_ENV=development \
-e MYSQL_HOST=mysql \
-e MYSQL_PASSWORD=monTest \
-e MYSQL_PORT=3306 \
--link gladys-mysql:mysql \
gladysproject/gladys \
node init.js
Lancer Gladys
docker run --name gladys-node \
--restart=always \
-p 80:8080 \
-v /home/monUser/gladys/hooks:/src/api/hooks \
-e NODE_ENV=production \
-e MYSQL_HOST=mysql \
-e MYSQL_PASSWORD=monTest \
-e MYSQL_PORT=3306 \
--link gladys-mysql:mysql \
-d gladysproject/gladys
Mais voila l'erreur arrive ici :
HypriotOS/armv7: monUser@monRpi in ~
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d72bb7785b75 mysql:latest "docker-entrypoint.sh" 6 seconds ago Restarting (1) Less than a second ago 3306/tcp gladys-mysql
HypriotOS/armv7: monUser@monRpi in ~
$ docker run --name gladys-node-init \
> -v /home/monUser/gladys/hooks:/src/api/hooks \
> -e NODE_ENV=development \
> -e MYSQL_HOST=mysql \
> -e MYSQL_PASSWORD=monTest \
> -e MYSQL_PORT=3306 \
> --link gladys-mysql:mysql \
> gladysproject/gladys \
> node init.js
standard_init_linux.go:175: exec user process caused "exec format error"
Salut. Je me permet de faire le bugreport en français puisque vous parlez a priori français.
Si on utilise une version de node // npm à jour, il n'est pas possible de build lame de qui Gladys dépend. La nouvelle version de v8 n'est pas compatible avec les instructions demandées par lame.
npm version:
{ npm: '2.11.1',
http_parser: '2.3',
modules: '14',
node: '0.12.4',
openssl: '1.0.2a',
uv: '1.5.0',
v8: '3.28.71.19',
zlib: '1.2.8' }
Une parte des erreurs sortie lors du npm install:
/home/giskard/.node-gyp/0.12.4/deps/v8/include/v8.h:2114:8: note: candidate expects 2 arguments, 3 provided
../src/node_lame.cc:394:58: erreur: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Integer>, v8::PropertyAttribute)’
static_cast<PropertyAttribute>(ReadOnly|DontDelete))
Ça serait bien de le mettre dans les contraintes de versions du README.
Merci.
The message error in Red is : [{"name":"usernamePasswordMismatch","message":"Invalid username and password combination."}]
Cannot register myself using the form (birthdate bug):
[{"error":"E_VALIDATION","status":400,"summary":"1 attribute is invalid","model":"User","invalidAttributes":{"birthdate":[{"rule":"date","message":"`undefined` should be a date (instead of \"01/01/01\", which is a string)"}]}}]
Bonjour,
J'essaie de faire fonctionner ma prise Wemo. Mais quand j'essaie d'allumer/étendre ma prise, j'ai une erreur SQL.
Sending 500 ("Server Error") response:
0|gladys | { [Error: ER_BAD_FIELD_ERROR: Unknown column 'dt.identifier' in 'field list']
0|gladys | cause:
0|gladys | { [Error: ER_BAD_FIELD_ERROR: Unknown column 'dt.identifier' in 'field list']
0|gladys | code: 'ER_BAD_FIELD_ERROR',
0|gladys | errno: 1054,
0|gladys | sqlState: '42S22',
0|gladys | index: 0,
0|gladys | originalError: [Circular] },
0|gladys | isOperational: true,
0|gladys | code: 'ER_BAD_FIELD_ERROR',
0|gladys | errno: 1054,
0|gladys | sqlState: '42S22',
0|gladys | index: 0,
0|gladys | originalError:
J'ai l'impression qu'il y a une erreur SQL sur la requête getDeviceType.
Je tente une petite correction et je fais une PR ;)
Just for your tasklist 😉 (Refer to this topic http://gladysproject.com/forum/viewtopic.php?f=23&t=5939 )
The sync action for Google calendar cause app crash
TypeError: Cannot read property 'dateTime' of undefined
at saveorUpdateEvent (/home/pi/gladys/api/services/GoogleCalendarService.js:79:16)
at calendarEventsFound (/home/pi/gladys/api/services/GoogleCalendarService.js:52:10)
at Request._callback (/home/pi/gladys/node_modules/googleapis/lib/transporters.js:90:7)
at Request.self.callback (/home/pi/gladys/node_modules/googleapis/node_modules/request/request.js:123:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/home/pi/gladys/node_modules/googleapis/node_modules/request/request.js:1047:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/home/pi/gladys/node_modules/googleapis/node_modules/request/request.js:998:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:486:13)
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.