Setting up and running a time-zone-server on Raspberry pi

More
1 month 6 days ago #12276 by Jedidiah
I had not done NPM install. So I did:
npm install npm@latest -g

There is a directory node_modules at:
/home/pi/node/node-v6.17.1-linux-armv7l/lib/node_modules

Still appears to be missing "express."

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #12277 by Ty_Eeberfest
My post ended up at the bottom of the previous page so probably you didn't see it. What I said was that I remember having to install Express separately and also another module I think was called Time. See my post on Page 2 for links.

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #12278 by Ty_Eeberfest

Ian wrote: In 6 months, you won't remember where it is, and you'll go crazy searching for it.


Very valid point - I can relate :laugh:

Thanks for explaining.

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #12279 by Jedidiah
Installed express. The Server is working now.

pi@raspberrypi:~/time-zone-server $ cat log.txt
Listening on port 3000...

Thanks! I'll have a go at the cron job now...

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #12280 by Jedidiah
I set up cron job per Ian's post. Not working. Here is the error file:

pi@raspberrypi:~/time-zone-server $ cat cron.err
nohup: failed to run command 'node': No such file or directory

Here is the run.sh file:
pi@raspberrypi:~/time-zone-server $ cat run.sh
cd /home/pi/time-zone-server/
nohup node time-zone-service.js > log.txt &2>1
#nohup node time-zone-service.js >> tzs.log &

??

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #12281 by Ty_Eeberfest
So what happens if you:

pi@raspberrypi:~ $ cd /home/pi/time-zone-server/
pi@raspberrypi:~/time-zone-server $ node -v

Does it find node and output version info?

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.106 seconds
Go to top
JSN Boot template designed by JoomlaShine.com