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

Curl to read from file in config directory

$
0
0

@asouthernboy wrote:

I’m trying to send cookie (api token) to my Proxmox server and i cannot get response.
I think my main issues is that i am not sure how to write command line.
Basically i have spent whole day trying various commands (the one below is from Proxmox Documentation", but still i get “unknown”
How do i access file that is stored in config directory?
“$(<cookiee)” is actually cookie file that is saved.

- platform: command_line
  name: NUC COMMAND
  command: curl --insecure --cookie "$(<cookiee)" https://192.168.1.20:8006/api2/json/nodes/prox/version 
  value_template: '{{value_json.data.version}}'
  scan_interval: 60
- platform: command_line
  name: NUC COMMAND
  command: curl --insecure -b "$(<cookiee)" https://192.168.1.20:8006/api2/json/nodes/prox/version 
  value_template: '{{value_json.data.version}}'
  scan_interval: 60

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



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