Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Hans Scharler
Published © MIT

Uber Ride Analysis with ThingSpeak and MATLAB

Learn how long it will take to get an Uber Ride in your location using ThingSpeak and MATLAB Analysis.

BeginnerProtip1,883
Uber Ride Analysis with ThingSpeak and MATLAB

Things used in this project

Hardware components

Uber API
×1

Software apps and online services

ThingSpeak MATLAB Analysis
ThingSpeak MATLAB Visualizations
ThingSpeak ThingHTTP
MATLAB
MATLAB

Story

Read more

Code

MATLAB Code for Uber Analysis

MATLAB
This MATLAB code reads data from the Uber API and stores it in a ThingSpeak channel.
% Read the ThingHTTP for 'Uber Ride Estimate'
data = webread('https://api.thingspeak.com/apps/thinghttp/send_request?api_key=XXX')

% Convert the response to a number
eta = str2num(data);

% Write the data to the 'Uber Ride Estimate Data' ThingSpeak Channel
thingSpeakWrite(<Channel ID>,eta,'WriteKey','YYY');

Credits

Hans Scharler
15 projects • 87 followers
IoT Engineer, Maker - I have a toaster that has been tweeting since 2008.
Contact

Comments

Please log in or sign up to comment.