CameraWifiMotion
CameraWifiMotion copied to clipboard
Support PlatformIO
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.
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
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
-
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.
-
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.
Thanks l will pull and checkout your work!
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.