Commit graph

2229 commits

Author SHA1 Message Date
Rickard Andersson
a6715af1c1 Changed keyword from 'Not' to 'No' 2008-03-05 22:32:49 +00:00
Rickard Andersson
0f53ccbce9 Changed keyword from 'Not' to 'No' 2008-03-05 22:31:40 +00:00
Micke Prag
6663c30ad5 First version which actually can turn on and off devices under Linux. Only Nexa working right now... 2008-03-05 16:08:52 +00:00
Magnus Juntti
ed570d0c99 Just modified some text in the README file and the tellstickd.conf file. 2008-03-04 21:11:10 +00:00
Magnus Juntti
0fb525f0dc When commands are executed, the waiting time is reduced by 2 seconds per rfcmd call (was 1). 2008-03-04 17:39:20 +00:00
Micke Prag
2e55ccb256 Added functions devSetArgument() and devGetArgument() which uses the new user friendly interface for saving the arguments.
This only works on Linux with libConfuse. More work to be done on Windows.
2008-03-04 15:28:14 +00:00
Micke Prag
656fd68441 Missed the examples for tellstickController 2008-03-04 08:21:16 +00:00
Micke Prag
bd031f46d9 Added project "tellstickController" 2008-03-04 08:20:43 +00:00
Anders Betnér
8286b184fe Removed unused variable $output_to_logfile
Allow daemon to run without a logfile
2008-03-03 20:21:10 +00:00
Anders Betnér
96ea8585bb tellstickd should run as expected again, (I broke it in r70)
Added a "pre config file parsing" parse to get the log file option
2008-03-03 20:17:06 +00:00
Anders Betnér
7636cc068f Remove the --logfile option from the debian start script and changed
reload function to restart the daemon since tellstickd doesn't react to
signal HUP
2008-03-03 20:14:43 +00:00
Anders Betnér
ba759c158a Removed --logfile option and moved the init stuff around a bit,
this version is most probably broken, hold on....
2008-03-03 19:47:07 +00:00
Magnus Juntti
7ac207383b Changed version from 0.5.0 to 0.6.0 2008-03-03 16:57:00 +00:00
Magnus Juntti
3141d48eb5 Fixed a minor thing in the Redhat init-script 2008-03-03 16:51:30 +00:00
Magnus Juntti
4a89d9fb58 Changed the Redaht init_script (tellstickd) to exclude the obsolete option '--logfile' 2008-03-03 16:50:10 +00:00
Anders Betnér
ec9f466ce4 Remove extra line breaks in log file 2008-03-02 23:53:23 +00:00
Anders Betnér
f683a0f4a4 Bugfix include timezone in the "$now" DateTime object it will default to UTC 2008-03-02 23:50:03 +00:00
Anders Betnér
4ee6f4f866 First try the code, then commit.
First try the code, then commit.
First try the code, then commit.
2008-03-02 23:34:59 +00:00
Anders Betnér
115c6560f4 Removed debug code
Reverted is_rule_valid_today to take device index instead of device rule as the first argument
2008-03-02 23:29:21 +00:00
Anders Betnér
512ac0c4c5 Only log device on and off times for devices with a valid rule for today 2008-03-02 23:24:16 +00:00
Anders Betnér
5c5f8ffd38 Bugfix allow NEXA channels to be 1-16 2008-03-02 22:48:07 +00:00
Anders Betnér
502aa351aa Added command line option --simulate
Tellstickd will run in foreground and log to console and it won't perform
any actions on the device.
2008-03-02 21:22:56 +00:00
Anders Betnér
894361bbba Always create a pid file when running as a daemon,
never create one when running on console
2008-03-02 21:13:50 +00:00
Anders Betnér
29d98fa215 Remove pid file on daemon termination 2008-03-02 20:55:03 +00:00
Anders Betnér
145d86b8d6 Possible to make different week rules for odd and even weeks.
Changed the is_rule_valid_today to check for odd and even weeks and to use
the DateTime object which numbers the days 1 (monday) - 7 (sunday)  like the 
config file.
2008-03-02 20:29:29 +00:00
Micke Prag
e6e6eaaaf3 Added TelldusSettings::getStringSetting() and TelldusSettings::setStringSetting() in TelldusSettingsWinRegistry.
With this the Windows and Linux port can reuse most of the logic.
2008-03-02 17:33:33 +00:00
Micke Prag
858c772c12 Made the driver build on windows, still not working though. 2008-03-02 16:58:01 +00:00
Micke Prag
269393cf04 Bugfix: When returning a string SysAllocStringByteLen() must be used so programming languages such as Visual Basic does not crash. 2008-03-02 11:07:07 +00:00
Magnus Juntti
37ba12675b Improved robustness of config file reading. 2008-03-02 08:02:28 +00:00
Magnus Juntti
0b6db9eb1b Fixed minor bug regarding leading signs in function add_time. 2008-03-01 12:50:13 +00:00
Magnus Juntti
42e322ea27 Introduced new simplified format of the configuration file. No new functionality 2008-02-28 21:07:09 +00:00
Micke Prag
fbd494cc21 Missed AssemblyInfo.cs in my previous commit 2008-02-27 21:52:31 +00:00
Micke Prag
c5f3036078 Added project "TellStick.NET" 2008-02-27 20:32:06 +00:00
Micke Prag
19e0c73686 First commit with the driver working with libConfuse. Probably breaks windows-build! 2008-02-27 18:45:01 +00:00
Magnus Juntti
ae827999bd Code cleanups in functions get_sunrise_time and get_sunset_time. 2008-02-25 21:37:59 +00:00
Micke Prag
8a560a2086 Added some new devices. 2008-02-25 13:30:49 +00:00
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