Are you entering your LAN ip and token?
yes
i think its almost there because the green blynk symbol is in the chrome page when the comment “Wrong request format.” is returned
Did you run the iptable commands before you started the server/
yes
pi@raspberrypi:~ $ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
pi@raspberrypi:~ $ sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 9443
pi@raspberrypi:~ $
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.
Well that’s certainly the correct format as per https://blynkapi.docs.apiary.io/#reference/0/write-pin-value-via-get/write-pin-value-via-get and I have used it many times myself.
Do you have a button tied to V1 in the project?
yes
i dont see how this test works because the token is not online
no it doesn’t
What do you mean by that?
sorry yes it did return a load of data
here is what it returned
{“id”:1132620328,“parentId”:-1,“isPreview”:false,“name”:“test2”,“createdAt”:1516390338906,“updatedAt”:1516401067096,“widgets”:[{“type”:“BUTTON”,“id”:194459,“x”:0,“y”:0,“color”:600084223,“width”:2,“height”:2,“tabId”:0,“label”:“button ifttt”,“isDefaultColor”:true,“deviceId”:0,“pinType”:“VIRTUAL”,“pin”:1,“pwmMode”:false,“rangeMappingOn”:false,“min”:0,“max”:1,“value”:“0”,“pushMode”:false}],“devices”:[{“id”:0,“name”:“test2”,“boardType”:“Generic Board”,“connectionType”:“WI_FI”,“connectTime”:0}],“theme”:“Blynk”,“keepScreenOn”:false,“isAppConnectedOn”:false,“isNotificationsOff”:false,“isShared”:false,“isActive”:true}
Sorry what I meant by the comment was that I couldn’t get my head around how a Blynk project with a single virtual button that was not flashed to a physical device how by using a web command was going to do anything
Good.
Maybe you need https for the API call following the auto Let’s Encrypt update. You don’t with the super simple Blynk cloud server. Try this with and without the 9443 port.
https://local_ip:9443/auth_token/update/V1?value=1
As confirmed by the json file output, everything is on the server, that’s why it works.
OMG I am so sorry I forgot to add ?value=1 on the end of the earlier test
Just twigged it then and went back and added the above and it has turned on the button in the blink app
Thank f for that!!!
So if hypothetically I changed the 1 to a 0 it should turn the button off
Just tried it and it did turn the bottom off