Table of Contents
Funny project. Easy to use!
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
(your output should look something like this if and only if you have those tools installed. if not, consider installing them! duh)
- Clone the repo
git clone https://github.com/alexinabox/custom-hds
- Install NPM packages
npm install
- Edit the config.js file! (dont copy the following as a whole since comments dont work in json syntax)
{
"userName": "larry", <-- the discord user to mention in the webhook
"port": 3476, <-- port goes here (left as default in most cases)
"timezone": "Europe/Amsterdam", <-- your timezone goes here
"data_save_type": "json", <-- can be "json", "txt" or "both"
"discordAppID": "1033806008008581240", <---- leave as default for fancy heartrate icons (or create your own application at https://https://discord.com/developers)
"webhookURL": "https://discord.com/api/webhooks/<id>/<secret>", <--- add your discord webhook like this
"heartRateMessageID": "<id>", <---- message ID of the heartRate message
"oxygenSaturationMessageID": "<id>", <---- message ID of the oxygen message
"pedoMeterMessageID": "<id>", <---- message ID of the steps message
"speedMessageID": "<id>", <---- message ID of the speed message
"focusStatusMessageID": "", <---- message ID of the focus message (WIP)
"forwardingDestination": "", <--- the IP adress of any other custom-hds server you want to forward data to (dont forget the port!)
"secretPass": "secretPass" <--- a secret pass like this (use case: http://example.com/secretPass) (optional)
}
-
open the desired port in your firewall (optional)
-
start the server:
node index.js
-
in the watch: click on advanced ip entry and add the ip your custom-hds server is running on
- profit
The daemonization of this application ensures that it always runs in the background and also starts itself on boot!
!!! WARNING !!! Before you deamonize this application, make sure to run custom-hds at least once on your machine using the commands above!
Create the windows backround service:
cd misc/
node createWinSvc.js
Remove the windows backround service:
cd misc/
node removeWinSvc.js
Like you can have your health data inside discord webhooks now. wooho.
For more examples, please refer to the non existent Documentation
- dynamic icon showing the heartrate as a neat graphic (80% done)
- endpoint for iPhone Focus status
- turing machine
- my teacher would love it!
See the open issues for a full list of proposed features (and known issues).
Bla Bla Bla learning bla bla bla open-source bla bla bla greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request (write something neat so i know whats goin on)
Distributed under the GNU General Public License v3.0 License. See LICENSE.txt
for more information.
AlexInABox - @wilder_Alex__ - [email protected]
Project Link: https://github.com/alexinabox/custom-hds
Website: https://alexinabox.de
Minor-Implementation-Example: https://alexinabox.de/me