Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99217

Curl command reading state to a file

$
0
0

@dex857 wrote:

curl -X GET -H ‘Content-Type: application/json’ ‘http://my-ip:8123/api/states/aeon_labs_dsb09104_home_energy_meter_energy_3?api_password=token’ -o /config/tmp/energybaseline.txt"

I get a 403 FORBIDDEN error written to the file energybaseline.txt
Where PASSWORD is I am using the raw token from long live token.

Did lot o reading and tried lots o variations of the above curl with the same result.
I call the curl from a script. which is called from an automation.
that all goes fine I Just get 403 forbidden written to the file.

Thanks in advance for any help…

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>