Skip to content

Instantly share code, notes, and snippets.

View LinuxChristian's full-sized avatar

Christian Brædstrup LinuxChristian

  • Copenhagen, Denmark
View GitHub Profile
@LinuxChristian
LinuxChristian / send_to_brewers_friend.py
Last active October 23, 2019 19:22
This example reading sensor information from Home assistant and sending it to the brewers friend API
# Example of reading sensor information from Home assistant
# and sending it to the brewers friend API
#
# Set this script to transmit data to Brewers friend every 30 minutes by adding
# this line to your crontab,
#
# */30 * * * * /usr/bin/python3 /<PATH TO YOUR SCRIPT>/send_to_brewersfriend.py
#
from requests import get, post