Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary config file for D1 Mini #532

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Conversation

klaasnicolaas
Copy link
Owner

@klaasnicolaas klaasnicolaas commented Jul 7, 2024

This fixes a bug where a regular ESP8266 board always installs the software that was actually intended for the Wemos D1 Mini.

Related to: #528

Summary by CodeRabbit

  • Documentation
    • Removed Wemos D1 mini option from the list of supported microcontrollers in project setup instructions.
    • Updated text and diagrams to reflect only ESP32 and ESP8266 microcontrollers.
    • Removed affiliate links related to Wemos D1 mini.
    • Adjusted pin mappings for Photodiode and status LED connections on ESP32 and ESP8266 boards.

@klaasnicolaas klaasnicolaas added bugfix Fixing a bug. cleanup Cleanup of code. labels Jul 7, 2024
Copy link

vercel bot commented Jul 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
home-assistant-glow-wupl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2024 11:37pm

@klaasnicolaas klaasnicolaas added the documentation Solely about the documentation of the project. label Jul 7, 2024
Copy link
Contributor

coderabbitai bot commented Jul 7, 2024

Walkthrough

Walkthrough

The changes involve the removal of the Wemos D1 mini microcontroller option across various documentation files. This alteration is reflected in the README, the Getting Started guide, and the diagram reference file. The focus remains on using either ESP32 or ESP8266 boards, with corresponding updates to pin mappings and connection descriptions.

Changes

Files Change Summary
Readme.md Removed Wemos D1 mini from microcontroller options and corresponding links.
docs/docs/getting-started.mdx Removed Wemos D1 mini V4.0 option and affiliate links; updated text for ESP32 or ESP8266.
docs/docs/reference/diagram.mdx Updated Photodiode and LED pin mappings to replace Wemos D1 mini with ESP8266 connections.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4d7e61a and 7529c79.

Files selected for processing (3)
  • Readme.md (2 hunks)
  • docs/docs/getting-started.mdx (2 hunks)
  • docs/docs/reference/diagram.mdx (1 hunks)
Additional context used
Markdownlint
Readme.md

53-53: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


54-54: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


55-55: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


51-51: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


52-52: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)

Additional comments not posted (3)
docs/docs/reference/diagram.mdx (2)

27-32: LGTM! Wemos D1 mini removed from Photodiode GPIO pin table.

The removal of the Wemos D1 mini from the GPIO pin table for the Photodiode is consistent and correct.


38-43: LGTM! Wemos D1 mini removed from Status LED GPIO pin table.

The removal of the Wemos D1 mini from the GPIO pin table for the Status LED is consistent and correct.

docs/docs/getting-started.mdx (1)

28-28: LGTM! Wemos D1 mini removed from hardware section.

The removal of the Wemos D1 mini from the list of microcontrollers and their affiliate links is consistent and correct.

Comment on lines 51 to 55
- ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
- ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_DCd13n1) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
- Wemos D1 mini - [AliExpress](https://s.click.aliexpress.com/e/_DFkIzM7) or [Banggood][wemos-d1-bg-shop] or [AliExpress][wemos-d1-ali-shop]
- Dupont Jumpers (female to male) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
- 3D-printed case (see the [case](https://glow-energy.io/docs/reference/cases) folder)
- LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_DDkX3zN) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the indentation issues for the list items.

The indentation is inconsistent for list items at the same level.

-  - ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
-  - ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_DCd13n1) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
- - Dupont Jumpers (female to male) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
- - 3D-printed case (see the [case](https://glow-energy.io/docs/reference/cases) folder)
- - LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_DDkX3zN) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
- - LED RGB 5mm 4 pin - kathode: [AliExpress](https://s.click.aliexpress.com/e/_Dn1D0wT) or [Banggood][rgbled-bg-shop] or [AliExpress][rgbled-ali-shop]
+ - ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
+ - ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_DCd13n1) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
+ - Dupont Jumpers (female to male) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
+ - 3D-printed case (see the [case](https://glow-energy.io/docs/reference/cases) folder)
+ - LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_DDkX3zN) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
+ - LED RGB 5mm 4 pin - kathode: [AliExpress](https://s.click.aliexpress.com/e/_Dn1D0wT) or [Banggood][rgbled-bg-shop] or [AliExpress][rgbled-ali-shop]
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
- ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_DCd13n1) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
- Wemos D1 mini - [AliExpress](https://s.click.aliexpress.com/e/_DFkIzM7) or [Banggood][wemos-d1-bg-shop] or [AliExpress][wemos-d1-ali-shop]
- Dupont Jumpers (female to male) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
- 3D-printed case (see the [case](https://glow-energy.io/docs/reference/cases) folder)
- LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_DDkX3zN) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
- ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
- ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_DCd13n1) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
- Dupont Jumpers (female to male) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
- 3D-printed case (see the [case](https://glow-energy.io/docs/reference/cases) folder)
- LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_DDkX3zN) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
Tools
Markdownlint

53-53: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


54-54: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


55-55: Expected: 2; Actual: 0
Inconsistent indentation for list items at the same level

(MD005, list-indent)


51-51: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


52-52: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)

@klaasnicolaas klaasnicolaas merged commit 1d1e0b0 into develop Jul 7, 2024
9 checks passed
klaasnicolaas added a commit that referenced this pull request Jul 17, 2024
* Fix code in docs showing the !extend way (#520)

* Remove unnecessary if condition in deploy workflow (#521)

* ⬆️ Update esphome/build-action action to v3.2.0 (#523)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Use project.version for combine manifest build (#524)

* Add check for firmware update button (#525)

* Remove unnecessary button component code

* ⬆️ Update actions/download-artifact action to v4.1.8 (#529)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ⬆️ Update actions/upload-artifact action to v4.3.4 (#530)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unnecessary config file for D1 Mini (#532)

* Remove unnecessary config file for D1 Mini

* Remove Wemos D1 Mini from the docs

* ⬆️ Lock file maintenance (#531)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ⬆️ Update dependency @easyops-cn/docusaurus-search-local to v0.44.3 (#534)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ⬆️ Update actions/setup-node action to v4.0.3 (#535)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add note about GPIO pin variations in wiring diagram (#537)

* ⬆️ Lock file maintenance

* Change if condition for building docs (#541)

* Change if condition for building docs

* Small change on if statement

* Add optional hardware to use for prototyping (#542)

* ⬆️ Update dependency @fortawesome/free-solid-svg-icons to v6.6.0 (#545)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ⬆️ Update dependency @fortawesome/free-brands-svg-icons to v6.6.0 (#544)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ⬆️ Update dependency @fortawesome/fontawesome-svg-core to v6.6.0 (#543)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Bump Home Assistant Glow to v4.1.1

* Fix typo in docs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@klaasnicolaas klaasnicolaas deleted the klaas-2024-042 branch October 1, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixing a bug. cleanup Cleanup of code. documentation Solely about the documentation of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant