[Erreur] Module bluetooth et creer un nouvel événement


#1

Bonjour a tous,

-je suis sous pi3 avec Gladys 3.11.6

-j’ai juste installé Gladys bluetooth avec un nut

premièrement quand je démarre gladys ça me donne ça

0|gladys | Socket disconnected, but session could not be loaded to pass to con figured disconnect handler: sails.config.sockets.afterDisconnect(). Will pass a fake, empty session as argument to lifecycle callback. Details:
0|gladys | Error: Could not parse session id from cookie of connecting socket , and then failed again when trying to use a generated cookie. Something has pro bably gone wrong with your session store configuration.
0|gladys | at _createError (/home/pi/gladys/node_modules/sails-hook-socket s/lib/load-session-from-socket.js:44:17)
0|gladys | at loadSessionFromSocket (/home/pi/gladys/node_modules/sails-ho ok-sockets/lib/load-session-from-socket.js:47:7)
0|gladys | at Socket.onSocketDisconnect (/home/pi/gladys/node_modules/sail s-hook-sockets/lib/on-connect.js:43:7)
0|gladys | at emitOne (events.js:116:13)
0|gladys | at Socket.emit (events.js:211:7)
0|gladys | at Socket.emit (/home/pi/gladys/node_modules/socket.io/lib/sock et.js:141:10)
0|gladys | at Socket.onclose (/home/pi/gladys/node_modules/socket.io/lib/s ocket.js:441:8)
0|gladys | at Client.onclose (/home/pi/gladys/node_modules/socket.io/lib/c lient.js:235:24)
0|gladys | at emitTwo (events.js:131:20)
0|gladys | at Socket.emit (events.js:214:7)
0|gladys | at Socket.onClose (/home/pi/gladys/node_modules/engine.io/lib/s ocket.js:311:10)
0|gladys | at Object.onceWrapper (events.js:313:30)
0|gladys | at emitNone (events.js:106:13)
0|gladys | at WebSocket.emit (events.js:208:7)
0|gladys | at WebSocket.Transport.onClose (/home/pi/gladys/node_modules/en gine.io/lib/transport.js:127:8)
0|gladys | at Object.onceWrapper (events.js:317:30)
0|gladys | at emitTwo (events.js:126:13)
0|gladys | at WebSocket.emit (events.js:214:7)
0|gladys | at WebSocket.cleanupWebsocketResources (/home/pi/gladys/node_mo dules/ws/lib/WebSocket.js:950:8)
0|gladys | at emitNone (events.js:111:20)
0|gladys | at Socket.emit (events.js:208:7)
0|gladys | at endReadableNT (_stream_readable.js:1055:12)
0|gladys | New User connected : Tommy
0|gladys | House : checkUsersPresence

allez une autre, il me voit arriver, ainsi que dans la maison, mais pas quand je pars.

0|gladys | Access with token to user Tommy
0|gladys | Access with token to user Tommy
0|gladys | Event : create : new Event with code : back-at-home
0|gladys | Scenario : Trigger : New event : back-at-home
0|gladys | Scenario : Trigger : Found 1 launchers with code back-at-home.
0|gladys | Scenario : Trigger : Launcher condition verified.
0|gladys | Scenario : Trigger : Conditions verified, starting all actions.
0|gladys | Scenario : exec : Found 0 actions to execute.
0|gladys | Access with token to user Tommy
0|gladys | Event : create : new Event with code : user-seen-at-home
0|gladys | Scenario : Trigger : New event : user-seen-at-home
0|gladys | Scenario : Trigger : Found 0 launchers with code user-seen-at-home.
0|gladys | House : checkUsersPresence
0|gladys | Access with token to user Tommy
0|gladys | Access with token to user Tommy

il me reffet ca :

0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence
0|gladys | House : checkUsersPresence

ensuite quand je crée un nouvelle événement avec un départ maison pour moi, ça me donne ça

0|gladys | Executing action “Envoyer une nouvelle notification”
0|gladys | Error (E_VALIDATION) :: 5 attributes are invalid
0|gladys | at WLValidationError.WLError (/home/pi/gladys/node_modules/waterline/lib/waterline/error/WLError.js:25:15)
0|gladys | at new WLValidationError (/home/pi/gladys/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)
0|gladys | at _afterValidating (/home/pi/gladys/node_modules/waterline/lib/waterline/query/validate.js:53:23)
0|gladys | at allValidationsChecked (/home/pi/gladys/node_modules/waterline/lib/waterline/core/validations.js:265:12)
0|gladys | at /home/pi/gladys/node_modules/async/lib/async.js:52:16
0|gladys | at Object.async.forEachOf.async.eachOf (/home/pi/gladys/node_modules/async/lib/async.js:236:30)
0|gladys | at Object.async.forEach.async.each (/home/pi/gladys/node_modules/async/lib/async.js:209:22)
0|gladys | at module.exports.Validator.validate (/home/pi/gladys/node_modules/waterline/lib/waterline/core/validations.js:144:9)
0|gladys | at /home/pi/gladys/node_modules/waterline/lib/waterline/query/validate.js:42:25
0|gladys | at /home/pi/gladys/node_modules/async/lib/async.js:718:13
0|gladys | at Immediate.iterate (/home/pi/gladys/node_modules/async/lib/async.js:262:13)
0|gladys | at runCallback (timers.js:789:20)
0|gladys | at tryOnImmediate (timers.js:751:5)
0|gladys | at processImmediate [as _immediateCallback] (timers.js:722:5)
0|gladys | Invalid attributes sent to Notification:
0|gladys | • title
0|gladys | • Value should be a string (instead of null, which is an object)
0|gladys | • “required” validation rule failed for input: null
0|gladys | Specifically, it threw an error. Details:
0|gladys | undefined
0|gladys | • text
0|gladys | • Value should be a string (instead of null, which is an object)
0|gladys | • “required” validation rule failed for input: null
0|gladys | Specifically, it threw an error. Details:
0|gladys | undefined
0|gladys | • icon
0|gladys | • Value should be a string (instead of null, which is an object)
0|gladys | • “required” validation rule failed for input: null
0|gladys | Specifically, it threw an error. Details:
0|gladys | undefined
0|gladys | • iconColor
0|gladys | • Value should be a string (instead of null, which is an object)
0|gladys | • “required” validation rule failed for input: null
0|gladys | Specifically, it threw an error. Details:
0|gladys | undefined
0|gladys | • user
0|gladys | • “required” validation rule failed for input: null
0|gladys | Specifically, it threw an error. Details:
0|gladys | undefined

voili voilou !! j’aime pas déranger, mais la je plante sur pas mal de chose. donc je fais appel a vous, merci d’avance ;).


#2

Hello!

Le premier bug n’est qu’un warning, ce n’est rien de grave :slight_smile:

Comment créé tu cet événement ? :slight_smile: Tu dois oublier certain champs quelque part…