lanceseidman / PiCAST

PiCAST turns your $35 Raspberry Pi in to a Chromecast like Device.
https://munchron.com
1.77k stars 263 forks source link

picast_start exits without error after outputting forever processing file line #35

Open drentsoft opened 8 years ago

drentsoft commented 8 years ago

Raspberry Pi Zero V1.3 (the one with the camera), install took at least 6 hours (went to bed after that point so I don't know how much longer it took) but I assumed it worked however doing: cd ~/PiCAST sh picast_start.sh it outputs the expected Starting PiCAST3... waits a few seconds then outputs: warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: picast.js then just quits with no error. I tried adding --minUptime 10000 --spinSleepTime 10000 in the picast_start.sh file but it still says they're not set (with and without the --).

dieguillo commented 8 years ago

This is often a naming error. If you install from a package manager, your bin may be called 'nodejs', so you just need to symlink it:

ln -s /usr/bin/nodejs /usr/bin/node

drentsoft commented 8 years ago

Thanks dieguillo, Doing which node and which nodejs shows I have both. Doing ls -l on /usr/bin seems to show that node is symlinked to nodejs. Still experiencing the same issue.

nicosandller commented 8 years ago

Same issue here.

emlyons2014 commented 8 years ago

I'm also experiencing the same issue:

pi@raspberrypi:~/PiCAST $ sh picast_start.sh Starting PiCAST3... warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: picast.js pi@raspberrypi:~/PiCAST $

FarhadGSRX commented 8 years ago

+1; Same Issue. Just installed last night.

JbIPS commented 8 years ago

Had the same issue and running node picast.js told me that it needed express. Installing it by typing npm i express solved this issue. Hope it's the same for you :smiley:

nicosandller commented 8 years ago

@JbIPS nope, that didn't fix the problem for me!

Flappie commented 8 years ago

@JbIPS Thanks mate, i'm just starting to digg more into this stuff and your command (npm i express) solved it for me, unforunatly i have no idea what i did :-D ;-)

JbIPS commented 8 years ago

It install the 'express' library which is needed for picast to work. Don't know why it isn't install by default. Have fun 😀

johnnogent commented 7 years ago

Hello to all, I have tested all the above and my issue is not fixed. Do you have another idea please?

Thanks

jahanzeb07 commented 7 years ago

After installing express by npm i express and executing node picast.js, it worked like charm.

cmakfr commented 7 years ago

same : install of express module was required with raspbian jessie