This script contains some PowerShell functions to query and interact with a Deeper Connect device.
It also gathers some info from online resources.
I have also added the ability to turn sharing on or off.
NOTE: Deeper Network have changed their public and private keys (which is good, and I applaud them for doing so).
Requires PowerShell 7! This will not work on Windows PowerShell (5), and I haven't tested PowerShell 6.
After loading the functions, you can use them as shown in the picture below.
If you do not supply a password when you run the "Deeper-Session" function, you will be asked to type it in. Same goes for when you run the "Send-DPR" function.
The values from the powershell script can be exported to JSON, and consumed by HomeAssistant (out of scope for this repo, but worth mentioning).
For fun, I calculated how much DPR would need to cost per token for you to be a millionaire (based from your staked amount).
I also calculated how many many DPR tokens you need at today's price for you to be a millionaire.
I like Home Assistant :)