carlosperate / LightUpPi-Alarm

Raspberry Pi Alarm Clock with sunrise lighting, coffee machine control, physical snooze button, and Android companion app:
http://lightupalarm.embeddedlog.com
MIT License
34 stars 10 forks source link

Errors when trying to run LightUpPi Alarm #1

Open a61c opened 8 years ago

a61c commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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" notifications@github.com 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 https://github.com/carlosperate/LightUpPi-Alarm/issues/1#issuecomment-210218030

carlosperate commented 8 years ago

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

a61c commented 8 years ago

I have, it still gives the same error :-( On 15 Apr 2016 7:11 p.m., "Carlos" notifications@github.com 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 https://github.com/carlosperate/LightUpPi-Alarm/issues/1#issuecomment-210569901

carlosperate commented 8 years ago

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

a61c commented 8 years ago

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

carlosperate commented 8 years ago

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 commented 8 years ago

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

carlosperate commented 8 years ago

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

a61c commented 8 years ago

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 commented 8 years ago

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

carlosperate commented 8 years ago

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 commented 8 years ago

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.