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

Server not working #3

Open
abezukor opened this issue Dec 21, 2016 · 1 comment
Open

Server not working #3

abezukor opened this issue Dec 21, 2016 · 1 comment

Comments

@abezukor
Copy link

I am trying to set alarms up with the server. I ran

sudo python main.py -s
The unicornhat package needs to be installed !
The LightUpHardware folder contains a README file with more info.
Mock unicornhat module imported.
Running Python version 2.7.9

======= Parsing Command line arguments =======
Server selected

=========== Launching LightUpPi Alarm ==========
 * Running on http://192.168.0.200:8000/
192.168.0.181 - - [20/Dec/2016 18:14:18] "GET /LightUpPi/ HTTP/1.1" 304 -
192.168.0.181 - - [20/Dec/2016 18:15:07] "GET /LightUpPi/ HTTP/1.1" 304 -

and the webpage loads but it looks like:
pialarm
when I click okay and the page loads it just says.
image
Note: I manually changed the ip address and port so it would not confilct with another application of mine.

@carlosperate
Copy link
Owner

It's been a year an a half since the last time I worked on this, so I honestly cannot remember if the web interface was working correctly if hosting from the pi and accessing from another device on the network. The mobile app should have been working correctly as I used that mostly, accessing the web interface from the raspberry pi as well should be working too, as I was doing a lot of development that way.

There is an issue already opened similar to this one. At the moment I am a bit busy to work on this right now, but I am planning to finish it up around February. I'll see if I can give it a quick go during this Christmas break first to at least get this server component working or clearly stating what still needs to be implemented.
Having a very very brief look I see a lot of hardcoded localhost on https://github.com/carlosperate/LightUpPi-Alarm/blob/master/LightUpWeb/js/lightuppi_controller.js so you could try to edit that with the IP of your Pi and see if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants