Skip to content

Instantly share code, notes, and snippets.

@cagnulein
cagnulein / ypyt_sensor_parse.py
Created December 9, 2019 07:42 — forked from zerog2k/ypyt_sensor_parse.py
reads and parses sensor data of JQ-200 / JQ-300 from ypyt cloud for given device token
#!/usr/bin/env python3
""" reads and parses sensor data from ypyt cloud for given device token """
# see https://github.com/xoseperez/espurna/issues/1644 for more context
import json
import os
import sys
import paho.mqtt.client as mqtt
import time as t