Bash script for some of the API functions of D-Link DSP-W215
This script was made thanks to: https://github.com/bikerp/dsp-w215-hnap
Usage: hnap-dsp-w215.sh <options>
<options> are:
--state - Get state of the device
--state on|off - Set state of the device ON or OFF
--power - Current power consumption
--temp - Current temperature of the device
--total - Total consumption for current month
Remark: Do not forget to edit the first two lines of the script and enter the IP address and PIN number of the device inside the double quotes