Skip to content

Instantly share code, notes, and snippets.

Lieven Hollevoet hollie

Block or report user

Report or block hollie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am hollie on github.
  • I am hollie (https://keybase.io/hollie) on keybase.
  • I have a public key ASAbq7hLiVYGF4gV-ea_MFGFpfZ1pWad7kWVT5ZolKudxwo

To claim this, I am signing this object:

@hollie
hollie / xpl_test.pl
Last active Dec 10, 2016
Example code for MisterHouse: react to xPL-enabled motion detector
View xpl_test.pl
# In items.mht:
# XPL_SENSOR, hollie-jeenodes.nessie:room31, motion_berging, Berging, motion
# in user code
if ($motion_berging->state_changed()) {
my $state = $motion_berging->state();
if ($plafond_berging->get_set_by() =~ /^web/ && $plafond_berging->state() ne 'off') {
# Was set on by web interface, don't react to motion detector right now to allow forcing the light to steady 'on' via web interface
@hollie
hollie / mh_temp.user_code
Created Mar 20, 2016
v4.1 + fix Eloy generated user code
View mh_temp.user_code
# List of X10_Item objects
use vars qw($backyard_light $bedroom_light1 $bedroom_light2 $garage_light $test_light1 $test_light2);
# List of X10_Appliance objects
use vars qw($fountain);
# List of Voice_Cmd objects
use vars qw($my_test1 $organizer_check $restart_tts $test_speak_mode $test_speech_flags $test_volume $v_clear_cache $v_debug $v_debug_toggle $v_fountain $v_garage_light $v_get_ical_data $v_http_control $v_list_debug_options $v_list_serial_items $v_list_voice_cmds $v_list_x10_items $v_listen $v_mhdl_page $v_mode $v_mode_toggle $v_read_tables $v_reboot $v_reboot_abort $v_reload_code $v_reload_code2 $v_repeat_last_spoken $v_restart_mh $v_set_password $v_show_debug $v_speed_benchmark $v_test_light2 $v_test_lights $v_undo_last_change $v_update_docs $v_uptime $v_version $v_voice_cmds_help $v_what_speed);
# List of Timer objects
@hollie
hollie / mh_temp.user_code
Created Mar 20, 2016
v4.1 generated user code
View mh_temp.user_code
# List of X10_Item objects
use vars qw($backyard_light $bedroom_light1 $bedroom_light2 $garage_light $test_light1 $test_light2);
# List of X10_Appliance objects
use vars qw($fountain);
# List of Voice_Cmd objects
use vars qw($my_test1 $organizer_check $restart_tts $test_speak_mode $test_speech_flags $test_volume $v_clear_cache $v_debug $v_debug_toggle $v_fountain $v_garage_light $v_get_ical_data $v_http_control $v_list_debug_options $v_list_serial_items $v_list_voice_cmds $v_list_x10_items $v_listen $v_mhdl_page $v_mode $v_mode_toggle $v_read_tables $v_reboot $v_reboot_abort $v_reload_code $v_reload_code2 $v_repeat_last_spoken $v_restart_mh $v_set_password $v_show_debug $v_speed_benchmark $v_test_light2 $v_test_lights $v_undo_last_change $v_update_docs $v_uptime $v_version $v_voice_cmds_help $v_what_speed);
# List of Timer objects
@hollie
hollie / mh_temp.user_code
Created Mar 20, 2016
v4.0 generated usercode
View mh_temp.user_code
# List of X10_Item objects
use vars qw($backyard_light $bedroom_light1 $bedroom_light2 $garage_light $test_light1 $test_light2);
# List of X10_Appliance objects
use vars qw($fountain);
# List of Voice_Cmd objects
use vars qw($my_test1 $organizer_check $restart_tts $test_speak_mode $test_speech_flags $test_volume $v_clear_cache $v_debug $v_debug_toggle $v_fountain $v_garage_light $v_get_ical_data $v_http_control $v_list_debug_options $v_list_serial_items $v_list_voice_cmds $v_list_x10_items $v_listen $v_mhdl_page $v_mode $v_mode_toggle $v_read_tables $v_reboot $v_reboot_abort $v_reload_code $v_reload_code2 $v_repeat_last_spoken $v_restart_mh $v_set_password $v_show_debug $v_speed_benchmark $v_test_light2 $v_test_lights $v_undo_last_change $v_update_docs $v_uptime $v_version $v_voice_cmds_help $v_what_speed);
# List of Timer objects
@hollie
hollie / kustweer.pl
Created Nov 11, 2015
Scrape the 'kustweerbericht' local weather page and convert it to speech
View kustweer.pl
#Category=Weather
# noloop=start
my $kwb_file = "$config_parms{data_dir}/web/kwb.html";
my $kwb_voice = "/Volumes/Media/speech/kustweer.wave";
my $last_fetched_kwb; # To keep track of the last type of fetched weather report
my $weerbeeld;
my $kwb_player = "keuken"; # Default player
$v_get_kwb = new Voice_Cmd "[korte,volledige] weerbericht";
@hollie
hollie / ia7_config.json
Last active Oct 26, 2015
Setting direct control in IA7
View ia7_config.json
{
"prefs" : {
"header_button" : "yes",
"state_log_show" : "yes",
"state_log_entries" : "4",
"always_double_buttons" : "yes",
"fp_icon_size" : "32",
"fp_state_popovers" : "yes",
"substate_percentages" : "20",
"disable_current_state" : "yes"
@hollie
hollie / SWO_SetupForPrint.c
Created Oct 20, 2015
SWO setup for printinf on Gecko controllers too.
View SWO_SetupForPrint.c
/**
* @brief Configures the SWO pin so that it can be used to print out debug info. Fixed for Gecko controllers
*/
void SWO_SetupForPrint(void) {
/* Enable GPIO clock. */
CMU ->HFPERCLKEN0 |= CMU_HFPERCLKEN0_GPIO;
/* Enable Serial wire output pin */
GPIO ->ROUTE |= GPIO_ROUTE_SWOPEN;
@hollie
hollie / ia7_interface.pl
Last active Aug 29, 2015
Example code to set the 'status' button in the MisterHouse IA7 web interface
View ia7_interface.pl
#noloop=start
$ia7_status = new Generic_Item();
$ia7_status -> set_states("online","offline");
#noloop=stop
if ($New_Minute) {
$ia7_status->set('online');
print_log("State set to online");
@hollie
hollie / samsung_tv_control.pl
Created Jan 11, 2015
MisterHouse control for a Samsung Smart TV (by Brian Klier via the mailling list)
View samsung_tv_control.pl
######################################################
# Klier Home Automation - Samsung TV Control Module #
# Version 1.00 #
# By: Brian Klier #
# January 11, 2015 #
# E-Mail: brian@kliernetwork.net #
# Webpage: http://kliernetwork.net #
######################################################
#
# Based on a post on the SamyGO forum from "pjnewman" on May 10, 2011
You can’t perform that action at this time.