579195 (10) [Avatar] Offline
#1
I tried below command as per your instruction :

curl -X POST "$SERVER/actions/_setStatus?project=$PROJECT_ID" \
-H "Authorization: $EVRYTHNG_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "_setStatus", "thng":"'$THNG_ID'", "customFields":
{"status":"false"} }'

and received: curl: (3) <url> malformed

Pls advise
domguinard (69) [Avatar] Offline
#2
Hi,

Are you using Windows for this part?
Environment variables such as:
$SERVER

are only supported Bash (Linux shell) and not in the windows command line.

The best way to resolve this is to run the code (including the setup.sh script) from your Raspberry Pi which is a Linux device and hence supports Bash.

Alternatively, since Windows 10, there is a way to install a Linux Shell on Windows: https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
579195 (10) [Avatar] Offline
#3
Hi

I am using raspberry pi and I type the curl syntax in the raspberry terminal screen exactly as per my previous post with the same variables .

The screen returns
curlsmilie3) <url> malformed .

It seems like a syntax error or it cannot reconcile $SERVER variable . All others seems to exist and are set up.
Can you pls advise .