[GUIDE] Installing Web Interface on Windows

Antworten
Bendas
Beiträge: 7
Registriert: Mo 5. Jul 2021, 10:51
Wohnort: Olomouc
Hat sich bedankt: 3 Mal
Danksagung erhalten: 4 Mal

[GUIDE] Installing Web Interface on Windows

Beitrag von Bendas »

Hey!

First of all i want to say that my eng kinda sucks and i'm not any coder or programmer. I just connected parts of the puzzle together.

Maybe few steps of installation were useless, but i'm just sharing what i've done.

Installation (Windows)
  1. Download Python 3.6.6
  2. When you open the Python installer, you need to check the "Add Python 3.6 to PATH."
    rsz_python.png
    rsz_python.png (120.37 KiB) 3991 mal betrachtet
  3. Download the Web-Interface files.
  4. We need to edit requirements.txt. Paste this:

    Code: Alles auswählen

    pandas>=0.23.0
    plotly>=2.7.0
    dash==0.21.1
    dash_core_components==0.23.0
    dash_html_components==0.11.0
    dash_table_experiments==0.6.0
    dash_renderer==0.13.0
    pycurl==7.43.0.2
    numpy>=1.14.4
    dash_auth==1.0.2
    flask==1.0.2
    colorama==0.3.9
    requests==2.26
    
  5. We need to install the required files. Open the web-interface folder. Hold SHIFT and right click into folder. Choose Open PowerShell. Now paste this code to PowerShell.
    rsz_1powershell.png
    rsz_1powershell.png (126.94 KiB) 3991 mal betrachtet

    Code: Alles auswählen

    pip install -r requirements.txt
  6. Now we have to edit the start.bat file. Right click on start.bat and select Edit

    Code: Alles auswählen

    @echo off
    py MainProgram.py -a http://127.0.0.1:8443/ --remoteU="User" --remoteP="Password" --webU="Web" --webP="1234" --debug=0
    pause
    
  7. Now we have to open MFBot -> Global Settings -> Advanced View -> Network -> Remote access -> Enable remote access
    Important: To be able to start the remote access interface, the bot might need to run as administrator!
    You can see if that is the case as soon as you press "Test settings" and "Remote access" is highlighted red.

    Remote_access.png
    Remote_access.png (94.37 KiB) 3985 mal betrachtet
    Now..
    1. Update port to 8443
    2. Update the User management -> Administrator user, write User
    3. Update the User management -> Administrator password, write Password
  8. Now if you start start.bat it should be running.
  9. Now open the web what console says and login with Web and password 1234
    Console.png
    Console.png (34.31 KiB) 3985 mal betrachtet
  10. Open subfolder Utils and edit logUtil.py. We need to edit the

    Code: Alles auswählen

    open("log.txt","a").write(text + "\n")
    to

    Code: Alles auswählen

    open("log.txt","a", encoding='utf-8').write(text + "\n")
    After few hours and making few changes in program i highly recommend adding this "code" to the top of every .py file.

    Code: Alles auswählen

    # This Python file uses the following encoding: utf-8
    Also i highly recommend making empty file called __init__.py and put it in every folder.

    Code: Alles auswählen

    __init__.py
My personal tip for logging in from different network via Hamachi.

1. Download and install Hamachi

2. Open Hamachi -> Network -> Create new network
Hamachi1.png
Hamachi1.png (17.8 KiB) 3991 mal betrachtet
2,1. Give it a name and password.

3. Open Hamachi again and copy your IPv4 address
Hamachi2.png
Hamachi2.png (17.59 KiB) 3991 mal betrachtet
4. Now you can open your web-interface via your IPv4 hamachi adress + port 8050 (for example 25.0.0.0:8050)

5. On different PC and network just simply join your Hamachi room and it will work.
Hamachi3.png
Hamachi3.png (14.32 KiB) 3991 mal betrachtet
If you've got any errors or any trouble, reply and i will try to help you.

Later i will edit the post and also add tutorial for Linux.
Zuletzt geändert von Robin am So 18. Jul 2021, 11:11, insgesamt 2-mal geändert.
Folgende Benutzer bedankten sich beim Autor Bendas für den Beitrag (Insgesamt 4):
F0restbear (Sa 17. Jul 2021, 13:37) • Robin (So 18. Jul 2021, 11:11) • LostSoul (Do 5. Aug 2021, 22:13) • mangunowsky (Mi 26. Apr 2023, 12:45)
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste