Hive Integration

Hi, I’m no expert but I have been boosting my hive heating via sh script for a while now and when I noticed that hive integration no longer worked this morning I realised my boost script did still work. I then have just tweaked the url I’m posting to turn on my hive light and it worked. I’ll post as much as I can and answer any questions. Hope it helps…

#!/bin/bash
INSTANCE_REGION="$(curl -H ‘Host: beekeeper.hivehome.com’ -H ‘Content-Type: application/json’ -H ‘Accept: /’ -H ‘User-Agent: HiveRNApp/10.16.2 Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148’ -H ‘Accept-Language: en-gb’ --data-binary ‘{“username”:“myemail”,“password”:“mypassword”,“devices”:true,“products”:true,“actions”:true,“homes”:true}’ --compressed ‘https://beekeeper.hivehome.com/1.0/cognito/login’ | python -c “import sys, json; print json.load(sys.stdin)[‘token’]”)"
echo $INSTANCE_REGION
curl -H ‘Host: beekeeper-uk.hivehome.com’ -H ‘accept: /’ -H ‘content-type: application/json’ -H ‘accept-language: en-gb’ -H ‘user-agent: HiveRNApp/10.16.2 Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148’ -H “authorization: ${INSTANCE_REGION}” --data-binary ‘{“status”: “ON”}’ --compressed ‘https://beekeeper-uk.hivehome.com/1.0/nodes/colourtuneablelight/709cc3e4-0b04-4cc4-8e26-b15ec455766f?homeId=myhomeid

1 Like