Commit Graph

39 Commits

Author SHA1 Message Date
5b06d2229e descpage: Implement loading, parsing and updating
To be able to change file description page, we need to load current
text, do manipulations and to update with new text

Issue #1 (#1)
2018-10-18 16:39:11 +02:00
0878d53a55 Move configration to separate class/file
To be able to include it in other files without whole EuroExchangeBot
class

Issue #1 (#1)
2018-10-18 14:46:30 +02:00
7c15e18071 Merge branch 'release-0.1.1' back into develop 2018-10-18 14:16:28 +02:00
e49cf9aa50 Prepare bugfix release 0.1.1 2018-10-18 14:13:23 +02:00
00d31dda47 FIX: enable update period check
For debugging purposes, this check was disabled and unintentionally not
reenabled
2018-10-18 14:09:08 +02:00
6af5ed5d06 Merge branch 'i#2-check-gnuplot-exit' into develop 2018-10-17 14:30:06 +02:00
3a9268086b Check returncode of gnuplot to detect errors
Do not try to upload image, if gnuplot run fails

Issue #2 (#2)
2018-10-17 14:28:52 +02:00
efe6943659 Merge branch 'release-0.1' back into develop 2018-10-09 08:43:20 +02:00
34c0835d22 Merge branch 'release-0.1' v0.1 2018-10-09 08:42:34 +02:00
4395cb42eb Prepare stable release v0.1 2018-10-09 08:41:14 +02:00
3cd639eef9 Move configuration vars to jogobot config 2018-10-05 20:24:00 +02:00
c35c296e92 Do not track gnuplotscripts in this repo
Since they are more config, we will use separate repo
2018-10-05 16:14:48 +02:00
b3a0857ddd Fix typo in Euroexchange 2018-10-05 16:11:35 +02:00
0477940fdf Define requirements
Installable via pip install -r requirements.txt
2018-10-05 14:46:50 +02:00
f9a39a6f49 Make it possible to run Bot with -always
To be able to run script unattended
2018-10-05 14:43:43 +02:00
638d2b6a3d Do not raise Exception when image not exists
Just output a warning and go on with further jobs
2018-09-27 08:41:53 +02:00
1d41e206c0 Fix deprecated calls to UploadRobot 2018-09-27 08:23:26 +02:00
a0377e1f80 Fix typo in upload comment 2018-09-26 16:00:03 +02:00
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
2018-09-25 16:59:50 +02:00
f28fad2edb Fix old var name 2018-09-25 16:59:19 +02:00
5cf5c5a597 fix Pywikibot does not import specialbots by default 2018-09-25 16:32:25 +02:00
6c5eff65fb For testing on betawiki, prepend prefix to filename
As otherwise we will overwrite original files on commons
2018-09-24 21:16:00 +02:00
46447d6f32 Load jobs from json file 2018-09-24 21:15:38 +02:00
6358a3db9b Check if file was changed before upload
Use sha1 hash of file, which is available via FileInfo() to check for
changes
2018-09-24 20:32:36 +02:00
3a46ea8ddc Add update frequenzy in days to job
Check against timestamp of latest file revision
2018-09-24 20:31:07 +02:00
e874804591 Store current job in bot object
For not having to provide it for each dependend method as param
2018-09-24 20:26:50 +02:00
776950d990 Use UploadRobot directly from pywikibot.specialbots
Remove unneccessary import roundtrip via pywikibot/scripts/upload
2018-09-24 20:24:27 +02:00
93827e9f3b Log if new input file is downloaded 2018-09-24 20:23:36 +02:00
206917ed6d Implement file upload 2018-09-21 21:02:39 +02:00
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
2018-09-21 20:37:42 +02:00
111fc38881 Filenames for gnuplot via env-vars
To not have hardcoded filenames in gnuplot script

https://wiki.ubuntuusers.de/Gnuplot/#Stapelverarbeitung-Zugriff-auf-Umgebungsvariablen
2018-09-21 18:04:19 +02:00
5e7f718b45 gnuplot_scripts: Remove download of data
We do this in python script
2018-09-21 18:02:22 +02:00
05b6a78bc0 gnuplot_scripts: Basic version obtained from wiki
Source https://commons.wikimedia.org/w/index.php?title=File:Euro_exchange_rate_to_TRY_-_Turkish_Currency_and_Debt_Crisis_2018.svg&oldid=320846888
2018-09-21 18:00:10 +02:00
ad325a0afe Implement basic gnuplot call 2018-09-21 17:57:39 +02:00
d2aa47899a First steps of job handling 2018-09-21 17:17:38 +02:00
5dd52e3ac5 Implement download, extracting and update of data
Make sure we have always the most recent data version
2018-09-21 15:52:21 +02:00
29c5d725f1 Add initialisation of working dir 2018-09-21 13:45:09 +02:00
506400a528 Basic structure for jogobot bot 2018-09-21 13:16:09 +02:00
e2f57dc670 Basic structure, init repo 2018-09-21 13:14:49 +02:00