GithubHelp home page GithubHelp logo

haxisme's Introduction

haxisme

This is the code for the Website on haxis.me.

Building

  1. Run npm i in both the website and the server directory.
  2. Fill config.ts located in the server directory.
  3. Run npm run build in the website directory.
  4. Run npm start in the server directory.
  5. Click the Spotify link in the console and sign in to Spotify.
  6. Now the website is deployed at localhost:3000. Have Fun!

Sending Battery Levels to the Website (iOS)

  1. Put your device names in config.ts in the server directory.
  2. Create an iOS Shortcut sending a get request to /api/battery with a percentage parameter, a name parameter and a password parameter containing your set password in your config.ts. The link should look like this: https://<yourdomain>/api/battery?percentage=<Battery Percentage>&name=Iphone%20X&password=<Password>.
  3. Create Automations to run the Shortcut every 30mins.

Getting All Config Values

Discord

Bot Token

  1. Go to the discord developer dashboard
  2. Create a new Application
  3. Click on Bot
  4. Create a new Bot
  5. Click on Copy Token

User ID

  1. Go into your Discord Settings
  2. Go to Advanced
  3. Turn on Developer Mode
  4. Right-Click yourself
  5. Click on Copy ID

Guild ID

  1. Go back to the discord developer dashboard
  2. Click on your Application
  3. Click on OAuth2
  4. Check the bot checkbox
  5. Click on Copy
  6. Open the copied link
  7. Select your Server
  8. Click on invite
  9. With Developer Mode turned on (Step 1-3 from User ID instructions) right-click your guild and click on Copy ID

Spotify

  1. Go to the Spotify Developer Dashboard
  2. Create an App
  3. Copy the shown Client ID and paste it into your config
  4. Click on Show Client Secret and copy and paste it to your config
  5. Click on Edit Settings
  6. Add your redirect urls (Always https://<yourdomain>/callback/) and paste that url also in your config
  7. Click on Save

Api Password

Just generate a random Password, you'll need it when you want to send battery data to the website

Devices

Type your exact Device Names used when sending Battery Data

haxisme's People

Contributors

bbn6775 avatar gregtcltk avatar schlauer-hax 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.