Commons:Bots/Requests/XplusMapBot

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

XplusMapBot (talk · contribs)

Operator: Xplus1 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: This bot is used to update versions of svg maps about ongoing events, if needed. It is a new account and would need allowance to upload new versions of existing files originally uploaded by my account.

Automatic or manually assisted: Automated / monitored. Plausibility checks and some hard coded time/case limits are included.

Edit type (e.g. Continuous, daily, one time run): Daily for multiple maps, if new data would (more or less) visibly change the map - currently 0.1% for cumulative all-time cases.

Maximum edit rate (e.g. edits per minute): In normal operation, one upload per map and day (week for some). Bugfixes and adaptations may require unplanned updates. I have limited uploads to 1 file per minute.

Bot flag requested: (Y/N): N, like "Not sure" - it will not do mass edits, just daily/weekly updates on a handful of maps.

Programming language(s): PHP-cli using mediawiki-api

x+1 (💬) 17:18, 5 July 2020 (UTC)[reply]

Discussion
Hi, the cronjobs for Slovenia run at 17:04 (cumulative) and 17:09 (active), Croatia at 18:04 and 18:09, Bosnia at 19:04 and Austria around 00:04 and 00:09 - all times in UTC+2. From a dry run, it looks like I'll need to force updates for Slovenia today to get an exemplaric upload:
20200706T16T54:32 1276063 rule-based hint: DO NOT UPLOAD - reason: last upload within 71 hours (20h), less than 1% unmapped cases (16 = 0.94%), +0 affected municipalities
--x+1 (💬) 15:01, 6 July 2020 (UTC)[reply]
I keep the detailed data in sqlite databases, so it wouldn't be too hard to add an export in wikisyntax - or possibly feed wikidata. For the moment, uploading files to commons is the only mediawiki API method implemented. --x+1 (💬) 14:37, 8 July 2020 (UTC)[reply]
I meant uploading files on Commons too. See mw:Help:Tabular Data. --EugeneZelenko (talk) 14:42, 9 July 2020 (UTC)[reply]
Looks promising. I'd have to add or change a few columns (add 7-day and 14-day prevalence), but such an addition can be done easily. It would add to transparency. Meanwhile, some of XplusMapBot's "(testrun)" prefixed uploads were replaced by redirects, so I'll stop it for now and continue semi-automated until the bot gets a permission. I'd have more time to code with a reduced set daily manual tasks ;) --x+1 (💬) 15:59, 9 July 2020 (UTC)[reply]

If there are no objections, I think task should be approved. --EugeneZelenko (talk) 14:10, 16 July 2020 (UTC)[reply]