//#!/bin/bash #Moodo script response=$(curl -X PUT "https://rest.moodo.co/api/boxes" -H "accept: application/json" -H "token: 6HWXfEdu8G723KlvSR4hcpzsFPjkQgxNa5T9UCBr1630875535" -H "Content-Type: application/json" -d "{ \"device_key\": 24024, \"box_status\": $1, \"duration_seconds\": $2, \"settings_slot0\": { \"fan_speed\": $3, \"fan_active\": true }, \"settings_slot1\": { \"fan_speed\": $4, \"fan_active\": true }, \"settings_slot2\": { \"fan_speed\": $5, \"fan_active\": true }, \"settings_slot3\": { \"fan_speed\": $6, \"fan_active\": true }, \"restful_request_id\": \"string\"}") echo "$response"