Search found 2898 matches
by support
Sun Sep 03, 2017 11:52 am
Forum: Awasu - Extensions
Topic: Changing channel name on the fly
Replies: 4
Views: 392

Re: Changing channel name on the fly

Or if you meant when a channel updates its feed, events BeginChannelUpdate and EndChannelUpdate are raised before and after :)
by support
Sun Sep 03, 2017 11:45 am
Forum: Awasu - Extensions
Topic: Changing channel name on the fly
Replies: 4
Views: 392

Re: Changing channel name on the fly

A channel hook can be invoked when the channel's configuration is changed (event name ChannelConfigChanged).

Take a look at the sample LogChannelActivity hook to get a feel for how these things work - it shows what events trigger channel hooks, and what information Awasu passes through.
by support
Sun Sep 03, 2017 11:03 am
Forum: Awasu - Extensions
Topic: Changing channel name on the fly
Replies: 4
Views: 392

Re: Changing channel name on the fly

It's not recommended, but yes, you can edit a .CHANNEL file, but only when Awasu is not running. The recommended way is to use the $/channels/update API call, sending the fields you want to change as the POST data. The format of this XML is the same as what Awasu returns when you call $/channels/lis...
by support
Fri Sep 01, 2017 9:55 am
Forum: Awasu - General Discussion
Topic: Why Awasu duplicates articles?
Replies: 2
Views: 376

Re: Why Awasu duplicates articles?

Also, items can have a GUID or ID, that is supposed to uniquely identify them, to make this detection of revisions easier, but again, publishing software and/or the author don't always get it right e.g. an item is slightly modified, but issued a new ID, which makes Awasu think that it's a brand new ...
by support
Fri Sep 01, 2017 9:44 am
Forum: Awasu - General Discussion
Topic: Why Awasu duplicates articles?
Replies: 2
Views: 376

Re: Why Awasu duplicates articles?

The item title, URL and published time are all provided by the feed publisher, and are therefore of variable quality :| I've seen feeds where every item has the same URL, or no item has a title nor URL! So, it's possible that the channel is, in fact, publishing items with the same title and/or URL a...
by support
Sat Aug 26, 2017 8:46 am
Forum: Awasu - General Discussion
Topic: Mini PC as search bot / server for Awasu
Replies: 4
Views: 293

Re: Mini PC as search bot / server for Awasu

On the first step I think about making some skeleteon with inexpensive prototype electronic with enough power to run OS and python scripts. We'll definitely need a write-up if you get this going! :-) I think on start about Raspberry, but I think 1GB RAM is not enought to run more complicate scripts...
by support
Sat Aug 26, 2017 12:11 am
Forum: Awasu - General Discussion
Topic: Mini PC as search bot / server for Awasu
Replies: 4
Views: 293

Re: Mini PC as search bot / server for Awasu

This is an intriguing idea. It's common for larger Awasu installations to offload some of the work to other computers - e.g. channel hooks transfer new content to an external database (e.g. MySQL or Postgres) running on another server, and then have a search server (e.g. something Lucene-based) inde...
by support
Sat Aug 12, 2017 1:01 pm
Forum: Awasu - Extensions
Topic: How mark article as read by API?
Replies: 3
Views: 303

Re: How mark article as read by API?

Give it a go and see what happens :-)

This is a boolean value, and so recognizes 0/1, on/off, true/false or yes/no.
by support
Sun Aug 06, 2017 12:16 am
Forum: Awasu - Extensions
Topic: Script is too long executed and Awasu can't get result from it
Replies: 3
Views: 301

Re: Script is too long executed and Awasu can't get result from it

1. Value is in ms or seconds? Seconds. 2. When Awasy get result will it be wait for this amount of time or go ahead with doing something else? The Pro Edition can have up to 90 channel updates in progress at once. However, if you have more than a few of these long-running plugins, they will eventua...
by support
Thu Aug 03, 2017 5:39 am
Forum: Awasu - Extensions
Topic: Script is too long executed and Awasu can't get result from it
Replies: 3
Views: 301

Re: Script is too long executed and Awasu can't get result from it

What do when scripts need time to execution before send data to Awasu? If your plugin defines a parameter called "Script timeout" , Awasu will use that as the default amount of time to allow the script to run. If your script is called foo.py , create a file called foo.plugin in the same d...
by support
Mon Jul 31, 2017 1:00 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 906

Re: Generating few channel with one plgin

My misteak, I should've asked for type(sys.stdout) I get io.TextIOWrapper , you seem to have PseudoOutputFile , and given that the traceback points to a file called pyshell, I rather suspect it's ipython that's screwing things up (at a guess, I'd say it's capturing the output so it can do something ...
by support
Mon Jul 31, 2017 10:49 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 906

Re: Generating few channel with one plgin

Do you have the "official" Python distribution (from python.org), or something else e.g. ActiveState's

Start Python from the command line, and tell me what this gives you:

Code: Select all

import sys
sys.version
type(sys.stdout.buffer)
by support
Mon Jul 31, 2017 10:06 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 906

Re: Generating few channel with one plgin

Works for me (Python 3.6.1).
by support
Mon Jul 31, 2017 7:50 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 906

Re: Generating few channel with one plgin

Problem is with putting UTF-8 to console. On test charset characters Awasu is talking about mistake... :wall: I'm looking for alternative to print to write output. I talked about this in the big Unicode tutorial . Your safeprint() function is not really the way to go, take a look at my prin...

Go to advanced search