Commit graph

1993 commits

Author SHA1 Message Date
Micke Prag
ffa238c9f3 Added project "tdtool" 2008-02-24 13:36:10 +00:00
Anders Betnér
38c6eee752 Bugfix for perl sunday = 0 vs config file sunday = 7 2008-02-24 00:21:56 +00:00
Anders Betnér
71bf645791 Reverted to r39, mostly because I'm a idiot.
We can't read the config file before figuring out what to do on the command line.
2008-02-23 22:32:18 +00:00
Anders Betnér
2af137790b Scan command line for -c option and read the file first to make sure command line options
will override config file -logfile is the only one both in config and on commandline
Only write a pid file if running as a daemon
Default to not writing a log file unless specified on command line or in config file
2008-02-23 21:54:11 +00:00
Anders Betnér
8b769925db According to the FHS
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARRUNRUNTIMEVARIABLEDATA
the pid file must contain a newline character at the end of the pid.
2008-02-23 21:02:38 +00:00
Anders Betnér
f79cc13854 Added config file validation for longitude, latitude and timezone 2008-02-23 20:44:58 +00:00
Magnus Juntti
489e8aaf88 Added a possibility to apply each rule to specific weekdays. 2008-02-23 10:39:34 +00:00
Anders Betnér
361a972be7 Allow config file parameters with negative values 2008-02-21 21:35:01 +00:00
Magnus Juntti
ff0bc287a5 Minor cosmetic edits. 2008-02-20 20:39:59 +00:00
Magnus Juntti
79ac83b6dc Added use strict and declared all necessary variables. 2008-02-20 19:43:33 +00:00
Magnus Juntti
b6fbe49e84 Problems regarding the writing of pidfiles resolved. 2008-02-20 19:18:13 +00:00
Magnus Juntti
5d4d7ac7ca Minor cleanups. 2008-02-20 17:38:28 +00:00
Magnus Juntti
759d0c0441 Changed ill-spelled variable ($Latititue should be $LATITUDE). Write logfile is on by default. 2008-02-20 17:15:47 +00:00
Micke Prag
d2a7fca21b Added project "rfcmd" 2008-02-20 14:22:37 +00:00
Micke Prag
00dc68bd1b Added project "Systray" 2008-02-20 14:15:53 +00:00
Magnus Juntti
813d72861d All configurations now possible to make in the tellstickd.conf file (many thanks to Anders Betner). 2008-02-19 21:56:11 +00:00
Magnus Juntti
f6ed1545bd Update is_time_format_correct. Added extra delay after each rfcmd call to get more robust operation. 2008-02-19 20:56:16 +00:00
Magnus Juntti
b1b178084f Fixed a bug which caused the the program to stick in an eternal loop when on and off times were the same. The problem was within the function randomize_off 2008-02-19 19:14:16 +00:00
Magnus Juntti
a864dd50b5 2008-02-19 19:00:57 +00:00
Magnus Juntti
33f719a988 Fixed a minor bug on lines 135 and 147. 2008-02-19 18:32:23 +00:00
Magnus Juntti
8b8daa616d Added a patch from Anders Betner (thanks). 2008-02-19 17:38:14 +00:00
Magnus Juntti
a1b0c20786 Minor edit. 2008-02-19 07:14:44 +00:00
Magnus Juntti
7596c989e4 Changed sunset calculation parameters. Added init script for Debian and adaptions of tellstickd. All contributions of Anders Betner. 2008-02-18 21:39:31 +00:00
Magnus Juntti
fb980ff35a Changed sunset calculation parameters. Added init script
for Debian and adaptions of tellstickd. All contributions of Anders Betner.
2008-02-18 21:34:06 +00:00
Magnus Juntti
9359c895a2 Changed sunset calculation parameters. Added init script
for Debian and adaptions of tellstickd. All contributions of Anders Betner.
2008-02-18 21:31:07 +00:00
Magnus Juntti
28b7841310 Added possiblitiy to use a minus sign (-) when setting the off when bright delay and prelight in afternoon parameters in the tellstickd.conf file. 2008-02-17 19:59:20 +00:00
Micke Prag
b7e55de443 Fixed a bug which made devMethods() return 0 if no TellStick was inserted. 2008-02-16 16:06:36 +00:00
Micke Prag
d2e941ba27 Bugfix in Ikea checksum calculation 2008-02-16 15:04:50 +00:00
Micke Prag
e7512dbe2e Changed the logic for calculating IKEA-dim message. 2008-02-16 13:12:56 +00:00
Magnus Juntti
fc72421616 General improvements. 2008-02-15 20:59:09 +00:00
Magnus Juntti
6ba85200c4 Corrected a fatal bug regarding switch logic. 2008-02-15 08:12:35 +00:00
Magnus Juntti
a67fa2653b Updated README file. 2008-02-15 07:24:07 +00:00
Magnus Juntti
96daffc46b Changed update interval back from 50 to 60 seconds: 2008-02-15 07:21:56 +00:00
Magnus Juntti
80ce55dc8c Version 0.3.0. New feature: possibility to randomize switch on and switch off time. 2008-02-14 20:18:40 +00:00
Micke Prag
809659ea17 Added project "Scheduler" 2008-02-14 10:53:09 +00:00
Magnus Juntti
396ca1e72b Changed mailaddress to mjuntti@gmail.com 2008-02-13 18:07:24 +00:00
Magnus Juntti
7e66f1c057 2008-02-12 0.2.1 Changed behaviour when program is called without argument
. Now presents: Try "tellstickd --help" for more information.
2008-02-12 17:34:31 +00:00
Magnus Juntti
75cd57445a Added support for SARTANO. Cleaned the code. 2008-02-11 22:17:40 +00:00
Magnus Juntti
c5f092fc72 2008-02-11 18:27:48 +00:00
Micke Prag
e794d406f2 Imported project 'tellstickd' 2008-02-11 17:05:51 +00:00
Micke Prag
08c02530a6 Removed function
bool devHasMethod(int id, int method)
and replaced with
int devMethods(int id)
2008-02-08 15:52:06 +00:00
Micke Prag
be464c4efc Fixed 2 bug
Returned correct id when adding a new device.
Fixed crash if no device was found in devHasMethod().
2008-02-08 13:23:28 +00:00
Micke Prag
ecf09abe0f Initial import of TellStick-driver 2008-02-05 13:14:30 +00:00