Hey im from Sweden, i want help with coding a ticktick task component that can check and add tasks and a proxmox ve that can check status of machines and start / stop machines and a docker status and docker management for restarting, on and off the containers
I should be more than happier if someone can code these things too me
do you want someone to code this for you, or help getting started with coding? (for the latter one, the dev docs are pretty good)
1 Like
I want someone too code it for me and i want to learn coding when I have time for it
I think youβre going to have to put in more effort or throw down some $$ if you want this to happen.
1 Like
okey should probobly do that
im trying to do the same thing maybe we can work together and make it work trying to make a switch for it here what i have and also https://pve.proxmox.com/wiki/Proxmox_VE_API
- platform: command_line
switches:
vmserver1:
command_on: "curl -k -b -XDELETE -H "CSRFPreventionToken: 5C56897F:sPwmJm6MYmZdEZfkaQNTLlG2/IE" -H "PVEAuthCookie=PVE%3Aroot@Mykey" -X POST 'https://192.168.1.10:8006/api2/json/nodes/vmserver/qemu/100/status/start'"
command_off: "curl -XDELETE -H "CSRFPreventionToken: 5C56897F:sPwmJm6MYmZdEZfkaQNTLlG2/IE" -k -b "PVEAuthCookie=PVE%3Aroot@Mykey" -X POST 'https://192.168.1.10:8006/api2/json/nodes/vmserver/qemu/100/status/shutdown'"
command_state: "curl -XDELETE -H "CSRFPreventionToken: 5C56897F:sPwmJm6MYmZdEZfkaQNTLlG2/IE" -k -b "PVEAuthCookie=PVE%3Aroot@Mykey" -X POST 'https://192.168.1.10:8006/api2/json/nodes/vmserver/qemu/100/status/current'"
value_template: "{{ value_json.data.qmpstatus == running }}"
- platform: rest
resource: http://IP_ADDRESS/led_endpoint
body_on: '{"active": "true"}'
body_off: '{"active": "false"}'
is_on_template: '{{ value_json.is_active }}'
headers:
content-type: application/json
CSRFPreventionToken: "5C56897F:sPwmJm6MYmZdEZfkaQNTLlG2/IE"
Cookie: "PVEAuthCookie=PVE%3Aroot@Mykey"
json output for https://192.168.1.10:8006/api2/json/nodes/vmserver/qemu/100/status/current
{"data":{"mem":3162794051,"maxdisk":64424509440,"cpu":0.00562106317101299,"disk":0,"diskread":1974780928,"qmpstatus":"running","netout":1522700,"pid":"378738","balloon":4089446400,"name":"Win10Lite","netin":95131975,"cpus":8,"blockstat":{"ide1":{"rd_total_time_ns":2182723,"wr_highest_offset":0,"rd_operations":15,"failed_wr_operations":0,"wr_merged":0,"failed_rd_operations":0,"wr_operations":0,"wr_total_time_ns":0,"timed_stats":[],"invalid_wr_operations":0,"invalid_flush_operations":0,"rd_bytes":34816,"flush_operations":0,"account_invalid":true,"rd_merged":0,"wr_bytes":0,"account_failed":true,"failed_flush_operations":0,"flush_total_time_ns":0,"invalid_rd_operations":0,"idle_time_ns":6370556843474},"ide0":{"wr_highest_offset":16703782912,"rd_operations":172282,"failed_wr_operations":0,"rd_total_time_ns":26624337105,"wr_operations":28536,"failed_rd_operations":0,"wr_merged":0,"timed_stats":[],"wr_total_time_ns":12905227859,"invalid_flush_operations":0,"invalid_wr_operations":0,"rd_bytes":1974658048,"flush_operations":908,"rd_merged":0,"account_invalid":true,"account_failed":true,"wr_bytes":1032421376,"invalid_rd_operations":0,"failed_flush_operations":0,"flush_total_time_ns":2002515079,"idle_time_ns":3753974654},"ide2":{"wr_merged":0,"wr_operations":0,"failed_rd_operations":0,"rd_total_time_ns":1863845,"failed_wr_operations":0,"rd_operations":31,"wr_highest_offset":0,"rd_bytes":67584,"invalid_wr_operations":0,"invalid_flush_operations":0,"wr_total_time_ns":0,"timed_stats":[],"wr_bytes":0,"account_failed":true,"account_invalid":true,"rd_merged":0,"flush_operations":0,"idle_time_ns":6370585215493,"failed_flush_operations":0,"flush_total_time_ns":0,"invalid_rd_operations":0},"ide3":{"invalid_flush_operations":0,"invalid_wr_operations":0,"timed_stats":[],"wr_total_time_ns":0,"rd_bytes":20480,"failed_rd_operations":0,"wr_operations":0,"wr_merged":0,"rd_operations":10,"wr_highest_offset":0,"failed_wr_operations":0,"rd_total_time_ns":706913,"idle_time_ns":6370317232243,"invalid_rd_operations":0,"failed_flush_operations":0,"flush_total_time_ns":0,"flush_operations":0,"account_failed":true,"wr_bytes":0,"rd_merged":0,"account_invalid":true}},"uptime":6400,"shares":1000,"maxmem":4194304000,"diskwrite":1032421376,"vmid":"112","status":"running","ballooninfo":{"last_update":1549178640,"actual":4089446400,"max_mem":4194304000},"balloon_min":536870912,"nics":{"tap112i0":{"netin":"95131975","netout":"1522700"}},"ha":{"managed":0},"template":""}}