External access to eGeoffrey #134
Replies: 133 comments
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 10:01:55] @eporocrail thanks, couple of things to try. First of all let's see if you can authenticate against the broker:
if you don't get any error message, it is connecting just fine. Then if you can copy and paste or attach the file |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 10:57:40] ellard$ mosquitto_sub -h gateway.egeoffrey.com -u boomhut -P 'xxxx' -t '#' GNU nano 3.2 mosquitto.conf connection egeoffrey-gateway |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 11:21:37] @eporocrail ok my bad, the mosquitto_sub should be working now. The mosquitto.conf file seems correct apart from "local_password xxxxxx" which should be commented out. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 13:38:58] @user2684 Stopped and started eGeoffrey again. pi@raspberrypi:~/egeoffrey $ sudo egeoffrey-cli logs egeoffrey-bridge |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 13:42:17] @eporocrail weird, I need to reproduce it to further debug. Meanwhile let me know if you can access your local instance (house id set to boomhut, no password). Thanks |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 13:50:04] No log-in possibility for the normal website access. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 14:25:00] Have a look at your .env file, it should contain both:
and not other Also consider all of this manual configuration should be handled automatically via the cli. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 14:36:01] @user2684 pi@raspberrypi: |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 16:12:18] Ok this means the modules are now connecting to the local gateway so you should be able to login as well via web (boomhut house id, no passcode) but still not connecting to the bridge (which is something I need to replicate). Thanks |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 16:15:25] @user2684 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 18:46:14] My mistake. An error in the password. Now it is working! Tomorrow I start with the documentation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 18:49:26] @eporocrail ok let me also know if pointing the mobile app or the web interface to the public gateway you can see your data correctly, even from outside the local network |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 19:24:59] Via webpage no access to gateway.egeoffrey.com:1883 and not too gateway.egeoffrey.com:8883 |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-06-29 19:30:45] @eporocrail you should be using always port 443 from the web interface since using websockets when connecting to the mqtt broker. Also ensure the SSL checkbox is checked. Thanks! |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-07-29 10:54:14] You should use a different username/email in the second house during setup and you should be good to go (this applies also to existing installations) |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 11:00:36] When I try to create a new account consisting of the existing e-mail address with a new username, it is refused because the e-mail address is already used. Do I need an extra email address for the second account? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 14:04:07] I am trying to access the main system remotely. First try no success. Now I am upgrading/updating. Some changes were done. Now "start". I am now waiting more than five minutes.
I'll try what a reboot does. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-07-29 14:07:02]
looks like the cloud gateway was not configured with the right mqtt bridge protocol version, after doing so at least here the warnings went away. Fiuu, back on track |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 14:14:31] I am logged-in remotely in my live system!!!!!!!!!!!!!!!!!!!!!!!!!!! IT WORKS!!!!!!!!!!!!!! So to put it together: Every user who makes an account has as default the possibility to manage two houses remotely. One using the account username and one using the account email address, both times using the account password. Congratulations again! |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 14:17:49] I logged in on the test system also. GREAT! |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-07-29 14:21:14]
Lovely! Luckily the loop detection is working now, without it we were in real troubles...
Technically speaking yes but not the most user friendly option (which house is which?). Officially I'd say one user one house, if someone needs an additional house, has to register another user. The username + email trick will continue to work but I will not mention it in the official documentation. In the future I will add more flexibility but this requires some demanding customization it is not worth of it now. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 14:25:25] Which house can be retrieved from de egeoffrey-cli summary. It might not be the bright and shining way you envision but for me it's quite clever and working well. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-29 14:28:01] As my wive said: managing the holiday home world-wide is working right now. Now the only missing thing is the holiday home. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-07-31 12:11:12] Just to finish up the work, I've updated the following page with step by step instructions: And added the following which are related: |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-07-31 14:07:27] I like it. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-08-10 13:48:15] @eporocrail quick note on the remote access. I'm evaluating to just keeping the email/password combination as the only way of remote usage in the medium term. This is because there are many situations especially when dealing with third party services in which I don't know if the user used the email or the username to login, I just get the so called authorization token. Google Assistant integration which is work in progress is an example. The user logs in but I don't know how and because of this I will not be able to make it working consistently. |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-08-10 13:50:40] @user2684 |
Beta Was this translation helpful? Give feedback.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-06-29 09:46:01]
Instead of going further in "My general sensor system" I thought it appropriate to start a new topic.
When everything is working, I will crate another Howto to describe the way to do it.
For now here is the beginning of the logs egoffrey-bridge listing
pi@raspberrypi:~/egeoffrey $ sudo egeoffrey-cli logs egeoffrey-bridge
Attaching to egeoffrey_egeoffrey-bridge_1
egeoffrey-bridge_1 | Generating configuration file...
egeoffrey-bridge_1 | Starting moquitto...
egeoffrey-bridge_1 | 1593410212: Warning: Bridge egeoffrey-gateway using insecure mode.
egeoffrey-bridge_1 | 1593410212: mosquitto version 1.6.9 starting
egeoffrey-bridge_1 | 1593410212: Config loaded from /mosquitto/config/mosquitto.conf.
egeoffrey-bridge_1 | 1593410212: Opening ipv4 listen socket on port 1883.
egeoffrey-bridge_1 | 1593410212: Opening ipv6 listen socket on port 1883.
egeoffrey-bridge_1 | 1593410212: Opening ipv4 listen socket on port 8883.
egeoffrey-bridge_1 | 1593410212: Opening ipv6 listen socket on port 8883.
egeoffrey-bridge_1 | 1593410212: Opening websockets listen socket on port 443.
egeoffrey-bridge_1 | 1593410213: Connecting bridge egeoffrey-gateway (gateway.egeoffrey.com:8883)
egeoffrey-bridge_1 | 1593410213: Connection Refused: not authorised
egeoffrey-bridge_1 | 1593410213: Socket error on client local.egeoffrey-boomhut-system-bridge, disconnecting.
egeoffrey-bridge_1 | 1593410219: Connecting bridge egeoffrey-gateway (gateway.egeoffrey.com:8883)
egeoffrey-bridge_1 | 1593410219: Connection Refused: not authorised
egeoffrey-bridge_1 | 1593410219: Socket error on client local.egeoffrey-boomhut-system-bridge, disconnecting.
egeoffrey-bridge_1 | 1593410225: Connecting bridge egeoffrey-gateway (gateway.egeoffrey.com:8883)
egeoffrey-bridge_1 | 1593410225: Connection Refused: not authorised
Beta Was this translation helpful? Give feedback.
All reactions