GithubHelp home page GithubHelp logo

yarhrn / heartwear Goto Github PK

View Code? Open in Web Editor NEW

This project forked from domi2803/heartwear

0.0 1.0 0.0 3.09 MB

WearOS app to integrate your heart rate sensor into OBS

License: GNU General Public License v3.0

JavaScript 37.72% HTML 9.65% CSS 7.89% Kotlin 44.74%

heartwear's Introduction

HeartWear - Add your Heartrate into OBS

Heartwear is an app for wearOS Smartwatches that can be used to integrate the heart rate sensor of your watch into your livestreams. The app uses Google Firebase as backend and stream your heart rate to a website with a personalized embed link, which can be integrated into OBS or any compatible streaming software as a Browser Source.

demonstration picture

How it works

  • Download the app on your smartwatch
  • Login with your Google Account on the smartwatch
  • Go to heartwear.web.app and login with the same Google Account
  • Grab the embed link and paste it into a OBS browser source
  • That's it! :)

This repository contains the full source code for the app. You can follow along if you want to deploy HeartWear on your own Firebase backend. If you just want a working version, you can buy the App on the Play Store and support me directly [ much apprechiated :) ]

Deploy it yourself

First, start by creating a firebase account at https://firebase.google.com/. The free plan will propably do. Create a new project on the Firebase console and then follow along with these steps:

Go into the backend folder and run

npm install

create a React build with

npm run-script build

Install the Firebase SDK with

npm i -g firebase-tools

and login to your Firebase account

firebase login

Run:

firebase use --add

and select the project you made on firebase.

Then run:

firebase deploy

Lastly, go into your Firebase console and go into Authentication. Go to Sign-In methods and enable Google Sign In.

And now you should be good to go on the backend side.


Go to your firebase dashboard and create a new Android app. Fill out the form and download the google-services.json file and copy it into /wearOS-app/app (there should be an empty file that indicates where to put the file)

Open the folder in Android Studio. You can edit the activity_main.xml so that it shows your url instead of mine.

Go to Gradle and select Android -> Signing Report and grab the SHA-1 and SHA-256 of the Debug Keystore that will be shown in the console. Go into your firebase console and add the hashes to your Android application. This is necessary so that Sign In with Google works properly.

Now compile the app and you should be ready to go.

Have fun! :)

heartwear's People

Contributors

domi2803 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.