OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 383902.0
October 12, 2008 11:32 PM

Categories: WGR614L (Legacy Product)

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

mycal

Member
Joined: 10/07/2008

Is there a current web API for reading and writing nvram variables via the webserver?

I'm looking at the asp_handler.h, and I'm guessing that each line in asp_handler.h is an index that corralates to a values specified in the HTML to fill in, for example.

index 12 is  {"nvram_get(\"wan_proto\");", NULL},)

to fill this value from nvram in the html you would:

<INPUT name=wan_proto type=hidden value= "<%12%>">

I see some form targets are things like "ether.cgi" but I cannot seem to find were these are generated or how to make my own.

So having said all that, now can I manipulate my own variables using this interface?  Also controling reboot would be good.

Thanks,

M

----
Universal Remote access www.yoics.com

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

October 13, 2008 10:25 AM

This is for the MOR firmware.

----
Universal Remote access www.yoics.com

October 29, 2008 1:49 AM

Thought I did a response - but looks like finally it was not posted.
Hope you managed to change the nvram variable? If so please share your experiences.

You seem to be on the right track - but unfortunately the cgi code is not open so even with this interface the web interface will be pretty much limited.
You may also try your hands with other open source options.

October 29, 2008 1:53 AM

No never got it. Not going to worry about it. If it needs to be modified it will be up to you guys as the Demo is in Netgear's hands now.

But I will have to say the MOR firmware is a dead end if you cannot do this or at least have a way to add your own CGI.

----
Universal Remote access www.yoics.com

October 29, 2008 1:58 AM

If by MOR firmware you mean -

http://www.myopenrouter.com/download/10360/Source-Code-WGR614L-MyOpenRouter-I...

then the cgi interface is wide open and is easy to modify.

While the Router itself is a good hardware platform for developing open source code and running dd-wrt or tomato, Netgear's preloaded retail version of firmware is not really for the open source community.

November 8, 2011 2:50 PM

Let me try to resurrect this old thread....
I got as far as mycal with the web server -> nvram link, but I'm not sure how the asp_handler.h gets included in the C code - I grepped through the whole MOT tree and didn't find it included anywhere. Anyone know how this works?

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window