Skip to content

Instantly share code, notes, and snippets.

View mkyral's full-sized avatar
🗺️
Mapping ;-)

Marián Kyral mkyral

🗺️
Mapping ;-)
View GitHub Profile
@mkyral
mkyral / HA_Lovelace_custome-gauges-example.yaml
Last active September 26, 2018 17:48
HomeAssistant Lovelace-UI - custom gauges for in/outside temperature and humidity
- title: Gauges
id: gauges
icon: mdi:monitor
cards:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.teplota_venku
@mkyral
mkyral / bc-battery_pct.py
Created January 25, 2018 20:48
BigClown - mqtt microservice - convert voltage to percentage
import paho.mqtt.client as mqtt
# Configuration
################
## Server
mqtt_server = "turris"
mqtt_port = 1883
# Core module minimal voltage