Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. Parser can't open website

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Parser can't open website

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      w_stefan last edited by

      Hi All,

      I have opened the source code of an internal website and it has the code listed below

      With https://regex101.com/ I have identified the value which I would like to read and the syntax is
      "forward_kwh"><!--#TFKWH-->(-?\d+.\d+)

      In parser I have entered the url http://192.168.1.40/de/setting.shtm but I get always
      warn Cannot read link "http://192.168.1.40/de/setting.shtm": Error: Parse Error

      When I open the link in a browser it works fine

      There are no more detail about the message when I change the settings in Parser itself, it says only Error without any status messages.

      <!DOCTYPE html>
      <html>
      <head>
      <meta name="viewport" content="width=device-width,initial-scale=1.0" />
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>SMART METER | www.elgrispower.com</title>
      <link href="./css/style.css" type="text/css" rel="stylesheet" />
      </head>
      <body onload="load()">
      <div class="wrapper">
      <header>
      <div class="header">
      <div class="container">
      <div class="logo">
      <a href="index.shtm"><img src="images/logo.jpg"  alt="Logo" /></a>
      </div>
      
      <div class="right-header">
      <h2>SMART METER</h2>
      <p id = "firmware_version"></p>
      </div>
      <div class="right-header" style="padding-right:10px">
      	<select id="lang_select" name="lang" onchange="lang_change()" class="form-control top-space">
      		<option>Sprache</option>
      		<option value="de">Deutsch</option>
      		<option value="en">Englisch</option>
      	</select>
      </div>
      <div class="clr"></div>
      </div>
      </div>
      </header>
      <div class="header-menu">
      <div class="container">
      <div id="nav-trigger">
          <span id="nav-trigger-span" onClick = "span_click()">Menu<img src="./images/menu_list.png" class="menu_list" alt="" /></span>       
      </div>
       <nav id="nav-main">
      <ul>
      <li><a href="index.shtm">Home </a></li>
      <li> 
      	<div class="sub-menu">
              <span class="sub-menu-span">Settings</span>
      		<div class="sub-menu-content">	
      			<a href="setting.shtm">General </a>
      			<a href="ecloud.shtm">elgris cloud</a>
      		</div>
      	 </div>
      </li>
      </ul>
      </nav>
      
      <nav id="nav-mobile"></nav>
      
      </div>
      </div>
      <div class="setting">
      	<div class="container">
      		<div class="power">
      			<h1 class="text-center">System information</h1>
      			<div class="col-100">
      				<div class="colum">
      					<h3>General information</h3>
      					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
      						  <tr>
      							<td>Serialnumber</td>
      							<td id = "serial_number"><!--#PMSerial-->0058.0047.510a.3437.3530.3034</td>
      						  </tr>
      						  <tr>
      							<td>RS 485 settings</td>
      							<td id = "RS485"><!--#RS485-->No valid configuration</td>
      						  </tr>	
      						  <tr>
      							<td>Broadcast</td>
      							<td id = "BROAD"><!--#BROAD-->SMA broadcast standard</td>
      						  </tr>						  
      						  <tr>
      							<td>Total forward kWh</td>
      							<td id = "forward_kwh"><!--#TFKWH-->0.000 kWh</td>
      						  </tr>
      						  <tr>
      							<td>Total reverse kWh</td>
      							<td id = "reverse_kwh"><!--#TRKWH-->15.3 kWh</td>
      						  </tr>
      					</table>
      				</div>
      			</div>
      			<div class="col-50">
      				<div class="colum">
      					<h3>Basic settings</h3>
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-50">
      								<div class="form-box">
      									<input id = "ip_address" name="ipAddressUser" placeholder="192.168.1.5" class="form-control" required>
      								</div>
      							</div>
      							<div class="col-50">
      								<div class="form-box">
      									<input type="submit" value="Update IP address" class="btn_sub">
      								</div>
      							</div>
      						</form>
      					</div>
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-50">
      								<div class="form-box">
      									<input id="netmask" name="nmAddressUser" placeholder="255.255.255.0" class="form-control" required>
      								</div>
      							</div>
      							<div class="col-50">
      								<div class="form-box">
      									<input type="submit" value="Update NM address" class="btn_sub">
      								</div>
      							</div>
      						</form>	
      					</div>
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-50">
      								<div class="form-box">
      									<input id="gateway" name="gwAddressUser" placeholder="192.168.1.1" class="form-control" required>
      								</div>
      							</div>
      							<div class="col-50">
      								<div class="form-box">
      									<input type="submit" value="Update GW address" class="btn_sub">
      								</div>
      							</div>
      						</form>
      					</div>
      			</div>
      		</div>
      		<div class="col-50 Calibration_factors" id="cal_fact" >
      			<div class="colum lb">
      				<h3>Advanced settings</h3>
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class = "col-70">
      								<div class="form-box up_time">
      									<select name="baudRate" size="1" style="width:30%">
      										<option value="0">1200</option><option value="1">2400</option><option value="2">4800</option><option value="3">9600</option><option value="4">14400</option>
      										<option value="5">19200</option><option value="6">28800</option><option value="7">38400</option><option value="8">57600</option><option value="9">115200</option>									</select> 
      									<select name="dataBit" size="1" style="width:20%">
      										<option value="8">8</option><option value="9">9</option>
      									</select> 
      									<select name="parity" size="1" style="width:24%">
      										<option value="0">None</option><option value="1">Odd</option><option value="2">Even</option>
      									</select>								
      									<select name="stopBit" size="1" style="width:20%">
      										<option value="1">1</option><option value="2">2</option>
      									</select> 
      								</div>
      							</div>	
      							<div class="col-30">
      								<input type="hidden" value="1" name="port" />
      								<input type="submit" value="Update RS-485" class="btn_sub" required>
      							</div>	
      						</form>	
      					</div>					
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-70">
      								<div class="form-box up_time form-box">
      									<p style= "margin:0px;font-size:16px;display:inline-block;float:left">CT ratio 1: </p>
      									<div style="overflow:hidden; padding: 0 9px 0 10px;">
      										<input id="ct_Ratio" name="ctRatio" size="4" min="1" max="3000" placeholder="1" class="cel" style = "width:100%;height:30px;" required>
      									</div>
      								</div>
      							</div>
      							<div class="col-30">
      								<input type="submit" value="Change CT" class="btn_sub" required>
      							</div>
      						</form>
      					</div>	
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-70">
      								<div class="form-box up_time form-box">
      									<p style= "margin:0px;font-size:16px;display:inline-block;float:left">VT ratio 1: </p>
      									<div style="overflow:hidden; padding: 0 9px 0 10px;">
      										<input id="vt_Ratio" name="vtRatio" size="4" min="1" max="3000" step=".1" placeholder="1" class="cel" style = "width:100%;height:30px;" required>
      									</div>
      								</div>
      							</div>
      							<div class="col-30">
      								<input type="submit" value="Change VT" class="btn_sub" required>
      							</div>
      						</form>
      					</div>					
      					<div class="form-group">
      						<form method="get" action="settxt.cgi" name="settxt">
      							<div class="col-40">
      								<p style= "margin:0px;font-size:16px;display:inline-block;float:left">SMA Turbo :</p>
      							</div>
      							<div class="col-30">	
      								<div class="form-box">
      									<input type="radio" name="SMATurbo" value="0" checked="" >Disabled
      									<input type="radio" name="SMATurbo" value="1" >Enabled
      								</div>
      							</div>
      							<div class="col-30">
      								<input type="submit" value="SMA Turbo" class="btn_sub" required>
      							</div>
      						</form>
      					</div>				
      				</div>
      			</div>
      		</div>
      	</div>
      </div>
      	<footer>
      <div class='footer'>
      <p class="copyright">copyright © 2004-2019 <a href="http://www.elgrispower.com">elgris GmbH</a> Germany. All rights reserved. Revision 17.12.25</p>
      </div>
      </footer>
      </div>
      <script type="text/javascript" src="./js/settings.js"> </script>
      <script>
      var cal_fact = document.getElementById("cal_fact");
      var ck_box = document.getElementById("check_box");
      function load(){
      	get_placeholders();
      	document.getElementById("nav-mobile").innerHTML = document.getElementById("nav-main").innerHTML;
      	loadHeader();
      	ck_box.checked = false;
      };
      function lang_change(){
      	var lang = document.getElementById("lang_select").value;
      	if(lang == "de"){
      		location.replace("/de/index.shtm");
      	}else{
      		location.replace("/index.shtm");
      	
      	}
      };
      </script>
      </body>
      </html>
      
      

      Thx and best regards,

      Stefan

      1 Reply Last reply Reply Quote 0
      • W
        w_stefan last edited by

        ich umgehe jetzt dieses Problem indem ich den Wert über Modbus auslese.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        975
        Online

        31.7k
        Users

        79.9k
        Topics

        1.3m
        Posts

        cannot read link cant open website parse error parser
        1
        2
        346
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo