Yun Server/Client using Rest

Hey,

I'm wondering if this would be too much for an arduino to do:

I want to make the yun both a server and a client.
The server would host an html page with php that gets json information from an only api.
I'd have a yun client that would request the api information from the .html file on the server.
The html and yun client would constantly loop for realtime results.
If certain values change on the api, it would trigger events via the arudino pins.

How would I go about doing this? I can't seem to find any documentation on this. My knowledge of accessing rest information with Yun is also minimal, but it seems from the documentation that it shouldn't be too hard to do.

Any help would be great!

Thanks.

:slight_smile:

It would be simplest to program the Arduino to execute a program on the Yun that checks the status of the remote document, and the Arduino would re-execute that program repeatedly at whatever interval you need.

There's no way for a Yun process to trigger events or cause pin value changes on the Arduino. The Arduino must always poll the Yun in some way for new data so you're not saving yourself any scheduling hassle in your Arduino script in that respect.