An python script that allows you to upload excel sheets (xlsx, in the following spread sheet) automatically to repairmonitor.org
- configure in
config.pylike file to upload, date of repair cafe, language, ... - create
.credentials/auth.ymlif not existing already, and put your password and your username (see example blow) This will uploadRepMon -DataSource.xlsxto repairmonitor.org as the user given in.credentials/auth.ymlwith the date given in - Run in terminal:
pipenv run python driver.pyor double click upload.bat In order to make upload.bat work you have to make sure that python and pipenv is in your PATH variableecho %PATH%
This is how the auth.py should look like if your username is My Repair Café and your password is aVerySecretPassword:
PASSWORD='aVerySecretPassword'
USER='My Repair Café'
The file excel_adapter.py includes a mapping of your excel column names and the internal names.
Make the right (after the :) fit your column names
The file excel_adapter.py includes adapter functions that allow you to transform values of you spread sheet to fit the needed values for repairmonitor.org The needed values are part of the documentation of each adapter function.
See Requirements below!
- Edit config.yaml to use either de, en, fr, nl
- Add your password + user name to .credentials/auth.yml
- Run in terminal:
pipenv install - Provide spread sheet
- Adopt mapping (see below)
- Adopt adapters (see below)
- Python3
- pipenv
- spread sheet File including following information:
- Reference number
- Kind of product
- Category
- Barnd
- Year of production
- Model, type number and/or serial number
- Problem description + probably cause
- Repairer
- Defect found
- Repair status (repaird, not/half repaird)
- Additional information on repair (what did you repair, why didn't you repair)
- reparability (optional)
- information used (yes, no)
- Information Link if used
- Information source if used
- Suggestions for other repairers
- To get help with the usage please use conversesion
- If you find bugs please report them as issues
- If you wanna help please issue an PR
To Werner Valeskine and Reapair Café Voitsberg to provide data source.