Join Carlos Rivas for an in-depth discussion in this video Solution overview, part of Code Clinic: Java.
- [Instructor] Let's take a look…at our approach to this problem.…Since our dashboard's an open source tool,…not a specific to this problem,…all we need to do is feed it with our data…and then configure it to display it.…Looking at this code,…we can see that we have three methods…that make up our solution.…The service method, seen here in line 29,…that responds to all rest API calls made…to the endpoint/data of our server.…
Line 47 shows us a loadData function…that we will use to read the provided comma-separated file…from disk into several arrays in memory.…Finally, line 71 is the start of our main method…that boots our embedded Tomcat web server,…calls loadData,…and starts our rest API.…Let's take a look at how our front end…polls the web service to get the data.…
Back here in our dashboard,…we can see how we can define a data source in freeboard.…First we chose a type, in this case a JSON rest API.…We give it a name, in this case Engine,…and we provide the URL, which is our local machine…on port 8080 and the endpoint/data.…
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, PHP, Python, and Ruby.
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.