Skip to content

Instantly share code, notes, and snippets.

@bjarneeins
bjarneeins / hs110-data-collect-influxdb.py
Last active October 23, 2022 11:40 — forked from rbaarda/hs110-data-collect.py
Python3 script which collects data from a HS110 power plug and tries to either send it to a local or a remote Influxdb database.
import sys
import time
import socket
import json
import threading
import requests
import argparse
from struct import pack
# needed to disable ssl warnings