Skip to content

Instantly share code, notes, and snippets.

View ghys's full-sized avatar

Yannick Schaus ghys

  • France/Luxembourg
View GitHub Profile
@ghys
ghys / kettle.py
Created March 10, 2023 02:23
Expose a HomeWizard Kettle as a Homie device
import asyncio
import collections
import functools
from homie.device_base import Device_Base
from homie.node.node_base import Node_Base
from homie.node.property.property_integer import Property_Integer
from homie.node.property.property_setpoint import Property_Setpoint
from homie.node.property.property_string import Property_String
from homie.node.property.property_switch import Property_Switch
@ghys
ghys / ohadm
Last active March 17, 2023 21:47
A shell script to sync your openHAB objects as YAML files
#!/bin/bash
OH_HOST=http://localhost:8080
OH_API_TOKEN=oh.ohadm.123abc...
operation=$1
objtype=$2
uid=$3
if [[ "$objtype" == *s ]]; then
objtype=${objtype%?}
@ghys
ghys / openhab-dead-links.csv
Last active June 8, 2018 19:10
openhab.org dead internal links
@ghys
ghys / LiveDE.java
Created October 24, 2017 07:02
Smart Home Day talk configuration (22.10.2017)
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import edu.cmu.sphinx.api.Configuration;
import edu.cmu.sphinx.api.SpeechResult;
import edu.cmu.sphinx.api.StreamSpeechRecognizer;
import edu.cmu.sphinx.api.LiveSpeechRecognizer;
public class LiveDE {
@ghys
ghys / habpanel-discourse-stats.rb
Created August 1, 2017 09:15
Script to collect Discourse stats about HABPanel categories on community.openhab.org
require 'net/http'
require 'json'
$topics = 0
$posts = 0
$page = 0
$views = 0
$likes = 0
def get_stats(uri)
@ghys
ghys / SIGI-CODE-OF-CONDUCT.md
Created December 19, 2016 17:53
Code of Conduct for SIGI Open Source projects

Code of Conduct for SIGI Open Source projects

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

@ghys
ghys / SIGI-CONTRIBUTING.md
Created December 19, 2016 17:52
SIGI Project Contributing Rules

Contributing to [project]

Want to hack on [project], a SIGI project? Awesome! Here are instructions to get you started. Please let us know if anything feels wrong or incomplete.

Reporting Issues

Please report issues here, while issues that are related to an underlying framework should be reported in their respective GitHub project (as appropriate).

@ghys
ghys / SIGI-CLA_en.md
Created December 16, 2016 10:29
SIGI CLA (English)

SIGI - Contributor Agreements

Individual Contributor Non-Exclusive License Agreement

Thank you for your interest in contributing to this project by the Syndicat Intercommunal de Gestion Informatique ("SIGI", "We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions in the CONTRIBUTING.md file.

1. DEFINITIONS