Skip to content

Instantly share code, notes, and snippets.

@dwblair

dwblair/bayou_putscript.sh

Last active Nov 30, 2020
Embed
What would you like to do?
#!/bin/bash
for i in {1..1000}
do
echo 'post ...'
curl --location --request PUT 'http://159.65.226.222:3000/api/drives/59a0cab6d6faa75e205a52522bcaa255e1d3bcede4b52b85bc899534f6792e4b' --header 'Authorization: 41c29b4d120993dfb0bbc2a0e2f3b63ba0d28a99433a06e9bd3bf025743c62a7' --header 'Content-Type: application/json' --data-raw '{"deviceId":"sensor1","fields":{"temp":20.3, "humid":10}}'
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment