diff --git a/public/posts/1-1-16.html b/public/posts/1-1-16.html index c8be7ab..9c02df2 100644 --- a/public/posts/1-1-16.html +++ b/public/posts/1-1-16.html @@ -18,7 +18,7 @@
Above is the GET request that is sent to the server from the ESP8266. Data is tranferred through GET parameters. The key is an authentication code that I set to prevent unwanted HTTP requests. This is similar to an API key. Below is the code implemented to handle the HTTP request from the ESP8266.
- +Now that I know what information I need I can start developing my REST API. I have a MongoDB collection called "temperature", which stores temperature, humidity, location, and time updated. Updated is a type of Date, which I will use in all of the queries to group by each day. To do the grouping in MongoDB I needed to use the aggregation functionality of MongoDB. Aggregation allows me to essentially perform queries on top of queries using the MongoDB "pipeline". This is similar to an SQL query when a selection is performed within a selection.
- +/api/sensorbylocation/year?location=Winona%20Apartment&year=2016
- \ No newline at end of file +