CameraWifiMotion icon indicating copy to clipboard operation
CameraWifiMotion copied to clipboard

Support PlatformIO

Open quixony opened this issue 3 years ago • 5 comments

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.

quixony avatar Sep 22 '21 12:09 quixony

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 avatar Oct 24 '21 23:10 tichaonax

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

tichaonax avatar Oct 25 '21 00:10 tichaonax

@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.

quixony avatar Oct 25 '21 12:10 quixony

Thanks l will pull and checkout your work!

tichaonax avatar Oct 25 '21 12:10 tichaonax

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.

alanesq avatar Nov 21 '21 12:11 alanesq