To get the temperature as live data I needed to choose a website. To keep it simple I went onto BBC weather and their 3 day forecast. I chose the location of London because it can give an average of such a big space and the University is close to the city.
Here is the segment I created for the live temperature:
The output at the bottom is the temperature that I would input into the top of my temperature segment. However, to keep my patches neat I decided to make this a sub-patch and link them in that way.
Here is the temperature with the sub-patch linked:
Even this seemed untidy to me so I eventually decided to put all of the temperature (above) into a sub-patch. So here is the final main patch:
I'm very happy with how this looks in terms of tidiness. And everything still works.
Here is the renderer now that I have finished:
So my project includes two sets of live data: the time from the PC directly and the temperature.
No comments:
Post a Comment