mireco
mireco copied to clipboard
add set volume api
gitv set volume API: http://[ip]:6095/general?action=setVolum&volum=[volume]&ts=[current timestamp]&sign=[md5]
- ip: mitv/mibox IP
- volume: volume level 0-50
- current timestamp: integer with more than 5 digits should be ok
- md5: see below
md5(sign) calculation method:
- md5 checksum of "mitvsignsalt[volume][mitv ethernet Mac address][current timestamp]"
- P.S Ethernet Mac address, NOT WiFi Mac address
For example :
- ip : "192.168.1.100"
- ethernet Mac address : "ab:11:22:33:44:55"
- timestamp : "11111"
- volume : "20"
- md5sum("mitvsignsalt20ab:11:22:33:44:5511111") : "ee242baf69d53fb6a51b43611b593da3"
Therefore the url will be http://192.168.1.100:6095/general?action=setVolum&volum=20&ts=11111&sign=ee242baf69d53fb6a51b43611b593da3