Skip to content

Remote config interface for OpenWrt, via cgi by json.

License

Notifications You must be signed in to change notification settings

dupidog/openwrt-cgirpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgi-rpc

This is the remote config interface for OpenWrt, via http protocol, transacted by cgi, formatted in json. Please refer to api.txt for more about the api. All parameters can be passed either via GET or POST methods.

To make ipk package, clone this repository to package directory under the openwrt build root or sdk, then type

make V=s package/cgi-rpc/compile

Api query example:

QUERY='{"login":"devboard","method":"get","target":"wan"}'
curl -d "rpc=$QUERY" http://192.168.10.1/cgi-bin/cgi-rpc

or

QUERY='{"login":"devboard","method":"get","target":"wan"}'
curl http://192.168.10.1/cgi-bin/cgi-rpc?$QUERY

About

Remote config interface for OpenWrt, via cgi by json.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published