Roxanne and I decided to specify a concept for the RESTful interfaces assignment.
I am still unsure about the concept of a RESTful interfact, and how it differs from how the internet usually works. It would help to get an example of a non-RESTful interface on the internet. But it seems like RESTful describes how we usually interact with the internet. For example, I go on YouTube, I type in “flock of seagulls” in the search bar, and the website returns a representation of their stock of resources corresponding to flock of seagulls. I then select the video I want, and YouTube provides me with that resource. To my knowledge, this is how all websites work. Is this is RESTful?
a website-controlled 50-pixel LED strip, where each user will be able to see what color the current strip is and what pattern is being run on it.
The user will be able to select their own color, and select one of three patterns on it (the patterns based on fastLED and Neopixel demo-reel default patterns).
The interface will be based on the last user’s commands, so if you change the color/pattern of light, it can be changed the moment after you submit it. (This will be one of the challenges to the interface, how to handle competing user commands).
My house Wi-Fi has the internet IP address of 192.168.0.8. I learned that there was a public vs private IP addresses and that the 192.X.X.X range was reserved for private use.
This afternoon on Wireshark, I ran a short 64 second trace that captured 4049 packets. I based this analysis on that trace.
How much of your network traffic is inbound?
the filter ip.dst==192.168.0.8 yielded: 2502/4049 packets (61% of traffic inbound)
How much is outbound?
the filter ip.src==192.168.0.8 yielded: 1466/4049 packets (36% of traffic outbound)
What portion of it is HTTP traffic?
I learned that HTTP traffic is found using TCP filter port 80. I did not find any packets were HTTP.
How many devices are active on your network?
If all the devices connected to my wifi network are 192.168.X.X then simply all devices are different devices using that wifi. I also learned these addresses are called IPv4 addresses.
192.168.0.6 that’s me
What are their relative levels of activities?
it was mostly my address and the router address that was active (out of the 192.168.X.X addresses) since I was the only on home at the time. Other roommate was home too, but not sure how active they were. I am unsure why my traffic show up as my IPv4 if everything to the internet went through the router anyway?
What sites are the most common sources and destinations for your traffic?
The most common destinations from my router are GQUIC to “Payload (Encrypted)” or TCP to “50XXX [ACK]”
The ball drop game took some doing but I managed to figure it out.
Most difficult was figuring out how the link up the Arduino Sketch to the Processing Sketch and ITP Sandbox Server. To be honest, I’m still not sure how it all works. All I know is that I stuck the BallDropServer IP address from the Sandbox and stuck it into the Arduino sketch, the BallDropClient sketch and it started working! (See video above).
Instead of a joystick, I used two potentiometers for the X and Y axis respectively. It was a while since I used both a button and pots, so I had to test both separately on a isolated Arduino sketch.
Here’s a photo of the way the Arduino was connected: