Difference between revisions of "User:FippeBot"
imported>Fippe (off-switch) |
(→Tasks) |
||
Line 1: | Line 1: | ||
− | + | '''FippeBot''' is a bot controlled by [[User:Fippe|Fippe]]. __TOC__ {{#css:#toc{float:right};}} | |
− | In the case of an emergency where | + | In the case of an emergency where this bot is causing trouble, change the text on [[User:FippeBot/Emergency]] in order to stop it from running. |
+ | |||
+ | ==Tasks== | ||
+ | FippeBot runs hourly starting at minute 42, unless specified otherwise. | ||
+ | |||
+ | ===Location=== | ||
+ | On recently edited expedition pages, FippeBot adds <code><nowiki>{{</nowiki>[[Template:location|location]]<nowiki>}}</nowiki></code>. Exceptions are: | ||
+ | *[[Special:WhatLinksHere/Template:Location|Pages aready using the template]] | ||
+ | *[[:Category:New report|New report]]s - to prevent edit conflicts | ||
+ | *[[:Template:Delete|Pages tagged for deletion]] | ||
+ | *[[Globalhash]]es - for regex reasons - Fippe usually just adds the location template there manually. | ||
+ | |||
+ | To find out where an expedition is located, FippeBot asks the [https://overpass-api.de/ Overpass API] which areas surround the coordinates on [https://openstreetmap.org/ OpenStreetMap]. Then the IDs of the areas are mapped to the most fitting code. If there are mistakes, there could be two causes for that: | ||
+ | *There is a mistake in OpenStreetMap, in that case anybody can fix it. | ||
+ | *There is a mistake in the files mapping the area IDs to the most fitting code. Please notify Fippe if you believe that to be the cause. | ||
+ | |||
+ | Before May 2020, there was a third cause which is now eliminated. FippeBot used to consult the [https://nominatim.openstreetmap.org/ Nominatim API], which works a bit different than the Overpass API and that led to some inaccuracies for expeditions close to borders. For example, [[2011-07-04 52 1]] was in Suffolk, but was mistakenly classified as being in Norfolk. After switching to the Overpass API in May 2020, ~300 expeditions went through location correction, which were ~2% of the ~15000 then-existing expeditions. | ||
+ | |||
+ | ===Active Graticules=== | ||
+ | FippeBots moves graticule pages from [[:Category:Inactive graticules]] to [[:Category:Active graticules]], if there is a meetup page for this graticule with a date no more than six months in the past and no more than six days in the future. If the opposite is true, the bot moves the graticule page in the opposite direction. Exceptions are: | ||
+ | *[[Template:Maintained|Maintained graticule pages]] | ||
+ | *Pages that are not classified as active nor as inactive. Fippe usually manually adds them to the appropriate category should they become active. | ||
+ | |||
+ | ===Empty Galleries=== | ||
+ | When it is midnight in Portland and [[User:AperfectBot|AperfectBot]] creates date pages for seven days in advance, FippeBot creates the corresponding subpages of [[Template:Expedition Images2]]. If the bot would not do that, the subpage would show up in [[Special:WantedPages]] which would make it difficult to keep track of actual wanted pages. | ||
+ | |||
+ | ===Link Fixes=== | ||
+ | Sometimes someone links to a category called "Meetup in global". This category does not exist and FippeBot replaces it with [[:Category:Globalhash|Category:Globalhash]]. | ||
+ | |||
+ | ===Other=== | ||
+ | Sometimes FippeBot performs other tasks, for example the aforementioned location correction run of May 2020. These are done semi-manually by Fippe. | ||
+ | |||
+ | [[Category:Wiki stuff]] |
Revision as of 17:18, 3 June 2020
FippeBot is a bot controlled by Fippe.
In the case of an emergency where this bot is causing trouble, change the text on User:FippeBot/Emergency in order to stop it from running.
Tasks
FippeBot runs hourly starting at minute 42, unless specified otherwise.
Location
On recently edited expedition pages, FippeBot adds {{location}}
. Exceptions are:
- Pages aready using the template
- New reports - to prevent edit conflicts
- Pages tagged for deletion
- Globalhashes - for regex reasons - Fippe usually just adds the location template there manually.
To find out where an expedition is located, FippeBot asks the Overpass API which areas surround the coordinates on OpenStreetMap. Then the IDs of the areas are mapped to the most fitting code. If there are mistakes, there could be two causes for that:
- There is a mistake in OpenStreetMap, in that case anybody can fix it.
- There is a mistake in the files mapping the area IDs to the most fitting code. Please notify Fippe if you believe that to be the cause.
Before May 2020, there was a third cause which is now eliminated. FippeBot used to consult the Nominatim API, which works a bit different than the Overpass API and that led to some inaccuracies for expeditions close to borders. For example, 2011-07-04 52 1 was in Suffolk, but was mistakenly classified as being in Norfolk. After switching to the Overpass API in May 2020, ~300 expeditions went through location correction, which were ~2% of the ~15000 then-existing expeditions.
Active Graticules
FippeBots moves graticule pages from Category:Inactive graticules to Category:Active graticules, if there is a meetup page for this graticule with a date no more than six months in the past and no more than six days in the future. If the opposite is true, the bot moves the graticule page in the opposite direction. Exceptions are:
- Maintained graticule pages
- Pages that are not classified as active nor as inactive. Fippe usually manually adds them to the appropriate category should they become active.
Empty Galleries
When it is midnight in Portland and AperfectBot creates date pages for seven days in advance, FippeBot creates the corresponding subpages of Template:Expedition Images2. If the bot would not do that, the subpage would show up in Special:WantedPages which would make it difficult to keep track of actual wanted pages.
Link Fixes
Sometimes someone links to a category called "Meetup in global". This category does not exist and FippeBot replaces it with Category:Globalhash.
Other
Sometimes FippeBot performs other tasks, for example the aforementioned location correction run of May 2020. These are done semi-manually by Fippe.