Sun Rise and Set Times #27

Closed
opened 2026-10-05 01:16:41 +02:00 by adam · 5 comments
Owner

Hey Team,

Just a quick note to let you know that the sun rise and set times are reversed and have been for a long time, but worth a mention.

Sunrise is shown as PM (should be AM)
Sunset is shown as AM (should be PM)

INFO | Device:1 Channel: 0 Received DM: Sun From: ZL4JAY Mobile
meshing-around-meshing-around-1 | 2024-09-30 20:19:43,765 | DEBUG | System: Bot detected Commands:[{'cmd': 'sun', 'index': 0}]
meshing-around-meshing-around-1 | 2024-09-30 20:19:43,765 | DEBUG | System: location data for 1156817043 is -41.3466624,173.2050944
meshing-around-meshing-around-1 | 2024-09-30 20:19:44,467 | INFO | Device:1 Sending DM: SunRise: Tue 01 05:59PM Set: Wed 02 06:33AM

Hey Team, Just a quick note to let you know that the sun rise and set times are reversed and have been for a long time, but worth a mention. Sunrise is shown as PM (should be AM) Sunset is shown as AM (should be PM) INFO | Device:1 Channel: 0 Received DM: Sun From: ZL4JAY Mobile meshing-around-meshing-around-1 | 2024-09-30 20:19:43,765 | DEBUG | System: Bot detected Commands:[{'cmd': 'sun', 'index': 0}] meshing-around-meshing-around-1 | 2024-09-30 20:19:43,765 | DEBUG | System: location data for 1156817043 is -41.3466624,173.2050944 meshing-around-meshing-around-1 | 2024-09-30 20:19:44,467 | INFO | Device:1 Sending DM: SunRise: Tue 01 05:59PM Set: Wed 02 06:33AM <!-- github-sync-id:2557567676 -->
adam closed this issue 2026-10-05 01:16:41 +02:00
Author
Owner

haha thanks for pointing this out - dyslexia is a pain.

haha thanks for pointing this out - dyslexia is a pain. <!-- github-comment-id:2384101734 -->
Author
Owner

Thanks mate, love your work!

Thanks mate, love your work! <!-- github-comment-id:2384242494 -->
Author
Owner

is this also a docker? what is the local timezone of the docker?

I can push in a dockerfile with a configure string for local timezone if needed? here is the proposed solution so far

FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1

RUN apt-get update && apt-get install -y gettext tzdata locales && rm -rf /var/lib/apt/lists/*

# Set the locale default to en_US.UTF-8
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
    dpkg-reconfigure --frontend=noninteractive locales && \
    update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8 
ENV TZ="America/Los_Angeles"

WORKDIR /app
COPY . /app
COPY requirements.txt .

RUN pip install -r requirements.txt
COPY . .

COPY config.ini /app/config.ini
COPY entrypoint.sh /app/entrypoint.sh

RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]

is this also a docker? what is the local timezone of the docker? I can push in a dockerfile with a configure string for local timezone if needed? here is the proposed solution so far ``` FROM python:3.10-slim ENV PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y gettext tzdata locales && rm -rf /var/lib/apt/lists/* # Set the locale default to en_US.UTF-8 RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ dpkg-reconfigure --frontend=noninteractive locales && \ update-locale LANG=en_US.UTF-8 ENV LANG en_US.UTF-8 ENV TZ="America/Los_Angeles" WORKDIR /app COPY . /app COPY requirements.txt . RUN pip install -r requirements.txt COPY . . COPY config.ini /app/config.ini COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh ENTRYPOINT ["/app/entrypoint.sh"] ``` <!-- github-comment-id:2384569042 -->
Author
Owner

is this also a docker? what is the local timezone of the docker?

I can push in a dockerfile with a configure string for local timezone if needed? here is the proposed solution so far

FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1

RUN apt-get update && apt-get install -y gettext tzdata locales && rm -rf /var/lib/apt/lists/*

# Set the locale default to en_US.UTF-8
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
    dpkg-reconfigure --frontend=noninteractive locales && \
    update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8 
ENV TZ="America/Los_Angeles"

WORKDIR /app
COPY . /app
COPY requirements.txt .

RUN pip install -r requirements.txt
COPY . .

COPY config.ini /app/config.ini
COPY entrypoint.sh /app/entrypoint.sh

RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]

Hey Man - I'm based in New Zealand which is Pacific/Auckland timezone. Beautiful part of the world ;).

> is this also a docker? what is the local timezone of the docker? > > I can push in a dockerfile with a configure string for local timezone if needed? here is the proposed solution so far > > ``` > FROM python:3.10-slim > ENV PYTHONUNBUFFERED=1 > > RUN apt-get update && apt-get install -y gettext tzdata locales && rm -rf /var/lib/apt/lists/* > > # Set the locale default to en_US.UTF-8 > RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ > dpkg-reconfigure --frontend=noninteractive locales && \ > update-locale LANG=en_US.UTF-8 > ENV LANG en_US.UTF-8 > ENV TZ="America/Los_Angeles" > > WORKDIR /app > COPY . /app > COPY requirements.txt . > > RUN pip install -r requirements.txt > COPY . . > > COPY config.ini /app/config.ini > COPY entrypoint.sh /app/entrypoint.sh > > RUN chmod +x /app/entrypoint.sh > ENTRYPOINT ["/app/entrypoint.sh"] > ``` Hey Man - I'm based in New Zealand which is Pacific/Auckland timezone. Beautiful part of the world ;). <!-- github-comment-id:2384666467 -->
Author
Owner

Thank you! Sunrise and sunset times are perfect now!

Thank you! Sunrise and sunset times are perfect now! <!-- github-comment-id:2384734799 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#27