OEHU / oehu-website

The OEHU website, as can be seen on https://oehu.org/ |
https://oehu.org/
4 stars 2 forks source link

Setup does not finish properly - no redirect to dashboard #16

Closed Hansie020 closed 5 years ago

Hansie020 commented 5 years ago

When following the setup procedure from the website, after the last step, there is no redirection to https://oehu.org/login. The browser stays on this page forever.

screen shot 2018-11-12 at 16 46 16

When pointing the browser to https://oehu.org/login manually, there is no energy data visible.

screen shot 2018-11-12 at 17 01 19
bartwr commented 5 years ago

@Hansie020 Thank you for mentioning this issue. Can you check the following:

  1. Do you have a Raspberry Pi 3 B+? If not, what version do you use?
  2. Is there a deviceId & phrase in the oehu-setup-api/config.json file on your Pi?

Right now I think the reasons could be:

Thank you!

Hansie020 commented 5 years ago

Thanks @bartwr

cat /proc/device-tree/model gives: Raspberry Pi 3 Model B Plus Rev 1.3pi And there was ad deviceId & passphrase in the oehu-setup-api/config.json file

And could i possibly been to early with starting the setup procedure on the Pi? There is no way to check if the installation is finished besides trying to reach oeho.local

bartwr commented 5 years ago

And could i possibly been to early with starting the setup procedure on the Pi?

This is possible indeed. Especially in this fase (the ZIP package is one week old, an important update with bugfix is from last Saturday). It updates automatically as soon as the Pi has been started - this takes +- 2 minutes of time.

What I can see is that everything went fine, you're Pi is connected&uploading&such. But, the account is not succesfully registered, therefor when you login there's no data to see.


@Hansie020 The only 'solution' to have your Pi up and running now is the following:

  1. Reboot the Pi
  2. Stop uploading data: http://oehu.local:8000/oehu/stop
  3. SSH to the Pi: ssh pi@oehu.local
  4. ~/update.sh to be sure
  5. nano oehu-setup-api/config.json
  6. Have only {} as contents of the file (so remove 'running', 'deviceId' & 'phrase/seed'
  7. Ctrl+O -> Ctrl+X to save the file
  8. On your laptop, go to http://oehu.local & follow the setup

After this you'll be up & running [I expect].


Note to self: Make new ZIP with updated software, so updating code after boot is not necessary for finishing the setup succesfully.

Hansie020 commented 5 years ago

Tried that and then the Pi died... after reboot no ssh possible. I shall do the install again and see if the problem re-occurs.

Hansie020 commented 5 years ago

Setup finishes now as expected but data uploading does not start. After reboot also no uploading.

bartwr commented 5 years ago

@Hansie020

We have a new ZIP that should definately work on a Raspberry Pi 3 B+ / 16G SD card.

Please 1) format the SD card & 2) paste the contents of http://api.oehu.org/downloads/OEHU_v1.0.0.zip to it. Set your WiFi password via fhe wpa_supplicant.conf file. Power on & go to http://oehu.local after 20 minutes. If I'm correct, you will have your OEHU device running after the setup is done.

Hansie020 commented 5 years ago

Yes, it went very smooth this time!