Jonathan Golder
670e28d84f
Compatibility issue with recent pywikibot fixed
2 years ago
Jonathan Golder
eed989fd2a
euroexchange: Fix removed APISite.getcurrenttime()
Pywikibot removed method APISite.getcurrenttime replaced with
APISite.server_time
3 years ago
Jonathan Golder
ecb6bb8607
Call DescPageBot in EuroExchangeBot
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
6 years ago
Jonathan Golder
0878d53a55
Move configration to separate class/file
To be able to include it in other files without whole EuroExchangeBot
class
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
6 years ago
Jonathan Golder
00d31dda47
FIX: enable update period check
For debugging purposes, this check was disabled and unintentionally not
reenabled
6 years ago
Jonathan Golder
3a9268086b
Check returncode of gnuplot to detect errors
Do not try to upload image, if gnuplot run fails
Issue #2 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/2 )
6 years ago
Jonathan Golder
3cd639eef9
Move configuration vars to jogobot config
6 years ago
Jonathan Golder
b3a0857ddd
Fix typo in Euroexchange
6 years ago
Jonathan Golder
f9a39a6f49
Make it possible to run Bot with -always
To be able to run script unattended
6 years ago
Jonathan Golder
638d2b6a3d
Do not raise Exception when image not exists
Just output a warning and go on with further jobs
6 years ago
Jonathan Golder
1d41e206c0
Fix deprecated calls to UploadRobot
6 years ago
Jonathan Golder
a0377e1f80
Fix typo in upload comment
6 years ago
Jonathan Golder
f4296d8410
Set upload warnings which can be ignored
We always upload existing images, so do not complain about this.
For testing purposes, also duplicates are normal
6 years ago
Jonathan Golder
f28fad2edb
Fix old var name
6 years ago
Jonathan Golder
5cf5c5a597
fix Pywikibot does not import specialbots by default
6 years ago
Jonathan Golder
6c5eff65fb
For testing on betawiki, prepend prefix to filename
As otherwise we will overwrite original files on commons
6 years ago
Jonathan Golder
46447d6f32
Load jobs from json file
6 years ago
Jonathan Golder
6358a3db9b
Check if file was changed before upload
Use sha1 hash of file, which is available via FileInfo() to check for
changes
6 years ago
Jonathan Golder
3a46ea8ddc
Add update frequenzy in days to job
Check against timestamp of latest file revision
6 years ago
Jonathan Golder
e874804591
Store current job in bot object
For not having to provide it for each dependend method as param
6 years ago
Jonathan Golder
776950d990
Use UploadRobot directly from pywikibot.specialbots
Remove unneccessary import roundtrip via pywikibot/scripts/upload
6 years ago
Jonathan Golder
93827e9f3b
Log if new input file is downloaded
6 years ago
Jonathan Golder
206917ed6d
Implement file upload
6 years ago
Jonathan Golder
b14c0fa3a7
Set correct mtime of zip file
Since we are writing the zip file with python, the original mdate, on
which is_zip_uptodate() relies gets lost. Therefore overwrite it with
value of "Last-Modified" HTTP header
6 years ago
Jonathan Golder
111fc38881
Filenames for gnuplot via env-vars
To not have hardcoded filenames in gnuplot script
https://wiki.ubuntuusers.de/Gnuplot/#Stapelverarbeitung-Zugriff-auf-Umgebungsvariablen
6 years ago
Jonathan Golder
ad325a0afe
Implement basic gnuplot call
6 years ago
Jonathan Golder
d2aa47899a
First steps of job handling
6 years ago
Jonathan Golder
5dd52e3ac5
Implement download, extracting and update of data
Make sure we have always the most recent data version
6 years ago
Jonathan Golder
29c5d725f1
Add initialisation of working dir
6 years ago
Jonathan Golder
506400a528
Basic structure for jogobot bot
6 years ago