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

Support PlatformIO #14

Open
quixony opened this issue Sep 22, 2021 · 5 comments
Open

Support PlatformIO #14

quixony opened this issue Sep 22, 2021 · 5 comments

Comments

@quixony
Copy link

quixony commented Sep 22, 2021

I would strongly prefer being able to compile this awsome project within PlatformIO.
This also would have the benefit that libraries are handled automatically (per define)

I am working on a addition of MQTT service in the current project and would have been glad to use VSCode (jumping between funktions and files). Hopefully I will be able to pull the changes soon.

The changes needed to also support PlatformIO should not be immense.

@tichaonax
Copy link

I second that, platformio has matured and its integration with VSCode makes large projects easy to maintain.
But I do appreciate your work.

I tried to compile the current one in Arduio and I am getting the following error not sure why.

ESP_WiFiManager.h: No such file or directory

image

@tichaonax
Copy link

I would strongly prefer being able to compile this awsome project within PlatformIO. This also would have the benefit that libraries are handled automatically (per define)

I am working on a addition of MQTT service in the current project and would have been glad to use VSCode (jumping between funktions and files). Hopefully I will be able to pull the changes soon.

The changes needed to also support PlatformIO should not be immense.

How far are you with MQTT. I want to explore automatic configuration with Homeassistant

@quixony
Copy link
Author

quixony commented Oct 25, 2021

@tichaonax

  1. You seem to not have all dependencies installed correctly. ArduinoIDE claims the WifiManger is not found. Either install it via the package manager or extract the zip-file from the repo to the modules folder in ArduinoIDE.

  2. PlatformIO is working for me now after some changes to existing code. I planned to commit all together (PlatformIO and MQTT Support) as they both need changes in more than one file.
    MQTT is working for me but I am struggeling with the HA-Discovery. I do not know why but some channels are not correctly recognized. This is my current state of work: https://github.com/quixony/CameraWifiMotion

My main problem is having time to finish that work, comment everything nicely and improve some functions. I am sorry but it will still take a while until I am done :( But if so, I will give you an update.

@tichaonax
Copy link

Thanks l will pull and checkout your work!

@alanesq
Copy link
Owner

alanesq commented Nov 21, 2021

After seeing this thread it prompted me to have a try of PlatformIO and I have now modified my sketch so it works with both Arduino IDE and PlatformIO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants