Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
The Doctor
@virtadpt
If you can wait a bit, I can export one of my blog following agent networks after work today and add it to my repo of samples.
Shay S.
@shay1383
Sure I can wait. Thank you!
The Doctor
@virtadpt
It shows a couple of different ways you can dissect RSS events and do different things with them.
bazooka720
@bazooka720
hi...i am a product manager found this repo and thought its an amazing one (no secret for you all i suppose). I was wondering if anyone has used it to integrate into an existing rails app? Does this support app where each user / tenant can create their own agents?
The Doctor
@virtadpt
It does. Agent networks are partitioned by user account.
Most instances are single-tenant only, but there's no reason (other than system resources) that there can't be more than one user at the same time.
Mark Stanhope
@markstan_gitlab
I tend to run scenarios under different user accounts, for 2 reasons, one it took me time to work out i could send to other email accounts, but also i find it easier to look at a single set of activities on the diagram view.
The Doctor
@virtadpt
Interesting. How big are your networks?
Jonathan de Jong
@ShadowJonathan
is there any better documentation on scenarios, and what happens when you click "update" on a scenario? do scenarios update automatically? can this be automated?
The Doctor
@virtadpt
I don't know, and what do you mean by update?
royaltongue
@royaltongue
Can Huginn allow me to post to Twitter every time I make a video live on YouTube?
The Doctor
@virtadpt
Yes, provided that you have a way of scraping your Youtube page.
I do something similar with my Peertube page.
If you do a View Source on your Youtube page and search for the string 'rss' you'll probably find something like this:
Pull the URL with an RSS Agent, process the output with an Message Formatting Agent, and route the output to a Twitter Publisher Agent.
The Doctor
@virtadpt
Is anyone else seeing memory leaks with later builds of Rails? I have to reboot my box about once a month to free up RAM. didn't have to do that last year.
Chloe, Curtains Drawn
@polycultic_twitter
anyone willing to help a non-programmer set this up? having some problems
image.png
The Doctor
@virtadpt
How are you trying to stand it up, Docker? Or the documented instructions?
Chloe, Curtains Drawn
@polycultic_twitter
Docker
Also tried the manual instructions and ran into some issues there
The Doctor
@virtadpt
I haven't tried Docker, to be honest. I ran into problems with the manual instructions, too; never got them to work.
jgillies
@jgillies
Hey there, I'm playing around with creating an agent and I'm having a hard time understanding how completable form_configurable fields work. As far as I can tell, for a field named door_name, I'd need a method named complete_door_name. Is that correct? If so, should that method return an array?
Chloe, Curtains Drawn
@polycultic_twitter

I wrote up my own if you're interested:
https://drwho.virtadpt.net/archive/2016-09-11/exocortex-setting-up-huginn

i'll try your guide later, thanks!

The Doctor
@virtadpt
o7
Andrew Horton
@urbanadventurer
foreman stdout | 02:07:04 web.1  | http://localhost:3000/agents -> /worker_status?since_id=1450233
foreman stdout | 02:07:05 jobs.1 | { 69979195904480 rufus-scheduler intercepted an error:
02:07:05 jobs.1 |   69979195904480   job:
02:07:05 jobs.1 |   69979195904480     Rufus::Scheduler::CronJob "*/1 * * * * Australia/Melbourne" {:tag=>"HuginnScheduler"}
02:07:05 jobs.1 |   69979195904480   error:
02:07:05 jobs.1 |   69979195904480     69979195904480
02:07:05 jobs.1 |   69979195904480     ActiveRecord::ConnectionTimeoutError
02:07:05 jobs.1 |   69979195904480     could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:221:in `block in wait_poll'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:210:in `loop'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:210:in `wait_poll'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:171:in `internal_poll'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:297:in `internal_poll'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:166:in `block in poll'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /usr/lib/ruby/2.5.0/monitor.rb:235:in `mon_synchronize'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:175:in `synchronize'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:166:in `poll'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:875:in `acquire_connection'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:593:in `checkout'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:437:in `connection'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:468:in `with_connection'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/lib/huginn_scheduler.rb:205:in `block in with_mutex'
02:07:05 jobs.1 |   69979195904480       /app/lib/huginn_scheduler.rb:204:in `synchronize'
02:07:05 jobs.1 |   69979195904480       /app/lib/huginn_scheduler.rb:204:in `with_mutex'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/lib/huginn_scheduler.rb:164:in `run_schedule'
02:07:05 jobs.1 |   69979195904480       /app/lib/huginn_scheduler.rb:135:in `block (2 levels) in setup'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/rufus-scheduler-3.4.2/lib/rufus/scheduler/jobs.rb:210:in `do_call'
02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/rufus-scheduler-3.4.2/lib/rufus/scheduler/jobs.rb:254:in `trigger_now'
foreman stdout | 02:07:05 jobs.1 |   69979195904480       /app/vendor/bundle/ruby/2.5.0/gems/rufus-scheduler-3.4.2/lib/rufus/scheduler/jobs.rb:296:in `block (3 levels) in start_work_thread'
Is anyone else getting this issue after running Huginn for a while too? My jobs have been piling up for the last 24 hours.
Andrew Horton
@urbanadventurer
I know I could increase the database pool size but that wouldn't fix the bug. I'm just restarting my docker containers.
Toni
@ignotion
Hi :)
I'm trying to create a webhook that passes information to a post agent and that post agent parses some information of the webhook payload to do a api call to a service. Up to here, pretty easy. The webhook works and creates events with the data I want to send, the PostAgent works if I set fixed data, but it seems i cannot manage to parse the data from the event emitted from the webhook. I thought it was something like "$.field" and probably it is, but as I do not see the query I cannot validate if it is correct.
So, my first question would be: How can I see the post query that the post agent is doing? Is there any way to log that?
Toni
@ignotion
well, now works, it seems i had to use the {{}} syntax
Chloe, Curtains Drawn
@polycultic_twitter
anyone gotten the post agent to work with discord webhooks?
i'm just trying to post URLs, not anything fancy
The Doctor
@virtadpt
I last tried a couple of years ago. Didn't get it to work.
I didn't try very hard, though, I wasn't sure Discord was actually going to become A Thing.
Patrick Connolly
@patcon
hey all, i see from the search history that this comes up every so often, but is there a wiki page for (1) people who are actively hosting huginn as SaaS, or (2) people who have expressed interest in offering?
I'd love to stub out that page based on historic msgs in gitter or github issues, if it's welcome
(i'm a member of a tech worker co-op, and we might be interested in this at some point, but in the meantime am curious if others offer it. we do digital coaching for orgs, and would love to have an option source option to present as alternative to Zapier)
The Doctor
@virtadpt
I don't believe there is such a wiki page. I know there was once person who was doing that about a year or two ago, but the service shut down.
However, stubbing out the page would be a good idea.
As for setting it up yourself as a SaaS, I don't do that but I do run Huginn at a fairly large scale, and might be able to offer some practical insight.
malcmail
@malcmail
HI there. Managed to get the Slack agent to post without too much trouble but wondered if anyone had a set up to post to Microsoft Teams. Thanks.
The Doctor
@virtadpt
Haven't tried, tbh... don't know anyone that uses it.
Sorry.
Do you know if MS publishes an API spec?
malcmail
@malcmail
You can set it up to allow it to take incoming web hooks using JSON in what it calls 'card' format.