Changes

Line 17: Line 17:  
===Obtaining a session ID===
 
===Obtaining a session ID===
 
----
 
----
To log in to the router via JSON-RPC you will need software capable of sending '''HTTP POST''' requests to the router. The simplest solution is to install an add-on similar to Firefox’s "'''Poster'''": '''https://addons.mozilla.org/en-US/firefox/addon/poster/'''.  
+
To login to the router via JSON-RPC you will need software capable of sending '''HTTP POST''' requests to the router. The simplest solution is to install an add-on similar to Firefox’s "'''Poster'''" (download link '''[https://addons.mozilla.org/en-US/firefox/addon/poster/ here]'''). The add-on can then be launched it by opening the Mozilla Firefox browser and pressing '''Ctrl+Alt+P'''.  
   −
Once you've installed this add-on, you can launch it by opening the Mozilla Firefox browser and pressing '''Ctrl+Alt+p'''.  
+
Alternatively, if you're using Google's Chrome you can get '''"Chrome Poster"''' (download link '''[https://chrome.google.com/webstore/detail/chrome-poster/cdjfedloinmbppobahmonnjigpmlajcd?hl=en here]''').Once you've installed the add-on, an icon shaped as the letter "P" will appear in the top right corner of you browser's window. Click it to launch "Poster":
    +
[[File:Configuration examples json-rpc chrome poster how to v1.png]]
   −
If you're using '''Google Chrome''', you can get '''"Chrome Poster"''': '''https://chrome.google.com/webstore/detail/chrome-poster/cdjfedloinmbppobahmonnjigpmlajcd?hl=en'''.
+
The rest of this guide will focus on Firefox's "Poster", but feel free to follow it step-by-step whichever method you chose as all the steps bellow apply to "Chrome Poster" and similar add-ons as well.
 +
----
 +
First, you must obtain a Session ID. In order to do so, you must send an HTTP POST request to the router asking for it. Enter the router's '''LAN''' IP address (default: '''http://192.168.1.1/ubus''') into the URL field if you're logging into the router locally. Or if you wish to log in remotely, enter the '''WAN''' IP address instead.  
   −
Once you've installed this add-on, a "P" shaped icon will appear in the top right corner of you browser's window:
+
Next, enter the router's user name and password into the '''User Auth.''' field. Then paste this command into the '''Content to send''' field and click '''Post''':
 
  −
 
  −
[[Image:Configuration examples json-rpc chrome poster how to.PNG]]
  −
 
  −
 
  −
Click it to launch Chrome Poster.
  −
 
  −
The rest of this guide will focus on '''Firefox's Poster''', but feel free to follow it whichever method you choose as all the steps bellow apply to '''Chrome Poster''' and similar add-ons as well.
  −
 
  −
 
  −
In order to obtain a Session ID you must send an HTTP POST request to the router asking for it. To do so, enter the router's '''[[LAN]]''' IP address (default: '''http://192.168.1.1/ubus''') into the '''URL''' field if you're logging into the router locally. Or if you wish to log in remotely, enter the '''[[WAN]]''' IP address instead.
  −
 
  −
Next, enter the log in user name and password into the '''User Auth.''' field. Then paste this command into the '''Content to send''' field and click '''Post''':
       

Navigation menu