![]() Mentioned in PR290 (https://github.com/balloob/home-assistant.io/pull/290) Moving this PR from the Foscam component to a Cookbook page. Posted this example to Gitter: https://gitter.im/balloob/home-assistant?at=56e10e516fde057c26856411 Foscam supports commands including Motion Detection Activation and Pan/Tilt/Zoom to be send via cURL. Added an example of this, but these could be used in any number of ways. I'm open to making the example less verbose, if there's any thought that something could be taken out, but I think this would be helpful for other Foscam users, as HA can control almost everything about the camera via the cURL commands. |
||
---|---|---|
.themes/classic | ||
_deploy@42e481f37c | ||
plugins | ||
sass | ||
source | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.powrc | ||
.ruby-version | ||
.slugignore | ||
.travis.yml | ||
_config.yml | ||
CHANGELOG.markdown | ||
config.rb | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
generate-redirect.py | ||
Rakefile | ||
README.markdown |
Home Assistant website
This is the source for the Home Assistant website available at Home-Assistant.io. All commits made to the master
branch will be automatically pushed to production.
Please point your Pull Request (PR) at the next
branch.
Jekyll project to generate and deploy
Command | Action |
---|---|
rake preview |
Preview site on http://127.0.0.1:4000 |
rake generate |
Generate new version of the site |
rake deploy |
Deploy a new version of the site |
Generating and deploying is no longer necessary as we now have auto-deply.
Setup
You need to have Ruby installed.
- Ruby installation instructions
- For Fedora and CentOS check the last section of this file.
$ git clone --recursive https://github.com/balloob/home-assistant.io.git
$ cd home-assistant.io
$ bundle
Create a new blog post
$ rake new_post["title"]
Site preview
$ rake preview
The preview is now available on http://127.0.0.1:4000.
Steps for the deployment of the site
All developers with write access to the repositories are able to deploy the website. The deploy process is fully automated with rake generate && rake deploy
.
$ git submodule update --init
$ cd _deploy
$ git fetch
$ git pull origin gh-pages
$ cd ..
$ rake generate && rake deploy
TZ=UTC rake generate && rake deploy
Setup on Fedora and CentOS
On Fedora > 22 or CentOS 7.1.1503 Ruby is not available by default. Please take the notes here as a little guide for the Ruby installation process.
$ curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
$ curl -L get.rvm.io | bash -s stable
$ source ~/.profile
$ rvm requirements
$ rvm install ruby-2.2.3
$ rvm use ruby-2.2.3 --default
$ ruby -v
The last command will give you something like this ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
. Then install bundler
.
$ gem install bundler
Now please follow the Setup instructions above.