This command is for crontab not rc.local
Data goes in the Blynk directory but don’t paste in your old data until you have a working system i.e. let the system create the required directories for now.
This command is for crontab not rc.local
Data goes in the Blynk directory but don’t paste in your old data until you have a working system i.e. let the system create the required directories for now.
sorry i did the following via ssh
sudo nano /etc/rc.local
then added this line
java -jar /home/pi/server-0.24.4.jar -dataFolder /home/pi/Blynk &
Hopefully not 24.4 ?
Is rc.local working now?
Others have reported that changes within Debian means it no longer works but I would be quite surprised.
I actually use a crontab entry to a simple bash script with the iptable entries followed by starting the server.
java -jar /home/pi/server-0.29.7.jar -dataFolder /home/pi/Blynk &
i tried this first
crontab -e
followed by
@reboot java -jar /home/pi/server-0.29.7.jar -dataFolder /home/pi/Blynk &
If that doesn’t start the server try running the command manually.
But I think you need the java 8 version of the server unless there has been a recent update for the Pi. See https://github.com/blynkkk/blynk-server/releases/download/v0.29.7/server-0.29.7-java8.jar
this is the rc local script, have i added the line in the correct place
#!/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.
# Print the IP address
**java -jar /home/pi/server-0.29.7.jar -dataFolder /home/pi/Blynk &**
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
Remove the entry from rc.local.
Paste the following via ssh:
java -jar /home/pi/server-0.29.7.jar -dataFolder /home/pi/Blynk &
Confirm that it fails and go get yourself the correct server for the Pi.
Then just paste the correct command via ssh, don’t get hooked up with autostarting the server you can fix that later.
pi@raspberrypi:~ $ java -jar server-0.29.7-java8.jar -dataFolder /home/pi/Blynk
Blynk Server 0.29.8-SNAPSHOT successfully started.
All server output is stored in folder ‘/home/pi/logs’ file.
this is the rc local script, have i added the line in the correct place
#!/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.
Print the IP address
java -jar /home/pi/server-0.29.7-java8.jar -dataFolder /home/pi/Blynk &
_IP=$(hostname -I) || true
if [ “$_IP” ]; then
Strange that 29.7 starts 29.8 but sometimes the version numbers are not quite right (or your typing is at fault).
Paste screenshots showing files in /home/pi and /home/pi/logs (forget rc.local)
i didn’t type that line, it was cpoied and paste from putty screen…how strange
Thanks and a screenshot for /home/pi/Blynk
You can create a basic project with a single Blynk button for IFTTT testing.
Then stop the server.
Ensure server.properties has the correct entries (defaults should be ok for now)
Run the 2 off iptable commands (we can but in a script later) and start server again.
Use LAN IP to start to check API etc.
almost done now, how can you check ifttt with a blynk button?
Start with the API calls I gave you early on to control the button via your browser but use local IP first.
what API calls?
update:-1:
managed to log in to 9443 dashboard with correct user not that default one, only correct user visable
http://local_ip/auth_token/update/V1?value=1 to turn on a Blynk button on V1 (as previously covered).
Wrong request format.