Jonathan Golder
670e28d84f
Compatibility issue with recent pywikibot fixed
3 years ago
Jonathan Golder
d668817e6c
Merge branch 'release-0.2.1'
4 years ago
Jonathan Golder
aee4986957
Prepare release v0.2.1
4 years ago
Jonathan Golder
eed989fd2a
euroexchange: Fix removed APISite.getcurrenttime()
Pywikibot removed method APISite.getcurrenttime replaced with
APISite.server_time
4 years ago
Jonathan Golder
59aaac408d
Merge branch 'release-0.2' back into develop
7 years ago
Jonathan Golder
d37f4dbbd1
Merge branch 'release-0.2'
7 years ago
Jonathan Golder
76a174144a
Prepare release v0.2
7 years ago
Jonathan Golder
3da9e2cb1d
Add .gitignore file for python
7 years ago
Jonathan Golder
d130761401
Merge branch 'i#1-update-gnuplot-scripts' into develop
7 years ago
Jonathan Golder
6572a89085
descpage: Implement inserting helptext in code
Add helping comments to beginning of gnuplot scripts explaining data
source
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 years ago
Jonathan Golder
ecb6bb8607
Call DescPageBot in EuroExchangeBot
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 years ago
Jonathan Golder
11bfe90e3b
descpage: Implement gnuplot script update
Replace the current wiki script with local variant
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 years ago
Jonathan Golder
dd76936ee0
descpage: Prepare gnuplot script for wiki
We need to replace environment variable usage to simplify script usage
and be platform independent
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 years ago
Jonathan Golder
af55fde4db
descpage: implement loading gnuplot script
Issue #1 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 years ago
Jonathan Golder
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 (https://git.golderweb.de/wiki/jogobot-euroexchange/issues/1 )
7 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 )
7 years ago
Jonathan Golder
7c15e18071
Merge branch 'release-0.1.1' back into develop
7 years ago
Jonathan Golder
f235d2d0a6
Merge branch 'release-0.1.1'
7 years ago
Jonathan Golder
e49cf9aa50
Prepare bugfix release 0.1.1
7 years ago
Jonathan Golder
00d31dda47
FIX: enable update period check
For debugging purposes, this check was disabled and unintentionally not
reenabled
7 years ago
Jonathan Golder
6af5ed5d06
Merge branch 'i#2-check-gnuplot-exit' into develop
7 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 )
7 years ago
Jonathan Golder
efe6943659
Merge branch 'release-0.1' back into develop
7 years ago
Jonathan Golder
34c0835d22
Merge branch 'release-0.1'
7 years ago
Jonathan Golder
4395cb42eb
Prepare stable release v0.1
7 years ago
Jonathan Golder
3cd639eef9
Move configuration vars to jogobot config
7 years ago
Jonathan Golder
c35c296e92
Do not track gnuplotscripts in this repo
Since they are more config, we will use separate repo
7 years ago
Jonathan Golder
b3a0857ddd
Fix typo in Euroexchange
7 years ago
Jonathan Golder
0477940fdf
Define requirements
Installable via pip install -r requirements.txt
7 years ago
Jonathan Golder
f9a39a6f49
Make it possible to run Bot with -always
To be able to run script unattended
7 years ago
Jonathan Golder
638d2b6a3d
Do not raise Exception when image not exists
Just output a warning and go on with further jobs
7 years ago
Jonathan Golder
1d41e206c0
Fix deprecated calls to UploadRobot
7 years ago
Jonathan Golder
a0377e1f80
Fix typo in upload comment
7 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
7 years ago
Jonathan Golder
f28fad2edb
Fix old var name
7 years ago
Jonathan Golder
5cf5c5a597
fix Pywikibot does not import specialbots by default
7 years ago
Jonathan Golder
6c5eff65fb
For testing on betawiki, prepend prefix to filename
As otherwise we will overwrite original files on commons
7 years ago
Jonathan Golder
46447d6f32
Load jobs from json file
7 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
7 years ago
Jonathan Golder
3a46ea8ddc
Add update frequenzy in days to job
Check against timestamp of latest file revision
7 years ago
Jonathan Golder
e874804591
Store current job in bot object
For not having to provide it for each dependend method as param
7 years ago
Jonathan Golder
776950d990
Use UploadRobot directly from pywikibot.specialbots
Remove unneccessary import roundtrip via pywikibot/scripts/upload
7 years ago
Jonathan Golder
93827e9f3b
Log if new input file is downloaded
7 years ago
Jonathan Golder
206917ed6d
Implement file upload
7 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
7 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
7 years ago
Jonathan Golder
5e7f718b45
gnuplot_scripts: Remove download of data
We do this in python script
7 years ago
Jonathan Golder
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
7 years ago
Jonathan Golder
ad325a0afe
Implement basic gnuplot call
7 years ago
Jonathan Golder
d2aa47899a
First steps of job handling
7 years ago