The Relicans

loading...
Cover image for Let's Laugh Together

Let's Laugh Together

sisodiya2421 profile image Abhishek Sisodiya ・3 min read

What I built

I have built a web application that detects a smile on your face and then shows a random funny sticker, while you are watching a funny video. The video that my web application suggests is randomly picked every time you load the page. It also shows the average number of smiles made by all the application viewers and the average number of videos they watched using New Relic One graphs.

Category Submission:

Out of this World

App Link

https://lets-laugh-persistent-oryx-ce.eu-gb.mybluemix.net/

Screenshots

Alt Text

Alt Text

Alt Text

Alt Text

Alt Text

Alt Text

Description

The application uses face-API to recognise faces and counts the number of times you have smiled. Every time you smile while watching a video, a new funny sticker pops up to make you smile even more. The videos are picked from YouTube and the stickers are used from GIPHY. The smile count and video watch count is sent to New Relic One as custom attributes using Browser Integration via script. The data is then used to generate insights about what is the average number of smiles made by all the users, maximum videos watched etc.

Link to Source Code

lets-laugh

A web application that detects a smile on your face and then shows a random funny sticker, while you are watching a funny video. The video that my web application suggests is randomly picked every time you load the page.

Steps to set this up:

npm install

npm start
Enter fullscreen mode Exit fullscreen mode

After running the above commands, open http://localhost:8080/ on your browser and allow the camera access.

You can view the working App in the link below

App URL: https://lets-laugh-persistent-oryx-ce.eu-gb.mybluemix.net/




Permissive License

MIT

Background

While thinking about making something "Out of this world" the one thing that I noticed is that when we create awareness about climatic change, it creates fear inside humans about the risks that lie in our future and yes this fear is more effective in creating awareness about climate change's risks and motivating people to intend to engage in direct action. On the other hand, if we portray this issue in a humorous way humans are more likely to partake in activism, recycle more and believe climate change is risky. So I thought of making something that can make humans smile and even count those number of smiles.

How I built it

While creating this application I used the APM Service which provides me with vital information about the app's performance and lets me know how much traffic my application is getting and what is my web transaction time, throughput and response time. I have created Alert conditions by creating a policy that if my web response time is greater than 5 seconds for more than 5 minutes, it will alert me by sending me an Email.

I have then added a Browser Integration script to send custom data to New Relic One so that I can monitor the average smiles and average videos that people have watched. The New Relic Insights has helped me to get around building graphs and integrating them into my application.

Additional Resources/Info

In the process of building my “Out of this World” app, here’s what I learned about observability and technology in the fight against climate change...

We as technologists can help create options for policy-makers, we can create tools and systems that can combat climatic change and in order to stop dumping carbon dioxide into the sky, the world needs to generate its energy “cleanly” using solar, wind, geothermal, hydroelectric, biomass etc., for using them we need new technologies to be built which must be cost-effective and efficient. For example, building AI-based drones that can detect failures in large-size wind turbines and help maintain them by detecting corrosion. Another use cases like building systems or software that help distribute energy in a much efficient and monitored way like building Smart-Cities and AI-based vehicle that uses AI to control its energy consumption.

Even for something as physical as power generation, the right software can make a significant contribution such as using probabilistic modelling to estimate wind capacity at a location. various start-ups are working on building such advanced software to combat climate change.

Scientists and Researchers often build or use tools that help them analyse and study climatic change. For example, most of the statistical studies are done using R language or MATLAB and one thing that I have now come to know is that we as technologists can also use New Relic to study climatic change as it has an awesome set of tools that can easily help to monitor large datasets and design efficient systems using this tool. Giving each individual tools to combat climatic change can create a big cumulative effect.

Climate change is the problem of our time. It is everyone’s problem, but it’s our responsibility to work magic using technology to help fight climatic change.

Discussion (0)

pic
Editor guide