Reveil matin avec un bandeau de LEDs, un esp et Home-Assitant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. inocode:
  2. image: "java:8"
  3. variables:
  4. ESPURL: "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
  5. MEMORY: "custom_FlashSize=nodemcuv2_4M3M"
  6. INSTBOARD: "esp8266:esp8266"
  7. BOARD: "${INSTBOARD}:nodemcuv2"
  8. GITREMDEB: "https://github.com/JoaoLopesF/ESP8266-RemoteDebug-Telnet.git"
  9. before_script:
  10. - apt update
  11. - apt -y install xvfb
  12. - Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
  13. - export DISPLAY=":1"
  14. - cd /
  15. - wget --quiet "https://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz"
  16. - tar axf "arduino-1.8.2-linux64.tar.xz"
  17. - /arduino-1.8.2/arduino --pref "boardsmanager.additional.urls=${ESPURL}" --save-prefs
  18. - /arduino-1.8.2/arduino --install-boards "${INSTBOARD}"
  19. - /arduino-1.8.2/arduino --pref "compiler.warning_level=all" --save-prefs
  20. - /arduino-1.8.2/arduino --pref "${MEMORY}" --save-prefs
  21. - /arduino-1.8.2/arduino --board "${BOARD}" --save-prefs
  22. script:
  23. - /arduino-1.8.2/arduino --install-library "FastLED"
  24. - /arduino-1.8.2/arduino --install-library "PubSubClient"
  25. - cd "/root/Arduino/libraries/"
  26. - git clone "${GITREMDEB}"
  27. - cd "${CI_PROJECT_DIR}/arduino/${CI_PROJECT_NAME}"
  28. - cp "${CI_PROJECT_NAME}.example.h" "${CI_PROJECT_NAME}.h"
  29. - /arduino-1.8.2/arduino --verify "${CI_PROJECT_NAME}.ino"
  30. yaml:
  31. image: "python:alpine"
  32. before_script:
  33. - pip install "homeassistant"
  34. script:
  35. - hass --config "${CI_PROJECT_DIR}/home-assistant" --script check_config