Skip to content

Replace hardcoded credentials with configuration file #3

@01bps

Description

@01bps

Description

Currently, credentials and URLs are hardcoded in the Python script. This makes it difficult for users to update their credentials without modifying the code directly.

What needs to be done:

  • Create a config.json or config.ini file to store:
    • WiFi login URL
    • Username
    • Password
    • Product type
  • Update wifi_login() to read from this configuration file
  • Add error handling if config file is missing
  • Update setup.md with instructions on how to configure the file
  • Add config.example.json to the repository (without real credentials)
  • Add config.json to .gitignore

Expected outcome:

Users can configure their credentials without touching the Python code.

Open for discussions! Feel free to suggest alternative approaches or ask questions.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions