Commit graph

  • 2cb1a2ac97 Set the flag O_CLOEXEC on all file handles so they don't interferes with the execution of scripts. See #100 Micke Prag 2012-12-04 12:20:19 +01:00
  • 3441b9cc45 Missing username in TODO according to Google style guidelines "readability/todo" Micke Prag 2012-12-04 17:25:17 +01:00
  • 6136c16d83 Use static_cast<int>(...) instead of C-style cast [readability/casting] Micke Prag 2012-12-04 17:16:06 +01:00
  • 2399e6c349 All parameters should be named in a function [readability/function] Micke Prag 2012-12-04 17:08:47 +01:00
  • 01a65acdd6 Do not use namespace using-directives according to Google style guidelines "build/namespaces" Micke Prag 2012-12-04 16:56:44 +01:00
  • 81946e9887 Find Python dynamically so it works on Windows too Micke Prag 2012-12-04 16:12:54 +01:00
  • 7d0f3747fe Include directory when naming .h files, according to Google style guidelines "build/include" Stefan Persson 2012-12-04 16:39:39 +01:00
  • d5e8c1f941 Adding copyright messages according to Google style guidelines "legal/copyright" Stefan Persson 2012-12-04 16:06:27 +01:00
  • 05197abf6e Fixed regression errors for windows Stefan Persson 2012-12-04 15:14:40 +01:00
  • 9f68c2083a Some code/comment cleanup Stefan Persson 2012-12-04 15:05:45 +01:00
  • 9d39fe8d47 Merged with Windows_service_fixes Stefan Persson 2012-12-04 15:01:46 +01:00
  • df6bd27883 More logging for TelldusService debug, ticket #266, 266-1. Stefan Persson 2012-12-04 11:34:06 +01:00
  • e5f6858cf5 Cleanup our new environment after its use Micke Prag 2012-11-22 12:20:16 +01:00
  • 15225dd5f6 Cleanup the logger before exit Micke Prag 2012-11-22 12:19:14 +01:00
  • 46c24d4a6e Make the path for the scripts configurable Micke Prag 2012-11-22 12:02:39 +01:00
  • fac773249c Rename SettingsConfusePath.h to config.h so it can be used by other configurable options Micke Prag 2012-11-22 11:52:16 +01:00
  • b2948cba5b Preload all scripts to execute on startup to avoid scanning the directory on every event. Micke Prag 2012-11-22 11:37:27 +01:00
  • d48ee1f02b Execute a script from /usr/local/share/telldus/scripts on all events. Closes #100 Micke Prag 2012-11-22 09:57:59 +01:00
  • 32f2d9f955 Check all incomming messages against duplicates. Only one unique message per second is accepted. Closes #84 Micke Prag 2012-11-19 16:42:18 +01:00
  • 0018ad28d1 Remove old telldus-gui.pro Micke Prag 2012-11-19 10:13:34 +01:00
  • d88d5a5098 Remove empty lines according to google style guidelines Micke Prag 2012-11-08 15:40:31 +01:00
  • 4467a75abc Cleanup our CF variables so we do not leak memory. See #240 Micke Prag 2012-11-08 10:49:04 +01:00
  • 992b03c5ba Code cleanup according to style guidelines Micke Prag 2012-11-08 10:36:50 +01:00
  • fd8fdfcacd Remove variables never used Micke Prag 2012-11-08 10:13:59 +01:00
  • c3bcd64246 Queue all device commands and execute them from the main thread. Micke Prag 2012-11-02 19:42:12 +01:00
  • 2368b6e564 Add function Device::isMethodSupported() Micke Prag 2012-11-02 16:18:27 +01:00
  • 35dbc0a980 Report humidity for Oregon 0x1A2D. This closes #221. Micke Prag 2012-11-02 15:03:57 +01:00
  • aa16302e1e Add function ControllerManager::count() Micke Prag 2012-11-02 13:34:34 +01:00
  • d0b1dbba0e Do not unlock the mutex manually since we are using a MutexLocker. Micke Prag 2012-11-02 13:08:43 +01:00
  • 9d5af14609 Fix some compiler warnings Micke Prag 2012-10-30 15:58:34 +01:00
  • 4d1fdd777f Comparison of unsigned expression < 0 is always false Micke Prag 2012-10-30 15:58:01 +01:00
  • bc777e04ca Add cppunit on OS X as well Micke Prag 2012-09-26 16:43:19 +02:00
  • ccc027b381 Update stdlibc_workaround.cpp to our style guidelines Micke Prag 2012-09-26 16:39:05 +02:00
  • 609f7581ea Update main_mac.cpp to our style guidelines Micke Prag 2012-09-26 16:32:36 +02:00
  • c522173296 Update ControllerListener_mac.cpp to our style guidelines Micke Prag 2012-09-26 16:31:27 +02:00
  • bc22754f8c Update SettingsCoreFoundationPreferences.cpp to our style guidelines Micke Prag 2012-09-26 16:24:41 +02:00
  • f5756e3f93 Update TellStick_ftd2xx.cpp to our style guidelines Micke Prag 2012-09-26 16:16:44 +02:00
  • 22e8549e7e Follow better the 'Apple Create Rule' for our variables. This fixes a memory leak. Closes #240 Micke Prag 2012-09-26 15:05:03 +02:00
  • 7ee8407922 Leave read loop on broken pipe Stefan Persson 2012-09-03 17:00:17 +02:00
  • 0d8bf77a45 Only a lot of debug printouts, but this version is working for SwitchKing at least Stefan Persson 2012-09-03 16:59:09 +02:00
  • 4ff3cfd56c Convert CRLF to LF Micke Prag 2012-08-13 16:45:35 +02:00
  • 4065f7dc40 no complier warnings Øyvind Saltvik 2012-08-11 18:17:03 +02:00
  • d9ac1d3638 two less warnings Øyvind Saltvik 2012-08-11 18:11:23 +02:00
  • 420d33b09d don't go off the far end Øyvind Saltvik 2012-08-11 16:20:23 +02:00
  • 5d2a3a3f7c use tabs Øyvind Saltvik 2012-08-10 23:48:42 +02:00
  • d808478ab1 keep track of python function so we can decref it Øyvind Saltvik 2012-08-10 23:46:39 +02:00
  • c9588af3c3 make sure errorcodes are returned Øyvind Saltvik 2012-08-10 21:41:31 +02:00
  • 5cfd91717f return a datetime on success Øyvind Saltvik 2012-08-10 21:00:40 +02:00
  • c5c64435cf working examples feature complete Øyvind Saltvik 2012-08-10 20:37:16 +02:00
  • 9073d60858 working with callbacks Øyvind Saltvik 2012-08-10 19:25:24 +02:00
  • 517c987b6d PyEval_InitThreads Øyvind Saltvik 2012-08-08 13:25:47 +02:00
  • f09ebea266 no semicolon Øyvind Saltvik 2012-08-08 13:15:57 +02:00
  • d6fcd4a5dc tdsensor Øyvind Saltvik 2012-08-08 13:12:51 +02:00
  • 71e13196f3 add tdUnregisterCallback Øyvind Saltvik 2012-08-07 16:08:13 +02:00
  • 6496e71026 removed stray spaces Øyvind Saltvik 2012-08-07 14:25:13 +02:00
  • 384c81d85a add dev dir to find telldus-core.h file Øyvind Saltvik 2012-08-07 13:45:04 +02:00
  • bd766e6254 no .h file Øyvind Saltvik 2012-08-07 13:42:07 +02:00
  • a5da11945e native dir Øyvind Saltvik 2012-08-07 13:23:25 +02:00
  • 44869cbd4f tabs/ final newlines Øyvind Saltvik 2012-08-07 13:22:20 +02:00
  • cadcf0b48a comment out code that might not be correct, add memoryerror Øyvind Saltvik 2012-08-07 03:30:57 +02:00
  • 48efae5a6f builds on 64 bit with howto Øyvind Saltvik 2012-08-07 01:16:51 +02:00
  • 241538d107 telldus Øyvind Saltvik 2012-08-04 22:16:58 +02:00
  • d1b6208435 four spaces Øyvind Saltvik 2012-08-04 22:16:04 +02:00
  • ed3b37439a example fix Øyvind Saltvik 2012-08-04 22:11:50 +02:00
  • 7130ad71c9 device Øyvind Saltvik 2012-08-04 22:10:58 +02:00
  • cce0c16801 fix example Øyvind Saltvik 2012-08-04 22:09:31 +02:00
  • 9d11cfb07f added telldus python bindings Øyvind Saltvik 2012-08-04 18:42:00 +02:00
  • 84330f8518 Print the message before executing them. Micke Prag 2012-06-27 17:21:21 +02:00
  • b9d2324552 Implement ping Micke Prag 2012-06-27 17:20:15 +02:00
  • 6feb0ee2f3 Implement pong Micke Prag 2012-06-27 17:19:43 +02:00
  • 648b713955 First version of a headless server for Telldus Live! Micke Prag 2012-06-21 17:19:45 +02:00
  • 83dbd675cf Add python compiled files to gitignore Micke Prag 2012-06-21 17:21:16 +02:00
  • d22793ed12 We cannot iterate over a QHash since the order is by design not guaranteed. Loop using a counter instead Micke Prag 2012-06-21 11:53:11 +02:00
  • 246e043551 Fix typo in deviceSettings index Micke Prag 2012-06-21 11:43:39 +02:00
  • ed9d1237b4 Add device Anslut selflearning on/off Micke Prag 2012-06-20 17:15:53 +02:00
  • 61d0b2ac09 Implement protocol Comen by hardcoding the last to bits in the housecode Micke Prag 2012-06-20 17:15:26 +02:00
  • d6dcd11973 Protocol::getStringParameter() and Protocol::getIntParameter() should be virtual so they can be overriden by a protocol Micke Prag 2012-06-20 17:14:10 +02:00
  • 1ea754da3d Bugfix, all the parameters for a device tried to be saved as non parameters Micke Prag 2012-06-20 17:12:30 +02:00
  • 9eac84fb4a Remove sscanf() from ProtocolSartano and add a unittest for ProtocolSartano::decodeData() Micke Prag 2012-06-20 15:22:10 +02:00
  • ddfb87f45d Remove sscanf() from ProtocolEverflourish and add a unittest for ProtocolEverflourish::decodeData() Micke Prag 2012-06-20 15:21:29 +02:00
  • b50e9dd3d5 Remove sscanf() from ProtocolX10 and add a unittest for ProtocolX10::decodeData() Micke Prag 2012-06-20 14:18:29 +02:00
  • 41816f36a3 Configure SettingsConfusePaths.h in the correct section in CMakeLists.txt Micke Prag 2012-06-20 12:22:03 +02:00
  • 264b92889a Add unittest for ProtocolNexa::decodeData() Micke Prag 2012-06-20 12:20:23 +02:00
  • ae7b9b8c1a If we enable testing, build TelldusService as a static library that can be used by the TestRunner Micke Prag 2012-06-20 12:18:50 +02:00
  • 6e47588096 Add comment on why we disable some of the default tests Micke Prag 2012-06-19 16:51:35 +02:00
  • ffebd4ed4c Enable test whitespace/use_tab_for_indentaion and disable test runtime/rtti Micke Prag 2012-06-19 16:51:18 +02:00
  • c97c88ba8d Extra check for the value in Nexa device settings. This could lead to a potential crash otherwise Micke Prag 2012-06-19 16:50:21 +02:00
  • 39c6bb012e Use dynamic_cast instead of reinterpret_cast for our events Micke Prag 2012-06-19 16:49:26 +02:00
  • 7b82e529cc Convert sscanf in ProtocolNexa and ProtocolWaveman to a faster and platform independent implementation Micke Prag 2012-06-19 16:48:44 +02:00
  • 818ae8abed Rename ControllerMessage::getIntParameter() to ControllerMessage::getInt64Parameter() Micke Prag 2012-06-19 16:47:01 +02:00
  • dbb11602ec Temporarily suppress cpplint errors "runtime/printf" for sscanf(). We should prpbably remove them later Micke Prag 2012-06-19 16:23:36 +02:00
  • 58bf51a6e8 Convert strcpy to snprintf. This is better according to Google style guidelines "runtime/printf" Micke Prag 2012-06-19 16:18:44 +02:00
  • 77b128f2fd Add exception for using getgwnam() and getpwnam(). This is safe so early in the startup Micke Prag 2012-06-19 14:40:00 +02:00
  • c26efc1305 Convert strtok() to strtok_r() for improved thread safety. Micke Prag 2012-06-19 14:13:18 +02:00
  • d2332cb605 Convert non utf-8 characters in ProtocolIkea Micke Prag 2012-06-19 14:02:38 +02:00
  • 6067c776c5 Since we use tabs for indentation, convert to one line instead Micke Prag 2012-06-19 12:29:52 +02:00
  • 6688f44084 Missing username in TODO according to Google style guidelines "readability/todo" Micke Prag 2012-06-15 17:18:05 +02:00
  • a165e414fd Streams are highly discouraged according to Google style guidelines "readability/streams" Micke Prag 2012-06-18 16:10:39 +02:00
  • 9352ae0807 All parameters should be named in a function according to Google style guidelines "readability/function" Micke Prag 2012-06-18 15:01:33 +02:00
  • 5d2e3f33c8 Use C++ casting instead of C casting according to Google style guidelines "readability/casting" Micke Prag 2012-06-08 16:28:34 +02:00