apazga / smappee-domoticz-bash

Bash script to get values from Smappee hub (locally) and upload them to Domoticz
5 stars 1 forks source link

Stopped working #6

Open PaulOckenden opened 6 years ago

PaulOckenden commented 6 years ago

The script ran well for a few days, but around 9am this morning it stopped. When I run the script manually the Curl sees an anauthorized message from the Smappee. I see there's some code in the script that's supposed to deal with that - I haven’t changed it. I also haven’t changed the password from the default.

Tried rebooting the Smappee but that didn’t work. I wonder whether they've pushed a firmware change that locks down the local api? Has anyone else seen this problem?

PaulOckenden commented 6 years ago

Sorry - this was my fault. I'd enabled basic auth on my Domoticz instance thinking only about the website - I'd completely overlooked that it would affect the API posting the data too! What a Muppet!

So I simply embedded my username and password into:

DOMOTICZ_URL="http://username:password@xx.xx.xx.xx:pppp"

Hopefully that'll help anyone else who arrives here to report the same problem!