Commit Graph

93 Commits (323992e224be72b9bd4af33a659eb95edee519d5)

Author SHA1 Message Date
Jon Maddox 834ce5269d we don't actually have to do this 2015-09-15 02:30:13 -04:00
Jon Maddox fcad068016 strip the dash 2015-09-15 02:17:01 -04:00
Jon Maddox e12cc2fbbf attempts at dodging pep8 terror 2015-09-15 02:12:31 -04:00
Jon Maddox 9588fcc5cc install scripts 2015-09-15 02:09:02 -04:00
Andrew Thigpen 2e636f598e Add option to rotate log file daily.
Adds a command line option to rotate the log daily at midnight and
retain up to the specified amount of days.
2015-09-04 19:52:59 -05:00
Andrew Thigpen 6519e589b5 Add option to skip pip install on startup.
Since the requirements only change when the software is updated,
this adds a command line switch to disable pip installs on
startup.  The default behavior is maintained when the switch is
not specified.  Skipping pip helps a lot with startup on older RPi
hardware.
2015-09-04 16:50:57 -05:00
Ryan Kraus 7992882fa3 Cleanup PID checking logic and write PID logic. 2015-09-01 03:29:07 -04:00
Ryan Kraus 4ca8f184e6 Updated Debian daemon script. 2015-09-01 03:22:43 -04:00
Ryan Kraus 5b06e8d25e Daemon handling cleanup.
More cleanly handling whether a PID file should be checked.
Fatal Error on PID file IOError.
Pylint fix to bootstrap.
2015-09-01 02:37:52 -04:00
Ryan Kraus ff470c8ffe Added core daemon function as flags.
Created three additional flags for the hass command:
-v -  Toggle verbose log file output
—pid-file -  Specify PID file path
—daemon -  Launch as daemon (nix only)

The core now binds to SIGQUIT on nix systems to trigger a clean
shutdown.

Modified HTTP server to write logging messages through the logging
module.
2015-09-01 02:12:00 -04:00
Paulus Schoutsen 9eefa67035 Add Python 3.4 check back 2015-08-31 08:53:59 -07:00
Paulus Schoutsen 9acf3db435 Improved console output for new users 2015-08-30 21:24:10 -07:00
Paulus Schoutsen 81466246cf Add --version command line argument 2015-08-30 00:59:27 -07:00
Paulus Schoutsen fc6613ffb1 Fix documentation in __main__ 2015-08-29 23:35:19 -07:00
Paulus Schoutsen a5a1f30798 Make launch more smooth 2015-08-29 23:02:07 -07:00
Ryan Kraus bea81ddd92 Minor tweaks
Moved another import to the top of main.
Forced an exit code of 1 when there is an error initializing.
2015-08-29 23:31:33 -04:00
Ryan Kraus f5b98c86f0 Mostly PyLint and Flake8 updates.
Rewrote imports of exceptions to be from the exceptions module.
Made nmap scanner check for libnmap dependency without crashing.
Various flake8 and pylint updates.
2015-08-29 22:34:35 -04:00
Ryan Kraus 0b6358e759 Implemented comments from Paulus.
Revised main to use frontend and demo strings rather than importing
their domains.
Removed submodule validation.
Moved local library mounting to the bootstrap module and out of core.
Added requirements_all.txt for all dependencies.
Made core dependencies looser.
Small updates to setup.py.
2015-08-29 22:19:52 -04:00
Ryan Kraus 6fdf9b8d7c Many changes to cleanup config directory and lib installations.
Cleaned up default config directory determination.
Made bootstrap creators for HA always set config directory.
Made bootstrap creators set the local library in the Python Path.
Moved all exceptions to their own file to make imports easier.
Moved default configuration directory be in the users’ profile.
Moved pip installs to be done to a lib folder in the config directory.
Reduced requirements.txt to only the barebones reqs.
2015-08-29 21:11:24 -04:00
Ryan Kraus 18e32165a4 Cleaned up main file to remove dependency management. 2015-08-29 20:06:54 -04:00
Paulus Schoutsen e277decd4c Add a check to ensure pip is installed 2015-07-19 19:00:48 -07:00
Paulus Schoutsen a3906242e9 Make life of Windows users a bit better 2015-07-19 18:32:35 -07:00
Paulus Schoutsen c532a28a98 Increase robustness dependency installation 2015-07-15 18:37:24 -07:00
Paulus Schoutsen 2b23eec0f7 Fix pip 1.5.4 compatibility 2015-07-10 21:24:28 -07:00
Paulus Schoutsen 90739c9df9 Auto install core dependencies on boot 2015-07-06 23:59:21 -07:00
Paulus Schoutsen f3f2240e4a Remove usage of deprecated hass.local_api in __main__ 2015-05-15 23:28:16 -07:00
Paulus Schoutsen 09f1983d40 Update dependency check in __main__ 2015-04-30 22:44:24 -07:00
Paulus Schoutsen ad016de653 Move config code to separate module + test cover it 2015-04-26 10:05:01 -07:00
Paulus Schoutsen 424f05a4da Add logbook to default configuration 2015-04-24 08:47:11 -07:00
theolind f2b602c7ec Added logic to main that prefers .yaml-config over .conf 2015-02-28 17:42:23 +01:00
Paulus Schoutsen 6c4e044c92 Enable history component instead of recorder by default 2015-02-07 22:52:36 -08:00
Paulus Schoutsen 10bbc3d6e1 Default config: add recorder 2015-01-31 19:52:00 -08:00
Paulus Schoutsen 6878fc254a Add frontend to default config 2015-01-30 08:28:04 -08:00
Paulus Schoutsen 99c87ff862 Increased environment validation upon start 2015-01-20 22:18:44 -08:00
Paulus Schoutsen ff230cefe3 Disable pylint unused-argument check 2015-01-19 23:40:51 -08:00
Paulus Schoutsen 5f0f06b22d Add command-line toggle to run in demo mode 2015-01-17 22:23:07 -08:00
Paulus Schoutsen ed05ff6fd9 Allow for running Home Assistant without password 2015-01-17 21:55:33 -08:00
Paulus Schoutsen 50eecd11c1 Added command line toggle to open UI on start 2015-01-17 21:13:02 -08:00
Paulus Schoutsen f5683797aa Reorganized the main to be more modular 2015-01-08 18:45:27 -08:00
Paulus Schoutsen bc4b81d525 Reorganized testing 2014-11-23 13:00:06 -08:00
Paulus Schoutsen c3c1383ae6 More error checking added on start 2014-11-08 11:01:47 -08:00
Paulus Schoutsen 9f24101348 Refactor __main__ to use ArgParse 2014-11-05 07:58:20 -08:00
Paulus Schoutsen 94d9cbf76e Starting home assistant is now done via __main__.py 2014-11-02 17:27:32 -08:00