squishykid / solax

🌞 Solax Inverter API Wrapper
MIT License
92 stars 56 forks source link

Add support for SK-SU3700 inverter #159

Open petgriffin opened 3 weeks ago

petgriffin commented 3 weeks ago

Hi I tried using the script on the GitHub home page to pull data from my SK-SU3700 Solax inverter but got this message:

solax.discovery.DiscoveryError: Unable to connect to the inverter at host=192.168.42.57 port=80, or your inverter is not supported yet.

Further details are on the Discord solax-dev site. All help appreciated!

petgriffin commented 3 weeks ago

Here is the html code from the curl command

curl -X POST http://192.168.42.57/ --data 'optType=ReadRealTimeData' -u uname:pword

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="css/master.css" rel="Stylesheet" type="text/css" /> <script type="text/javascript" src="js/master.js" charset="utf-8"></script> <script type="text/javascript"> var slanV="en"; </script> </head> <body style="background-color:#F5F6F8"> <div id="main" style="width:960px;margin-left:auto;margin-right:auto;margin-top:15px"> <iframe id="lang_iframe_id" style="border-style:none;width:0px;height:0px"></iframe> <div style="width:50%;float:left;height:42px"></div> <div style="width:50%;float:left;height:22px;margin-top:16px;text-align:right;"><img src="image/CHN.png" class="lan_p"/><a href="JavaScript:changeLan('zhcn')" class="lan lan_r " style="font-family:微软雅黑">中文</a><font style="font-size: 12px;color: #0163AC">|</font><img src="image/USA.png" class="lan_p"/><img src="image/ENG.png" class="lan_p"/><a href="JavaScript:changeLan('enus')" class="lan" style="font-family:Arial">English</a></div> <div class="cl"></div> <div id="menu_div" style="width:140px;height:501px" class="back_div rad_l"> <div class="sp_40"></div> <div id="op_1" class="opt_sel" onclick="opt_sel(1)"><div class="opt" id="op_t1"></div></div> <div id="op_2" class="opt_no" onclick="opt_sel(2)"><div class="opt" id="op_t2"></div></div> <div id="op_3" class="opt_no" onclick="opt_sel(3)"><div class="opt" id="op_t3"></div></div> <div id="op_5" class="opt_no" onclick="opt_sel(5)"><div class="opt" id="op_t5"></div></div> <div id="op_5_sel" style="display:none"> <div id="op_5_2" class="opt_no2" onclick="super_opt(2,5)"><div class="opt2" id="op_t52"></div></div> <div id="op_5_4" class="opt_no2" onclick="super_opt(4,5)"><div class="opt2" id="op_t54"></div></div> </div> <div id="op_7" class="opt_no" onclick="opt_sel(7)"><div class="opt" id="op_t7"></div></div> <div id="op_7_sel" style="display:none"> <div id="op_7_1" class="opt_no2" onclick="super_opt(1,7)"><div class="opt2" id="op_t71"></div></div> </div> <div id="op_8" class="opt_no" onclick="opt_sel(8)"><div class="opt" id="op_t8"></div></div> <div id="op_9" class="opt_no" onclick="opt_sel(9)"><div class="opt" id="op_t9"></div></div> </div> <div id="back_div" style="width:600px" class="back_div rad_r"> <iframe id="child_page" name="child_page" frameborder="0" style="border-style:none;width:100%;height:500px;border-spacing:0px" src="status.html" scrolling="no" allowTransparency="true"></iframe> </div> <div id="help" class="back_div2 rad_a" style="height:501px"> <div class="lab_b rad_t"><div id="help_tit" style="padding-top:10px"></div></div> <div id="help_msg_div" class="rad_b" style="height:460px; overflow:auto;"> <div style="padding-top:15px;padding-left:10px;padding-right:10px;padding-bottom:30px"> <div class="cl"></div> <div class="lab_h" id="help_1"></div> <div class="lab_h" id="help_2" style="display:none"> <div id="help_2_1"></div> <div id="help_2_2"></div> <div id="help_2_3"></div> <div id="help_2_4"></div> <div id="help_2_5"></div> <div id="help_2_6"></div> <div id="help_2_7"></div> </div> <div class="lab_h" id="help_3" style="display:none"> <div id="help_3_1"></div> <div id="help_3_2"></div> </div> <div class="lab_h" id="help_4" style="display:none"></div> <div class="lab_h" id="help_5" style="display:none"> <div id="help_5_1"></div> <div id="help_5_2"></div> <div id="help_5_3"></div> <div id="help_5_4"></div> </div> <div class="lab_h" id="help_6" style="display:none"></div> <div class="lab_h" id="help_7" style="display:none"> <div id="help_7_1"></div> <div id="help_7_2"></div> </div> <div class="lab_h" id="help_8" style="display:none"></div> <div class="lab_h" id="help_9" style="display:none"></div> <div class="lab_h" id="help_res" style="display:none"></div> </div> </div> </div> <div class="cl"></div> <div class="sp_20"></div> <div class="bot_txt">Ver:1.0.05</div> </div> <script type="text/javascript"> setFont(); initLan(); opt_sel(1); </script> </body> </html>