You should have a command available in your Debian VM with tools, called "xenstore". You can use xenstore-write.
For example:
xenstore-write vm-data/gputemp 82This will write the value 82 in a key gputemp. This key/value can be seen in the VM object then, eg with a :
xe vm-param-get param-name=xenstore-data param-key=vm-data/gputemp uuid=<VM UUID>This will return 82. Now you can do whatever script in your Dom0 (or even from your XOA, since you can fetch all data in XAPI)
As you can see, it's very simple and efficient 🙂