Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access via webinterface #244

Closed
HarcourtA opened this issue Jan 23, 2019 · 12 comments
Closed

Can't access via webinterface #244

HarcourtA opened this issue Jan 23, 2019 · 12 comments
Labels
waiting on user input Waiting for issues to respond on last question

Comments

@HarcourtA
Copy link

HarcourtA commented Jan 23, 2019

Hi,
I can't access the webinterface today despite having success yesterday. I've set a static IP today and ensure that I'm using the current address but to no avail. This is the script I get:

login as: pi
[email protected]'s password:
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jan 23 16:36:35 2019 from 192.168.1.6
pi@raspberrypi:~ $ cd /TerrariumPI
pi@raspberrypi:
/TerrariumPI $ sudo ./start.sh
2019-01-23 16:51:56,000 - INFO - terrariumWrapper - Starting TerrariumPI server running as user 'pi' at location: http://192.168.1.7:8090

@theyosh
Copy link
Owner

theyosh commented Jan 23, 2019

Please try: https://github.com/theyosh/TerrariumPI/wiki/FAQ#how-to-debug-terrariumpi
Without that I cannot help. Paste the screen information here.

@HarcourtA
Copy link
Author

That just gives me: pi@raspberrypi:~/TerrariumPI $ screen -r
There is no screen to be resumed.

@theyosh
Copy link
Owner

theyosh commented Jan 23, 2019

Hmmm that is strange. Then could you try the following at the location /home/pi/TerrariumPI as normal pi user

python terrariumPI.py

That should then give more information

@theyosh theyosh added the waiting on user input Waiting for issues to respond on last question label Jan 27, 2019
@HarcourtA
Copy link
Author

Apologies it has taken so long for me to reply- it's been a manic week.
I get the following feedback:

pi@raspberrypi:~ $ /home/pi/TerrariumPI
-bash: /home/pi/TerrariumPI: Is a directory
pi@raspberrypi:~ $ python terrariumPI.py
python: can't open file 'terrariumPI.py': [Errno 2] No such file or directory

@Kargha
Copy link

Kargha commented Jan 29, 2019

@HarcourtA You have to type

cd /home/pi/TerrariumPI

to go to the /home/pi/TerrariumPI folder, and then do the

python terrariumPI.py

The reason you are getting the "No such file or directory" error is because you are not in the folder where the file is located.

@HarcourtA
Copy link
Author

Thank you very much Kargha- output as follows:

Traceback (most recent call last):
File "terrariumPI.py", line 26, in
terrariumEngine = terrariumEngine()
File "/home/pi/TerrariumPI/terrariumEngine.py", line 127, in init
self.get_weather)
File "/home/pi/TerrariumPI/terrariumWeather.py", line 425, in new
return weather_source(source, temperature_indicator, windspeed_indicator, callback)
File "/home/pi/TerrariumPI/terrariumWeather.py", line 40, in init
self.set_source(source,True)
File "/home/pi/TerrariumPI/terrariumWeather.py", line 189, in set_source
self.update(refresh)
File "/home/pi/TerrariumPI/terrariumWeather.py", line 137, in update
self.callback(socket=True)
File "/home/pi/TerrariumPI/terrariumEngine.py", line 598, in get_weather
data = self.weather.get_data()
AttributeError: 'terrariumEngine' object has no attribute 'weather'

@theyosh
Copy link
Owner

theyosh commented Jan 29, 2019

@HarcourtA what kind of RPI do you have. It sounds like the same as #246 where I still do not have a solution for.... :( I do not get this error myself.

@HarcourtA
Copy link
Author

It's a 3 model B+
Oh no! Hope it can be sorted!!

@theyosh
Copy link
Owner

theyosh commented Jan 29, 2019

@HarcourtA could you subscribe to #246 ? Because there I explained a temporary solution. You have both the same error....

@theyosh
Copy link
Owner

theyosh commented Jan 30, 2019

@HarcourtA and it that is solving your issue, could you also look at #210 ?

@HarcourtA
Copy link
Author

I did a git pull and that has seemingly fixed my issue, just connecting up the energenie pi mote now

Thanks a lot for your help!!

@theyosh
Copy link
Owner

theyosh commented Feb 2, 2019

Cool closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on user input Waiting for issues to respond on last question
Projects
None yet
Development

No branches or pull requests

3 participants