[Solved] Rc.local . add automatic start hardware compatible with blynk application

hello,

I follow instructions and the IOT work well. now I try to reconnect the hardware each time my pi restart.

I modify my rc.local and the last line for connecting the hardware don’t execute correctly.

have you some idea for write correctly the line ?
node /home/pi/python/index8081.js ‘ef7a57a02ed4447ab2816e360e7f0ddd’ &

Thanks.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


# start serveur blynk
java -jar /home/pi/serveur/server-0.41.2-java8.jar -dataFolder /home/pi/serveur/data -serverConfig /home/pi/serveur/server.properties -mailConfig /home/pi/serveur/mail.properties   &

# start dyndns for static IP from internet
/usr/local/bin/noip2    &

# automatic start hardware compatible with blynk application
node   /home/pi/python/index8081.js   'ef7a57a02ed4447ab2816e360e7f0ddd'  &

exit 0

regards,
Joel

I’ve re-formatted your code for you. In future, do it like this:

Blynk%20-%20FTFC

Pete.

hi Pete

thanks

I had search but not found how to poste “code”
on my computer backtip = AltGr 7

Joël

Joel, you’ll want to remove the quotes around the auth code.

I put a sleep 60 in there as well.

Mine looks like this.

<cut>-------------------------

/usr/bin/java -jar /SAVE/blynk/server-0.41.2.jar -dataFolder /SAVE/blynk &

sleep 60

/usr/bin/node /SAVE/blynk/projects/linux.mgr/linux.js &
<cut>---------------------------

Thanks Larry.

I try this evening and it work perfectly . may be I can reduce the Sleep60.

java -jar /home/pi/serveur/server-0.41.1-java8.jar -dataFolder /home/pi/serveur/data  -serverConfig /home/pi/serveur/server.properties -mailConfig /home/pi/serveur/mail.properties &
    
/usr/local/bin/noip2 &

sleep 60 

/usr/bin/node  /home/pi/python/index8081.js ef7a57a02ed4447ab2816e360e7f0ddd &

regards.

Joël