Missed the examples for tellstickController

This commit is contained in:
Micke Prag 2008-03-04 08:21:16 +00:00
parent bd031f46d9
commit 656fd68441
5 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
#
# Power off every device that control light sources.
#
tellstickController --set bedroom_mythtv_leds off
tellstickController --set bedroom_window off
tellstickController --set kitchen_cabinets off
tellstickController --set livingroom_cabinets off
tellstickController --set livingroom_uplight off
tellstickController --set livingroom_walls off

View file

@ -0,0 +1,8 @@
#!/bin/sh
#
# Power off bedroom MythTV, turn off backlight leds.
#
tellstickController --set bedroom_mythtv_power off
tellstickController --set bedroom_mythtv_leds off

View file

@ -0,0 +1,12 @@
#!/bin/sh
#
# Power off every device that control light sources.
#
tellstickController --set bedroom_mythtv_leds on
tellstickController --set bedroom_window on
tellstickController --set kitchen_cabinets on
tellstickController --set livingroom_cabinets on
tellstickController --set livingroom_uplight on
tellstickController --set livingroom_walls on

View file

@ -0,0 +1,9 @@
#!/bin/sh
#
# Power on bedroom MythTV, turn on backlight leds and turn off window lamp.
#
tellstickController --set bedroom_mythtv_power on
tellstickController --set bedroom_mythtv_leds on
tellstickController --set bedroom_window off

View file

@ -0,0 +1,81 @@
################################################################################
#
# Configuration file for tellstickController
#
# Copyright (C) 2008 Rickard Andersson (ran42ran@gmail.com)
# Version: 1.3
#
################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
# List of location settings.
#
# Usage example:
# Set Key Value
# Set Timezone Europe/Stockholm
#
#
Set Timezone Europe/Stockholm
Set Latitude 58.24
Set Longitude 15.31
Set dbfile /var/lib/tellstickController.db
Set pidfile /var/run/tellstickController.pid
Set logfile /var/log/tellstickController.log
# Aliases for recevier devices.
#
# Usage example:
# Alias Name Dimmer Protocol Housecode Channel
# Alias BedroomWindow yes Nexa A 1
# Alias device42 No Waveman B 3
# or
# Usage example:
# Alias Name Dimmer Protocol Channel
# Alias MythTv_Backlight No Sartano 000000001
#
#
Alias kitchen_cabinets No Nexa G 2
Alias Bedroom_window No Nexa G 1
Alias Bedroom_mythtv_power No Nexa G 6
Alias Bedroom_mythtv_leds No Nexa G 7
Alias Livingroom_cabinets No Nexa G 3
Alias Livingroom_walls No Nexa G 4
Alias Livingroom_uplight No Nexa G 5
Alias Livingroom_mythtv_leds Yes Nexa G 8
# Timer rules for reciever devices.
#
# Usage examples:
# Rule Alias DeviceOn DeviceOff
# Rule BedroomWindow Sunrise Sunrise+01:30
# Rule BedroomWindow 18:33 23:10+Random(00:45)
# Rule MythTv_Backlight Weekend/20:00 Weekend/Sunset
#
#
Rule Bedroom_window Workweek/sunrise-00:30 Workweek/Sunrise+01:00
Rule Bedroom_window Sunset+Random(00:30) 00:00+Random(00:30)
Rule Bedroom_mythtv_leds Not 02:00
Rule kitchen_cabinets Sunrise-00:30 Sunrise+01:00
Rule kitchen_cabinets Workweek/Sunset Workweek/00:00+Random(00:30)
Rule kitchen_cabinets Weekend/Sunset-01:00 Weekend/00:30+Random(00:30)
Rule Livingroom_cabinets Sunset+01:00+Random(00:30) 00:15+Random(00:30)
Rule Livingroom_walls Sunset+Random(00:30) 00:15+Random(00:30)
Rule Livingroom_uplight Not 02:00
Rule Livingroom_mythtv_leds Not 02:00