Skip to content

ashleyhindle/weightlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram WeightLogBot

Send it your weight; it gets logged.

To get started add the bot as a Telegram contact https://telegram.me/WeightLogBot then send it your weight

Commands

/output - Sends you a line chart and a table of your weight
/api - Sends you the link to your JSON API
/help - Gives you help

API

GET your data out to use as you like:

Endpoint: http://weightlog.ashleyhindle.com/?token=[apitoken]

I want my own

Go to https://telegram.me/BotFather, send him /newbot and go through the motions until you get a token.

git clone git@github.com:ashleyhindle/weightlog.git; cd weightlog; composer install

Run the bot: TELEGRAM_BOT_TOKEN='tokenfrombotfather' php bot.php

Go to https://telegram.me/[yourbotname] and send it your weight

About

Telegram bot for logging your weight, with a JSON API to use your data as you wish

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published