Agent Code for "Analog Input (Potentiometer)" Tutorial

Hello everyone! I am new to electric imp and was going through tutorials when I started to wonder that what would be the agent code for the following example tutorial.


why do you want agent code for this??
However, you can pass pot-values to the agent.

My initial post was “

Since no one was able to help me with it, I started to explore another way of asking the imp for the potentiometer value and post it on the web app using google script. Is it possible I can grab the potentiometer val by asking a url using javascript?

well, this is really a javascript question, but from the imp-side it is possible.