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

Errors when trying to run LightUpPi Alarm #1

Open
a61c opened this issue Apr 14, 2016 · 14 comments
Open

Errors when trying to run LightUpPi Alarm #1

a61c opened this issue Apr 14, 2016 · 14 comments

Comments

@a61c
Copy link

a61c commented Apr 14, 2016

I have been trying to set up LightUpPi and have been getting these errors everytime I try to run it. I have all the dependencies that are listed here installed.

dqlja6lg

@carlosperate
Copy link
Owner

carlosperate commented Apr 15, 2016

Looks like this particular iterator from dataset has changed quite a few times. It took some digging around and quite a few attempts with different versions, but if you install version 0.5.4 it should work. Uninstall your current version and then:

pip install -I dataset==0.5.4

@carlosperate
Copy link
Owner

I've updated the requirements.txt and README instructions to indicate this.

Let me know if it works for you and thanks for reporting it!

@a61c
Copy link
Author

a61c commented Apr 15, 2016

That's great - it now works perfectly. Thanks for sorting this out so
quick!

Just one other problem now, the CLI works great, however when I run the
server and try to use the web interface it gives an error about being
unable to find the alarms, so it defaults to demo alarms - But when I look
at my alarms through the CLI, it shows my custom alarms just fine.

Thanks again.
On 15 Apr 2016 1:23 a.m., "Carlos" [email protected] wrote:

I've updated the requirements.txt and README instructions to indicate this.

Let me know if it works for you and thanks for reporting it!


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1 (comment)

@carlosperate
Copy link
Owner

did you try using the "-b" command for having both the command line and web interface?

@a61c
Copy link
Author

a61c commented Apr 15, 2016

I have, it still gives the same error :-(
On 15 Apr 2016 7:11 p.m., "Carlos" [email protected] wrote:

did you try using the "-b" command for having both the command line and
web interface?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1 (comment)

@carlosperate
Copy link
Owner

when you run with only the server, does it print anything on the console?

@a61c
Copy link
Author

a61c commented Apr 15, 2016

No errors,
Here's a screenshot...
http://imgur.com/E9NHtlC

@carlosperate
Copy link
Owner

carlosperate commented Apr 15, 2016

and when connecting to http://localhost it doesn't print anything on the console?
it should start printing all the GET connections right away.

For example:

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.11+

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

=========== Launching LightUpPi Alarm ==========
 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET /LightUpPi/ HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET /LightUpPi/css/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET /LightUpPi/js/lightuppi_controller.js HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET /LightUpPi/js/lightuppi.js HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2016 20:04:50] "GET /LightUpPi/js/angular/ui-bootstrap-tpls-0.13.0.min.js HTTP/1.1" 200 -
...

@a61c
Copy link
Author

a61c commented Apr 15, 2016

I am getting the Get commands when opening the page from another device:
http://imgur.com/bQpUnLd

@carlosperate
Copy link
Owner

so it works when accessed from a different device? but not when executed from the pi?

@a61c
Copy link
Author

a61c commented Apr 15, 2016

Sorry, I should have been clearer, the page loads OK from another device or on the pi, however it doesn't show or let me set my own alarms.
http://imgur.com/2Rw2X6

Do you have an apk for the LightUpDroid Alarm app, then I could quickly give that a try?

@a61c
Copy link
Author

a61c commented Apr 15, 2016

Sorry incorrect link, should be...
http://imgur.com/2Rw2X6l

@carlosperate
Copy link
Owner

carlosperate commented Apr 15, 2016

Yeah, adding an alarm from the web interface doesn't work for me either. I suspect I never finished that feature, as I used the Android app pretty much exclusively once I had that running, but I honestly cannot remember, it's been a while.

I don't really have a copy of the Android apk on my main computer, I'll have a look in my old laptop once I get a chance, but if there isn't a copy there either you would have to build from source.

Nevertheless the web app (from any device) should be able to connect to display the alarms already present. That message that you see is displayed when Angular loses connection with the server. Do the correct Alarms get displayed at all on the web interface?

@a61c
Copy link
Author

a61c commented Apr 15, 2016

No problem, thanks for your help. I'll have a go at building the apk, when I get chance. Unfortunately the alarms don't even display on the web interface.

Thanks anyway.

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