poljvd / hyperion-webapp

Colorpicker webapp for Hyperion
19 stars 5 forks source link

Web App Console Not Showing up #4

Closed ericrobertn closed 10 years ago

ericrobertn commented 10 years ago

Thanks for any help you can provide. I've loaded Hyperion and setup the web app which I can access online. My issue is when I press the Green "Turn on" button, nothing happens. It reloads the page right back to where it was.

When using Chromes 'Inspect element' I see this error

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Along with the following file seems to be missing getting a 404 error. jquery.min.map /colourPicker/js

bradcornford commented 10 years ago

Hi there,

Thanks for pointing out the missing jquery.map. I have now removed this dependency and updated the master repository to utilise the development version of jQuery.

As for your other problem, what OS are you using? have you installed Hyperion on the local machine the web app is running on?

ericrobertn commented 10 years ago

Thanks for the quick reply,

It's running on debain and yes I've installed Hyperion on the local machine. I'm still learning hosting on linux. Is there a log somewhere I can check for errors?

ericrobertn commented 10 years ago

I'm noticing that when I run /etc/init.d/hyperion restart I get an error. /etc/init.d/hyperion: line 53: kill: (3708) - No such process. Looking in the file that line is "kill -HUP $PID". I'm also not seeing hyperion when I run ps. I didn't get any errors when I installed it so I'm assuming it's installed correctly.

bradcornford commented 10 years ago

The web app itself doesn't store any type of log file, I'm not entirely sure if Hyperion does either.

What happens when you run the command "sudo /sbin/initctl start hyperion"? What about when you run "sudo service hyperion start"? I'm assuming the second option will work... If so there is a feature in development to allow this, but I'll give you some more information on how you can fix the issue if this is the case.

ericrobertn commented 10 years ago

The first option says no such file or directory. The second option does work. I'm still not seeing it under ps -A though. Should it be?

bradcornford commented 10 years ago

Yeah I would assume so, the web app utilises the command "ps aux | grep [h]yperion" to check if the service itself is running.

Do you have lights attached to check that the service is running? Can you run the following command "hyperion-remote --priority 50 --color red" to test the lights?

ericrobertn commented 10 years ago

The command ps aux | grep hyperion returns root 6336 0.0 0.1 2024 632 pts/0 S+ 20:33 0:00 grep hyperion

the hyperion-remote returns "Unable to connect to host" I'm currently remoted in so I'll have to double check if the LED strand is actually plugged in. Pretty sure it is but I can't be 100%.

bradcornford commented 10 years ago

It doesn't look like the Hyperion service is running. Out of interest, have you created a Hyperion configuration file / update the default configuration in line with your build? This may be of interest to you if you haven't https://github.com/tvdzwan/hyperion/wiki/configuration

I'm not really an expert with the Hyperion service, I only wrote the web app itself.

bradcornford commented 10 years ago

Also the forum here is a great resource for troubleshooting and help http://forum.stmlabs.com/showthread.php?pid=90539

ericrobertn commented 10 years ago

I appreciate the help. I'll have to ask around on there.

bradcornford commented 10 years ago

If you do get Hyperion working, and the web app doesn't work. Drop another comment in here and I'll try my best to help you out.

ericrobertn commented 10 years ago

Will do

bradcornford commented 10 years ago

Did you get the problem fixed? If so could you close this issue please =)

ericrobertn commented 10 years ago

Never got it fixed. Haven't had any free time to really tackle it. I'll close it though. Thanks for your help.