Skip to content

Instantly share code, notes, and snippets.

View artkrz's full-sized avatar

Artur Krzywański artkrz

  • Kraków, Poland
View GitHub Profile
@artkrz
artkrz / energenieApi.html
Last active September 20, 2016 13:29
energenieApi Ajax example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>energenieApi</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
@artkrz
artkrz / hass_influx_drop_mesurments.sh
Last active February 21, 2024 16:32
Remove measurements from HASS InfluxDB
#!/bin/bash
host=localhost
db='home_assistant'
measurements=$1
measurements=($(influx --host $host --execute 'show measurements' --database=$db | grep "$1"))
if (( ${#measurements[@]} ))
then
@artkrz
artkrz / gist:2fa58aadfb36f8aded81631a90997190
Last active November 21, 2020 21:43
TS0601 calibration based on remote sensor.
- alias: Heating office calibrate temperature
trigger:
platform: state
entity_id: sensor.multisensor_office_temperature
condition: "{{ (states('sensor.multisensor_office_temperature')|float - state_attr('climate.thermostat_office_climate','current_temperature')|float)|round(1,'half') != 0 }}"
action:
- service: mqtt.publish
data_template:
topic: 'zigbee2mqtt/thermostat_office/set/local_temperature_calibration'
payload_template: >-

Keybase proof

I hereby claim:

  • I am artkrz on github.
  • I am artkrz (https://keybase.io/artkrz) on keybase.
  • I have a public key ASBU7yem3UmPKd5ZWGk1SbUl4V_V3Zz3iLIkqC4hdG0mQgo

To claim this, I am signing this object: