diff --git a/.drone.yml b/.drone.yml index af3bf65..a2a0b47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -72,8 +72,33 @@ steps: from_secret: registry_host IMAGE: infoscreen:latest commands: - #- docker login -u $${DOCKER_USER} -p $${DOCKER_PASS} - docker-compose -p infoscreen -f docker-compose.yml rm -s -v -f - docker rmi $${REGISTRY_HOST}/$${IMAGE} || true - docker pull $${REGISTRY_HOST}/$${IMAGE} - - docker-compose -p infoscreen -f docker-compose.yml up --no-build -d \ No newline at end of file + - docker-compose -p infoscreen -f docker-compose.yml up --no-build -d +--- +kind: pipeline +type: ssh +name: refresh-client +depends_on: +- deploy +trigger: + branch: + - senpai + event: + - push +server: + host: + from_secret: ssh_client_host + user: + from_secret: ssh_client_user + ssh_key: + from_secret: ssh_key +steps: +- name: deploy + when: + branch: + - senpai + commands: + - export DISPLAY=:0 + - xdotool search --onlyvisible --class "chromium-browser" key F5 \ No newline at end of file diff --git a/src/components/PlantState.tsx b/src/components/PlantState.tsx index 11711d8..ab4b9e8 100644 --- a/src/components/PlantState.tsx +++ b/src/components/PlantState.tsx @@ -1,6 +1,8 @@ import * as React from "react" import { PlantState as PlantStateType } from "../lib/interfaces"; -import * as styles from "../styles/containers/PlantState.module.css" +import * as styles from "../styles/containers/PlantState.module.css"; +import WaterDrops from "../images/weather-icons/svg/wi-raindrops.svg"; +import Dust from "../images/weather-icons/svg/wi-dust.svg"; const PLANT_REFRESH_INTERVAL = 15 * 60 * 1000; @@ -37,11 +39,11 @@ const PlantState = ({ hassUrl, token, plants }: { hassUrl: string, token: string return