SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
238 stars 16 forks source link

Automated clexi client login on startup #83

Closed dirtydother closed 4 years ago

dirtydother commented 4 years ago

Hello,

is there a possibility after rebooting the system that the clexi client login (call login user [user-ID] password [user-pwd]) and client reload will be done automatically? (Sepia server and Sepia client are on the same device).

Best regards

fquirin commented 4 years ago

Hi @dirtydother , this should actually happen by default unless for some reason the client cannot store its settings permanently. Do you use a clean DIY client installation or some custom setup?

dirtydother commented 4 years ago

Hi,

seems so :-( I did the installation as described on https://github.com/SEPIA-Framework/sepia-installation-and-setup/blob/master/sepia-client-installation/rpi/README.md

Nothing special and no customizing.

fquirin commented 4 years ago

Ok thats odd :-/

Just to make sure, this is what's happening?

Is that correct?

dirtydother commented 4 years ago

Yes, it's exactly as you described it. As soon as I restart, the "ready for setup" appears. Below is the log of the SEPIA Control-HUB:

Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","event":{"state":"active","user":"setup"}}} CLEXI server says welcome. Info: {"version":"CLEXI Node.js server v0.8.2","xtensions":{"clexi-broadcaster":{"active":true},"clexi-http-events":{"active":true},"runtime-commands":{"active":true}}} CLEXI connected CLEXI connecting ... CLEXI reconnecting after unexpected close. Try: 6 [...] CLEXI error CLEXI connecting ... CLEXI reconnecting after unexpected close. Try: 1 CLEXI closed. Reason: 1006 [...] Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-state":{"state":"listening"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-state":{"state":"loading"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"inactive"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-state":{"state":"loading"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"triggered","word":"hey_edison"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"active"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","event":{"state":"active","user":"uid1007"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","msg":"Reloading client."}} Broadcaster response: "sent" Broadcaster event: {"broadcast":{"name":"sepia-client","data":{"deviceId":"o1","call":"reload"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"active"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"error","msg":"Cannot read property 'apply' of undefined"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-wake-word":{"state":"inactive"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","event":{"state":"active","user":"uid1007"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","sepia-login":{"note":"loginSuccess"}}} Broadcaster event: {"broadcast":{"client":"o1_chrome_app_v0.22.0","deviceId":"o1","msg":"Logging in with new user: uid1007. Plz wait."}}

fquirin commented 4 years ago

Hmm :thinking: Did you create any other users besides "pi"? Or do you use the desktop version of Raspbian maybe? Maybe the folder that was created for the browser ~/sepia-client/chromium is for some reason write protected?

dirtydother commented 4 years ago

I did the whole installation process on a raspi 4 and now everything's working fine. I don't know what's the problem on my raspi 3. I did the whole installation process five, six times for sure and it never worked :-D

I will close this issue. If I should ever find out what the problem has been, I will let you know.