-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unable to load web interface after install #246
Comments
I thing this is "weather error" edit settings.cfd But im not specialist. |
@ese23 what url did you use? Then I can have a look. And yes, if a wrong weather url is entered, it will not start. I am looking into it to see if I can change that |
I want do copy for you, but lost in settings mayhen sry :-/ |
@whipcreambeast did the installer had problems? If so, rerun the installer once more so that you will not have any problems. Then you can remove the settings.cfg so that the default weather data is loaded. That should start the software |
Yes the installer has had problems, I am unable to get it working without it running into issues installing. FYI, I have tried both Python 2 and 3 and having is same issue. |
I have just installed a completly new version for both python versions. No issues at all. So I get the feeling it is something outside my software. How big is your SD card? You need at least 4GB. And what kind of Pi is it? So lets test now only python2. That saves some complexity. Run manual:
This will install all needed packages. But I guess that they are all installed already. Then the next step is:
This should install all the needed python2 modules. I guess the pip2 install is failing somehow and should produce an error which can be posted here. |
Only sd card I had laying around was a 64gb, so I am using that and it is a Pi 2. Flashed a new image of scratch lite and manually loaded the dependent packages and ran the pip 2 installations. No errors to report on either of the installations. Still getting the same error as initially reported, and I am unable to find a setting.cfg. Is there a way to get further debugging when starting the application? |
Just... how strong power source do y have? A? |
You have still the same error? That is strange, as I do not have it, and for now, I can't reproduce. The missing settings.cfg is normal as that will be created when you save the settings for the first time. But without it, it should just work. So could you confirm the same error as above is still there. Else, please post the error once more to be sure. |
Ah, power problem, that could also be an issue. I do not know what the minimum should be, but it looks like 1Amp at least: https://www.pidramble.com/wiki/benchmarks/power-consumption But I advice to use a 2+Amp adapter as you will also hook up some sensors and use usb, bluetooth and or wifi. On my dev device I also have some power issues (I think). Because I get these messages with
But my Pi will work.... It is a bit less stable, but for me, it is working good enough |
Cheers theyosh and ese23 for trying to help with this. At this stage the only thing that is connected is a USB Wifi Adapter. |
@whipcreambeast strange question: Could you try to set the CPU in turbo mode with I have no clue why you have this problem. I am testing on a Rpi3 so that could be the key to this.. |
Or, do a |
Ok I quickly enabled turbo mode then pulled the latest commit. Tested and yep working now, was also able to get my local weather as well. Cheers @theyosh, I owe you a beer. |
There are more people with this error.... But with different hardware. So I keep this open for now. Do you see some warning during startup mentioning weather problems? Should be visible in the screen session. If there is still an error message, then the turbo option is not solving this, and is the code change the fix. It is handy to know for me. |
2 warnings were found, my current screen output is: 2019-01-30 18:35:56,000 - INFO - terrariumWrapper - Starting TerrariumPI server at location: http://10.0.1.49:8090 ... |
Ok, this looks ok. Rpi2 does not have Bluetooth LE (as far as I know) and you do not use OWFS hardware. But the strange thing is that there is no weather error. If you have some time to spare, could you try again without the turbo mode on the Pi. Then we know for sure it is the turbo option that is needed for the Rpi2 |
@whipcreambeast Could you have a look at #210 ? Would be nice if you can add some pictures |
Closing as working and closed #244 |
Hey everyone,
Attempted install this on a fresh image of Scratch Lite, got an exception on the installation but it installed.
The application did not start after manually running ./start.sh, so I attempted the installation again on the same image.
After that was done, got the following screen error:
2019-01-26 12:47:26,000 - INFO - terrariumWrapper - Starting TerrariumPI server at location: http://10.0.1.49:8090 ...
Traceback (most recent call last):
File "/home/pi/TerrariumPI/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'
2019-01-26 12:47:36,000 - INFO - terrariumWrapper - Restart counter: 1/5
2019-01-26 12:47:36,000 - INFO - terrariumWrapper - Restarting in 10 seconds after running for 10 seconds. Press Ctrl+C now to terminate TerrariumPI.
10 9 8 7 6 5 4 3 2 1 restart!
Anyone had this error?
Cheers,
Sean
The text was updated successfully, but these errors were encountered: