https://dev.qmp.cat/https://dev.qmp.cat/favicon.ico?16699090422015-01-18T18:16:09ZqMp (Quick Mesh Project) and BMX6/BMX7 development siteqMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6382015-01-18T18:16:09ZJorge L. Florit
<ul><li><strong>Categoria</strong> s'ha establert a <i>Packages</i></li><li><strong>Estat</strong> ha canviat de <i>Nou</i> a <i>En progrés</i></li></ul><p>Hi, qmp-guifi oneclick has never worked with HTTPS, in fact, wget in OpenWRT doesn't get HTTPS URLs; it is due to a bug with wget in busybox [1].<br />We have to try an alternative to support HTTPS.</p>
<p>By the way, with HTTP (no secure) in clearance 3.0 works well:<br /><code># qmpguifi get_url http://guifi.net/en/guifi/device/72950/view/unsolclic /tmp/guifi_oneclick<br />Getting oneclick config:<br />Done!</code></p>
<p><code># qmpguifi check /tmp/guifi_oneclick<br />Checking oneclick config:<br />Done!</code></p>
<p><code># qmpguifi print /tmp/guifi_oneclick<br />Showing variables:<br /> nodename='BCNCoroleu29'<br /> devname='BCNCoroleu29Rd1'<br /> devmodel='AirMaxM5_Rocket/Nano/Loco'<br /> ipv4='10.1.57.129'<br /> netmask='255.255.255.224'<br /> zoneid='StAP'</code></p>
<p>I have to try with the latest v3.1, but nothing has change in the package for months, so it should still work.</p>
<p>[1] <a class="external" href="http://lists.busybox.net/pipermail/busybox-cvs/2005-April/019949.html">http://lists.busybox.net/pipermail/busybox-cvs/2005-April/019949.html</a></p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6392015-01-18T19:04:42Zguifi pedro
<ul><li><strong>Tema</strong> ha canviat de <i>[guifi qmp] not working / do not accept https url</i> a <i>[guifi qmp 3.1] not working</i></li></ul> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6402015-01-18T19:08:34Zguifi pedro
<ul></ul><p>with a qMp 3.1, I'm sure you have access to it: 10.1.57.128</p>
<p>root@BCNCoroleu29-62ba:~# qmpguifi check /tmp/guifi_oneclick<br />Checking oneclick config:<br />Done!<br />root@BCNCoroleu29-62ba:~# qmpguifi get_url <a class="external" href="http://guifi.net/en/guifi/device/72950/view/unsolclic">http://guifi.net/en/guifi/device/72950/view/unsolclic</a> /tmp/guifi_oneclick<br />Getting oneclick config:<br />Done!<br />root@BCNCoroleu29-62ba:~# qmpguifi check /tmp/guifi_oneclick<br />Checking oneclick config:<br />Done!<br />root@BCNCoroleu29-62ba:~# qmpguifi print /tmp/guifi_oneclick<br />Showing variables:<br /> nodename=''<br /> devname=''<br /> devmodel='Rocket/Nano/Loco'<br /> ipv4=''<br /> netmask=''<br /> zoneid=''</p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6412015-01-18T19:18:05Zguifi pedro
<ul></ul><p>About the HTTPS error, I suggest a better error output (detect initial 4 characters: https). Say that "HTTPS URL is not valid, please use HTTP" (specially in the web part) instead of:</p>
<ol>
<li>qmpguifi get_url <a class="external" href="https://guifi.net/en/guifi/device/72950/view/unsolclic">https://guifi.net/en/guifi/device/72950/view/unsolclic</a> /tmp/guifi_oneclick<br />Getting oneclick config:<br />qMp: ERROR: Wrong URL specified. USE: '/usr/bin/qmpguifi get_url [<a class="external" href="http://guifi.net/guifi/device/#####/">http://guifi.net/guifi/device/#####/</a>] [FILE]'</li>
</ol>
<p>Web error says:<br />Getting oneclick config: ERROR: Wrong URL specified.</p>
<p>also, I think the web should take this URL as valid (put "http://" if there is no protocol specified):<br />guifi.net/en/guifi/device/72950/view/unsolclic</p>
<p>The CLI part is ok, because is assumed to be a more experimented user.<br />Or perhaps we can assume that in general all users that use qMp are experimented and this corrections are not needed.</p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6422015-01-18T23:22:05ZJorge L. Florit
<ul></ul><p>The HTTPS issue should be revised separately and maybe we can change wget to curl. So it will be a feature to support https instead of a bug. Of course it should be nice to differentiate an error in the URL from an error if it's a secure HTTP or not.</p>
<p>The other question is because there is some change in the behaviour of the awk command, it ocurrs in v3.1 because there is a new version of busybox.</p>
<p><code>root@UPCc6lab104-TL-5cab:~# awk<br />BusyBox v1.19.4 (2014-05-23 12:27:44 CEST) multi-call binary.</code></p>
<p><code>root@BCNCoroleu29-62ba:~# awk<br />BusyBox v1.22.1 (2014-12-12 10:08:21 CET) multi-call binary.</code></p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6432015-01-19T00:15:00ZJorge L. Florit
<ul><li><strong>% realitzat</strong> ha canviat de <i>0</i> a <i>50</i></li></ul><p>The blank fields issue should be solved with commit 148748f3.<br />If you want to test it without flashing again, you can replace /etc/qmp/qmp_guifi.sh with the fixed file [1].</p>
<p>[1] <a class="external" href="http://dev.qmp.cat/projects/qmp/repository/revisions/148748f338fd6a6079afd7224f3712cd52e8cd84/raw/packages/qmp-guifi/files/etc/qmp/qmp_guifi.sh">http://dev.qmp.cat/projects/qmp/repository/revisions/148748f338fd6a6079afd7224f3712cd52e8cd84/raw/packages/qmp-guifi/files/etc/qmp/qmp_guifi.sh</a></p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6442015-01-19T09:44:38Zguifi pedro
<ul></ul><p>now it works. How fast Jorge (less than 24h, what's that! :P), thanks!</p>
<p>- formatting in the web is awful<br />- another easy way to solve https is change this text:<br />Specify the guifi.net URL of the device:<br />with this other:<br />Specify the guifi.net URL (HTTP) of the device:</p>
<p>seems that curl is not included in qMp 3.1, so perhaps is a bad idea, it means more size for images (thinking about 4MB flash devices), no?</p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6472015-01-19T17:30:15ZJorge L. Florit
<ul><li><strong>Estat</strong> ha canviat de <i>En progrés</i> a <i>Resolt</i></li><li><strong>% realitzat</strong> ha canviat de <i>50</i> a <i>100</i></li></ul><p>"- formatting in the web is awful"</p>
<p>It is because of the new theme. It's now fixed in commit cf62ebab [1].</p>
<p>"- another easy way to solve https is change this text [...]"</p>
<p>I noticed that curl is not included, so while wget in busybox doesn't support HTTPS I've added the purposed solution temporarily (in commit eb8c6514 [2]): an error message notifying that HTTPS URLs are not supported yet and the text specifying "HTTP URLs" in the web interface.</p>
<p>[1] <a class="external" href="http://dev.qmp.cat/projects/qmp/repository/revisions/cf62ebabf0b072a075bb326b3460ceefae383adc">http://dev.qmp.cat/projects/qmp/repository/revisions/cf62ebabf0b072a075bb326b3460ceefae383adc</a><br />[2] <a class="external" href="http://dev.qmp.cat/projects/qmp/repository/revisions/eb8c6514dab5bf80e8a96687aee1209e5afa744c">http://dev.qmp.cat/projects/qmp/repository/revisions/eb8c6514dab5bf80e8a96687aee1209e5afa744c</a></p> qMp (Quick Mesh Project) - Packages - Error #341: [guifi qmp 3.1] not workinghttps://dev.qmp.cat/issues/341?journal_id=6762015-04-07T14:42:06ZJorge L. Florit
<ul><li><strong>Estat</strong> ha canviat de <i>Resolt</i> a <i>Tancat</i></li></ul>