Skip to content

ltzehan/thermobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thermobot

Rewrite of the original temperature-ops-bot that was deployed on GCP.

Setup

Requires the following to be installed:

Tokens are expected to be available in the secrets.json file as:

{
    "telegram-bot": "BOT TOKEN FROM TELEGRAM API",
    "project-url": "GCP PROJECT URL / LOCAL DEV SERVER URL"
}

Local development

gcloud config set project <PROJECT_NAME>

# Start the datastore emulator server
gcloud beta emulators datastore start

# Export emulation configuration
gcloud beta emulators datastore env-init > set_vars.cmd && set_vars.cmd && del set_vars.cmd

set FLASK_ENV=development
python -m src.wsgi

# Expose server to internet-facing URL
ngrok http 5000 -region ap
# Configure bot webhook
python webhookHelper.py

Running tests

pytest -q n auto --tb=no

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages