Compare commits

..

No commits in common. "435e71b4a713d7934c5969467f195dac7a5ba5e3" and "3445ab68c31ebd14ef0ea6953dfb00111d43bb1f" have entirely different histories.

2 changed files with 7 additions and 7 deletions

View File

@ -1,20 +1,20 @@
# This file is a template, and might need editing before it works on your project. # This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hugo # Full project: https://gitlab.com/pages/hugo
image: jguyomard/hugo-builder image: dettmering/hugo-build
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
before_script: before_script:
- apk --no-cache upgrade && apk --no-cache add samba samba-common-tools supervisor py-pip python3 py3-pip - apk --no-cache upgrade && apk --no-cache add samba samba-common-tools supervisor py-pip
build: build:
script: script:
- pip3 install requests - pip install requests
- python3 get_app_data.py $HAASP_TOKEN - python get_app_data.py $HAASP_TOKEN
- hugo - hugo
- smbclient '//192.168.30.129/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; rmdir '$CI_PROJECT_NAME';' - smbclient '//192.168.30.128/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; rmdir '$CI_PROJECT_NAME';'
- smbclient '//192.168.30.129/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; mkdir '$CI_PROJECT_NAME'; cd '$CI_PROJECT_NAME'; lcd public; mput *' - smbclient '//192.168.30.128/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; mkdir '$CI_PROJECT_NAME'; cd '$CI_PROJECT_NAME'; lcd public; mput *'
only: only:
- master - master

View File

@ -3,7 +3,7 @@ import requests
import sys import sys
import os import os
apps = {"broadlink": "68", "zwave": "60", "huee": "62", "webapp": "59", "yeelight": "87", "octoprint": "99", "postgresql": "102", "webapi": "104", "chromecast": "148", "mqtt": "152", "webgrid": "167"} apps = {"broadlink": "68", "zwave": "60", "huee": "62", "webapp": "59", "yeelight": "87", "octoprint": "99", "history": "102", "webapi": "104", "chromecast": "148", "mqtt": "152"}
headers = {"PRIVATE-TOKEN": sys.argv[1]} headers = {"PRIVATE-TOKEN": sys.argv[1]}
def get_data(id_number): def get_data(id_number):