Code Monkey home page Code Monkey logo

Comments (7)

gcgarner avatar gcgarner commented on August 23, 2024 1

I'm not near a computer at the moment. Will post an interim solution later today

from iotstack.

gcgarner avatar gcgarner commented on August 23, 2024

I'll push an update next week that will set the time zones correctly for all containers

from iotstack.

gcgarner avatar gcgarner commented on August 23, 2024

Sorry i forgot to get back to you on this

You can edit your ./services/nodered/nodered.env and add TZ=America/New_York or whatever your time-zone is . Run cat /etc/timezone in the terminal to find the correct format

Afterwards run docker-compose up -d and it should be fixed

from iotstack.

Paraphraser avatar Paraphraser commented on August 23, 2024

This was not working for me. I eventually traced it to there being no "env_file" entry in the nodered grouping in the YAML file. For the record, I did a "git pull" before doing all this.

  1. Excerpt from unedited YAML file:
  nodered:
    container_name: nodered
    build: ./services/nodered/.
    restart: unless-stopped
    user: "0"
    ports:
      - 1880:1880
    volumes:
      - ./volumes/nodered/data:/data
  1. Test (TZ does not take effect):
$ cat ~/IOTstack/services/nodered/nodered.env 
TZ=Australia/Sydney

$ docker-compose up -d
nodered is up-to-date
influxdb is up-to-date
mosquitto is up-to-date
pihole is up-to-date
grafana is up-to-date
portainer is up-to-date

$ docker exec -it nodered bash
bash-4.4# date
Tue Nov 12 05:13:47 UTC 2019

  1. Excerpt from edited YAML file:
  nodered:
    container_name: nodered
    build: ./services/nodered/.
    restart: unless-stopped
    user: "0"
    ports:
      - 1880:1880
    env_file:
      - ./services/nodered/nodered.env
    volumes:
      - ./volumes/nodered/data:/data
  1. Test (TZ does take effect):
$ cat ~/IOTstack/services/nodered/nodered.env 
TZ=Australia/Sydney

$ docker-compose up -d
Recreating nodered ... 
mosquitto is up-to-date
grafana is up-to-date
portainer is up-to-date
pihole is up-to-date
Recreating nodered ... done

$ docker exec -it nodered bash
bash-4.4# date
Tue Nov 12 16:23:26 AEDT 2019

from iotstack.

gcgarner avatar gcgarner commented on August 23, 2024

Thanks, I'm working on injecting all the time-zones into all the containers I added the env file to my version and forgot the original one does not have the file yet

from iotstack.

ddean6232 avatar ddean6232 commented on August 23, 2024

Thanks @Paraphraser Phill.... worked like a charm

from iotstack.

gcgarner avatar gcgarner commented on August 23, 2024

Time-zone has been added for nodered and pihole

If you have an existing nodered and/or pihole it requires you to select complete template from build menu

from iotstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.