Introduction: Meter Time in Front of PC
I propose reducing the time that I spend in front of the PC. For that goal, I need to measure that time.
I decided to design a device that measures the time that an object stays in front of my computer.
I have used Adafruit OI platform to store and display the data in a dashboard.
In this post, I explain how I did that device.
Step 1: Have a Hand All Components
It always is recommended to have a hand all components.
That will save you time.
Step 2: Let's Connect Them
Make the connections indicates in the diagram.
Warning: Remember ESP8266 works with 3.3 V. You have to connect the 5 V to the ESP8266 voltage input (Vin).
Step 3: Install NTP Library
If you do not have the NTP client library you show install it before compiling the code.
Step 4: Upload the Code
The code has two files. In the config.h you set your Adafruit credentials and network configuration like wifi name and password.
Step 5: Set Adafruit IO
You should open an account on Adafruit IO. After that, you need to know how it works.
Check the link below to know about Adafruit IO, there you know how you can use Adafruit the credentials, how set the feeds, and how to configure the dashboards.
Step 6: Test It and Enjoy
I show a picture of my dashboards.
I hope you enjoy this project.
Note: If you are having issues connecting, please ensure you have the latest Adafruit IO Arduino library.
It always seems impossible until it’s done. Nelson Mandela.