Geen omschrijving http://j1x-huginn.herokuapp.com
Andrew Cantino: fcc73da55e Update README.md 11 jaren geleden | ||||
---|---|---|---|---|
app | 620acffa5a | 11 jaren geleden | ||
bin | 620acffa5a | 11 jaren geleden | ||
config | 9d6f4b02ec | 11 jaren geleden | ||
db | 620acffa5a | 11 jaren geleden | ||
lib | 620acffa5a | 11 jaren geleden | ||
public | 620acffa5a | 11 jaren geleden | ||
script | 620acffa5a | 11 jaren geleden | ||
spec | 620acffa5a | 11 jaren geleden | ||
vendor | 620acffa5a | 11 jaren geleden | ||
.gitignore | 620acffa5a | 11 jaren geleden | ||
.rvmrc | 620acffa5a | 11 jaren geleden | ||
Capfile | 620acffa5a | 11 jaren geleden | ||
Gemfile | 9d6f4b02ec | 11 jaren geleden | ||
Gemfile.lock | 9d6f4b02ec | 11 jaren geleden | ||
LICENSE | 620acffa5a | 11 jaren geleden | ||
README.md | fcc73da55e | 11 jaren geleden | ||
Rakefile | 620acffa5a | 11 jaren geleden | ||
config.ru | 620acffa5a | 11 jaren geleden |
Huginn is a system for building agents that perform automated tasks for you online. They can read the web, watch for events, and take actions on your behalf. We're just getting started, but here are some of the things you can do with Huginn right now:
Control your own data, run your own data hub. You know where the data is and who has it. Don't be afraid to log stuff because of where it is.
Make agents that serve you.
config/secret_token.rb
and replace REPLACE_ME_NOW!
with the output of rake secret
.app/models/user.rb
and change the invitation code(s) in INVITATION_CODES
. This controls who can signup to use your installation.rake db:create
, rake db:migrate
, and then rake db:seed
to create a development MySQL database with some example seed data. Run rails s
, visit localhost:3000
, and login with the username of admin
and the password of password
.bundle exec rails runner bin/schedule.rb
and bundle exec rails runner bin/twitter_stream.rb
Deployment right now is configured with Capistrano, Unicorn, and nginx. You should feel free to deploy in a different way, however.
app/mailers/system_mailer.rb
and set your default from address.config/unicorn/production.rb
and replace instances of you with the correct username for your server.config/environments/production.rb
and change the value of DOMAIN
and the config.action_mailer.smtp_settings
setup, which is currently setup for sending email through a Google Apps account on Gmail.config/nginx/production.conf
.config/deploy.rb
and change all instances of you
and yourdomain
to the appropriate values for your server setup, then run cap deploy:setup
followed by cap deploy
. If everything goes well, this should start some unicorn workers on your server to run the Huginn web app.RAILS_ENV=production bundle exec rake db:seed
to generate your admin user. Immediately login to your new Huginn installation with the username of admin
and the password of password
and change your email and password!You'll need to run bin/schedule.rb and bin/twitter_stream.rb in a daemonized way. I've just been using screen sessions, but please contribute something better!
RAILS_ENV=production bundle exec rails runner bin/schedule.rb
RAILS_ENV=production bundle exec rails runner bin/twitter_stream.rb
In order to use the WeatherAgent you need an API key with Wunderground. Signup for one and then put it in app/models/agents/weather_agent.rb
in the wunderground
method.
config.ru
, uncomment the DelayedJobWeb section, and change the DelayedJobWeb username and password.match "/delayed_job" => DelayedJobWeb, :anchor => false
in config/routes.rb
.gem "delayed_job_web"
in Gemfile and run bundle
.We assume your deployment will run over SSL. This is a very good idea! However, if you wish to turn this off, you'll probably need to edit config/initializers/devise.rb
and modify the line containing config.rememberable_options = { :secure => true }
. You will also need to edit config/environments/production.rb
and modify the value of config.force_ssl
.
Checkout config/example_backup.rb
for an example script that you can use with the Backup gem. If you want to use it, uncomment the associated lines in your Gemfile.
Huginn is provided under the MIT License.
Please fork, add specs, and send pull requests!