Using Arduino to read data off website

I am trying to host a website that has an ON and OFF button ( I think I will need a server to save that data). The goal is for the Arduino to receive data from the website (or server) and to turn one of the light on and off depending on the button pressed.

Any idea on how I could implement this? I was thinking of using Node.j.s but all the project I have seen involve serial port. I want to implement all of this on Amazon web server.

This question gets asked a lot.

The goal is for the Arduino to receive data from the website (or server)

Are you saying that your Arduino has an ethernet board and fixed IP address and your firewall is all configured so that your external website has access to the Arduino,.

This sounds very unlikely, as most people are not on fixed IP addresses for a start.

I was thinking of using Node.j.s but all the project I have seen involve serial port

umm. What do serial ports have to do with the internet.

Are you saying that your Arduino is connecting to a PC via serial and the PC is retrieving data and sending it to the Arduino?

I'm not sure why you'd need to use Node.js even for this.

rogerClark:
This question gets asked a lot.

The goal is for the Arduino to receive data from the website (or server)

Are you saying that your Arduino has an ethernet board and fixed IP address and your firewall is all configured so that your external website has access to the Arduino,.

This sounds very unlikely, as most people are not on fixed IP addresses for a start.

I was thinking of using Node.j.s but all the project I have seen involve serial port

umm. What do serial ports have to do with the internet.

Are you saying that your Arduino is connecting to a PC via serial and the PC is retrieving data and sending it to the Arduino?

I'm not sure why you'd need to use Node.js even for this.

I was looking at this package:

that allows you to use Node.j.s to connect to the Arduino.

It seems that you need to use the serial port of the Arduino to do so. Is it possible to connect to the Arduino without using the serial port? I have an ethernet shield.

frostkarrotor:
I want to implement all of this on Amazon web server.

How do you propose to communicate between your Amazon web server, and your Arduino?

Building a system where a light is instructed from a web page is often done by using the arduino as a web server and hosting the web page on it. The arduino has limited resources so the pages it serves generally can't be very big or complex, but people have done home control using an Uno in this fashion.

You'll still need to solve the issue of a static IP if you want to connect to the arduino from outside your local network - services such as Dyn or no-ip can do this for you.

I was planning to use Node.j.s and socket.i.o to establish connection between the Amazon web server and the Arduino itself.
However, I am not exactly sure how I would do it.

I thought about using the Arduino to host the web server and web site, but if I do so, I will be limited on the design and functionality of the website.