LOGIN

Hacking The Mixpanel API with Raspberry Pi 3

Tapping into the Mixpanel API from my Pi 3

JOIN PROJECT
11 Contributions Made
7 Milestones
4 Participating Countries
Electronics
Passion

Tapping into the Mixpanel API from my Raspberry Pi 3

HACKATHON

January 12th - February 21th, 2017

Participating in Collaborizm Winter '17
Virtual Hackathon

(This Project is participating in the hackathon)
HACKATHON

Running February 10th -
March 31st, 2017

Participating in Kandy Software
Library Hackathon!

$4,000 in Prizes. Let's do it!

View hackathon details
STORY

Project Complete!!! 😃 😃 😃 😃 😃

Special thanks to Harsha Alva and all who contributed!!! We did it! This has been an incredible learning experience across the board – from dual h bridge motor shield control, raspberry pi 3, node.js, gpio control, npm, and more. Wow. Unbelievable.

Project Overview

I continue to stress that Arduino is a real, yet amazing addiction. This weekend, I had an intensely strong urge to start a new Arduino Project. The thing is, I did not want this to be a meaningless project, even if it is primarily to learn.

The Prototype is Working!!!

My top 2 ideas initially

  1. Sling shot for the office

  2. A wifi + arduino + lcd project that could somehow tap into Mixpanel data

I decided to go with option 2 because it seems like a much more effective learning project, with knowledge we can apply later.

How the Project Will Work

It’s pretty simple to understand.

–> Wifi card taps into mixpanel’s api, pulls the most recent event to happen on Collaborizm Live Server --> Display on LCD.

how it will appear

circuit diagram

https://circuits.io/circuits/2923704-mixpanel-live-activity-to-lcd

Current Task in Progress

There are 2-3 active tasks in Progress. The reason why I say “2-3” is because these 2-3 tasks will work together so they must be tackled at similar times. Please see the Project Outline Card below this section to learn about more details of the tasks in progress.

Teammates & Contributors I’m Looking For

#Developers
Object Oriented Programming – I need an OOP experienced programmer to help me understand how OOP works

#Arduino – experts in WiFi connectivity and making HTTPS Requests **off the ‘Duino’

#LCD – experts in connecting to LCD

#C Programmers

#iOT People will also be extremely helpful for the overall assembly and execution of the Project

Understanding Mixpanel

www.mixpanel.com

Mixpanel is an extremely powerful data analysis tool for tech companies, specifically companies with web based/app based software, like Collaborizm 😃.

All you really need to know for this project are some basic things:

  • Mixpanel is passed EVENTS from whatever web/app you have – so for example on Collaborizm, one event we track, is “REPLY”.

  • You can track any event you want in your Projects

  • EVENTS are attached to EVENT PROPERTIES – like user city, device, country – eg. a REPLY event might tell us if the user was on an Android, in Mumbai, India when that REPLY event was executed.

For this Project that’s really all you need to understand. I will supply more information on mixpanel, and mixpanels API in Supporting Material Section below.

Github

https://github.com/aharshac/Collaborizm_Mixpanel_IoT

Why I’m Passionate About This Project

I am passionate about this Project because I am obsessed with the Internet of Things, Hardware, and Arduino, as well as data analysis.

Current Code File: Just a draft…to organize the different sections

Sections in Arduino File

Section 1: Import libraries
Section 2: Initialize Wifi Module and Connect to network, Send Proper Request to Mixpanel API
Section 3: Retrieve Request, Process Request, Store properly
Section 4: LCD

Supporting Material & Info

LCD Connection

https://ictronic.wordpress.com/2016/07/02/interfacing-16x2-lcd-with-arduino-without-potentiometer/

http://www.instructables.com/id/Connecting-an-LCD-to-the-Arduino/?ALLSTEPS

Decoding a JSON Response on Arduino

https://github.com/bblanchon/ArduinoJson/wiki/Decoding-JSON

WiFi Connection & HTTPS Requests From Arduino

https://www.arduino.cc/en/Reference/WiFiClientConnect

www.mixpanel.com
https://mixpanel.com/help/

PROJECT OUTLINE & PROGRESS

Team Micro-Checklist

Completed List:

  • Circuit Diagram Completed: WiFi Module Added

  • Circuit Diagram Completed: Arduino UNO Board Added

  • Circuit Diagram Completed: LCD Connected

  • Initial attempt at Arduino Code completed

  • Circuit Diagram Completed: Power (9V) connected

In Progress List:

  • Must successfully connect to Mixpanel API and pull data FROM Arduino

  • Must successfully STORE the JSON response from Mixpanel API to Arduino

  • Must extract the most recent event and add it to an Object which will be used in the LCD function to continuously loop through this Object to display most recent event (and associated properties)

  • Github Documentation

  • Improving hardware

  • Debugged Script

  • Assemble Circuit

  • Film it in action

  • Add new ideas to pull from Mixpanel

To Be Completed:

https://www.youtube.com/watch?v=VfBbsbBWWa4

Tools

https://pinout.xyz/pinout/pin12_gpio18


Discuss Hacking The Mixpanel API with Raspberry Pi 3

Start a discussion...
😀
PREVIEW
Title
Post
Start typing..


style
Submit
Filter by
Tasks
Questions
Ideas
Inspiration
Milestone
Tutorial
Show & Tell
Hacking The Mixpanel API
23
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED