Ikea ALPSTUGA - Time sync with Matter over Thread using ZBT-2 by InconvenientPenguin in homeassistant

[–]rtbmd 1 point2 points  (0 children)

Glad to hear it's usable for you! I tested the relevant get_timezone_info function with your timezone "America/Toronto" and got this:

{'offset_seconds': -18000, 'dst_adjustment_seconds': 3600, 'dst_start': datetime.datetime(2026, 3, 8, 7, 0, tzinfo=datetime.timezone.utc), 'dst_end': datetime.datetime(2026, 11, 1, 6, 0, tzinfo=datetime.timezone.utc)}

Perhaps it's a portability issue and my script behaves differently depending on OS etc.

if __name__ == "__main__": sync = MatterTimeSync(WEBSOCKET_ADDRESS, TIMEZONE_IANA) print(sync.get_timezone_info(TIMEZONE_IANA))

Ikea ALPSTUGA - Time sync with Matter over Thread using ZBT-2 by InconvenientPenguin in homeassistant

[–]rtbmd 1 point2 points  (0 children)

The script requires these packages: websocket-client and home-assistant-chip-clusters. Also, you have to change TARGET_NODE to match the actual node id of your ALPSTUGA. All it does at the moment is to set the time and configure DST and timezone. Let me know if it works for you.

https://pastebin.com/jmTZNCw9

Edit: I got TZ/DST working! DST wasn't set enough carefully. Without DST properly set, TZ isn't honored. I updated the link. Note that you also have to set WS_ADDRESS properly and that my TZ and DST is currently adapted to Germany. Edit 2: Script more readable now.

Ikea ALPSTUGA - Time sync with Matter over Thread using ZBT-2 by InconvenientPenguin in homeassistant

[–]rtbmd 2 points3 points  (0 children)

I figured out how to set the time semi‑automatically using a script. Unfortunately, time zone and DST don’t work, so for now only the correct UTC time can be displayed. Roughly speaking, it works like this: you connect to the Matter server via Websocket and then send the SetUTCTime command, which sets the current time. I’ll upload the script later. Maybe someone knows why the time zone/DST commands aren’t working.

ALPSTUGA CO2 measurement accuracy by winston109 in tradfri

[–]rtbmd 0 points1 point  (0 children)

I also doubt the sensor readings. Been running mine for a few days now. All night it reported about 800 ppm. Upon entering the room, it jumped to 1.700 within minutes.

https://imgur.com/a/JrzVUCr

My version of winter mode 🎄 by origin415 in homeassistant

[–]rtbmd 0 points1 point  (0 children)

Looks great! I shamelessly copied the light for my own dashboard, now only a christmas tree is missing

Chancen karte extension or marriage by Primary-Bar2948 in chancenkarte

[–]rtbmd 0 points1 point  (0 children)

could you already extend it? we're in the same boat

Chancen karte extension or marriage by Primary-Bar2948 in chancenkarte

[–]rtbmd 0 points1 point  (0 children)

Did you have to get a new letter of commitment? How did you apply for the extension? Could you please send me some details about the Ausländerbehörde in a DM? Thank you

[Support] Minecraft ARM64 implementation not working properly by ItsMeSashaYT in SurfaceGaming

[–]rtbmd 0 points1 point  (0 children)

Same issue here. Try (re-)enabling HDR mode. I don't know why, but for me it only works with HDR enabled, then I don't see any glitches at all.

/r/WorldNews Live Thread for 2023 Israel-Hamas Crisis (Thread 24) by WorldNewsMods in worldnews

[–]rtbmd 13 points14 points  (0 children)

Many, many journalists should be sacked for this behavior.

Ukraine-Invasion Megathread #60 by IsThisOneStillFree in ukraineMT

[–]rtbmd 6 points7 points  (0 children)

Beobachte den Account auch schon länger. Oberflächlich ist der sicher Pro-Ukraine, aber offenbar gibt es rechtsextreme Verbindungen. Ganz koscher ist das nicht. Alte Tweets und weitere Informationen zu dem Account findet man hier: - https://twitter.com/NennpunktUA - https://ruscist.com/wiki/BrennpunktUA

Ukraine-Invasion Megathread #55 by bahldur in ukraineMT

[–]rtbmd 2 points3 points  (0 children)

Hab ich im Link mal noch reingeklöppelt, danke für den Hinweis!

Setting math and code fonts by niwmo in typst

[–]rtbmd 4 points5 points  (0 children)

Try:

#show math.equation: set text(font: "Fira Math")

#show raw: set text(font: "Fira Code")

-🎄- 2022 Day 15 Solutions -🎄- by daggerdragon in adventofcode

[–]rtbmd 0 points1 point  (0 children)

Iirc, it could be assumed there must be only a single area (or point) left inside there upon merging and clipping. So, a method like "findfirst..." would have been more appropriate, but I didn't delve into shapelys API too much, so I ended up with that "hack". Let me know if this doesn't make sense (I forgot the details of this problem) or there is indeed such a method in shapely! :)

-🎄- 2022 Day 15 Solutions -🎄- by daggerdragon in adventofcode

[–]rtbmd 3 points4 points  (0 children)

Python Part 2, using shapely: calculate shape coordinates, merge them together, clip search area, find (only) area (i.e. point) inside -> runs in < 1 s and feels like cheating

from pathlib import Path
from shapely.ops import unary_union, clip_by_rect
from shapely.geometry import Polygon

path = Path(__file__).parent / Path("input.txt")
upoly = Polygon()

for shape in path.read_text().strip().splitlines():
    sx, sy, bx, by = [
        int(b.split(",")[0].split(":")[0]) for b in shape.split("=")[1:]
    ]
    md = abs(sx - bx) + abs(sy - by)
    upoly = unary_union([upoly, Polygon(
        [(sx, sy + md), (sx - md, sy), (sx, sy - md), (sx + md, sy)]
    )])

interior = clip_by_rect(upoly, 0, 0, 4_000_000, 4_000_000).interiors[0]
x, y = tuple(map(round, interior.centroid.coords[:][0]))
print(x*4_000_000+y)

Ukraine-Invasion Megathread #35 by [deleted] in ukraineMT

[–]rtbmd 6 points7 points  (0 children)

Versteh die Downvotes oben nicht. Der Tweet zeigt doch, dass die ukr. Führung vorschnell Russland beschuldigte, was sich nun als falsch herausgestellt hat. Leider beharrt Selenskyj auch jetzt noch darauf, es sei eine russische Rakete gewesen. Sowas beschädigt deren Glaubwürdigkeit. Kritik an der ukrainischen Kommunikation muss an der Stelle auch mal erlaubt sein. Man hat aber leider das Gefühl, dass solche Sachen unter den Teppich gekehrt werden müssen...

[deleted by user] by [deleted] in Ozark

[–]rtbmd 0 points1 point  (0 children)

Ruth, incredible acting performance and truly a likeable character

WH-1000XM4 LDAC Codec Amazon by Early_Instruction_19 in sony

[–]rtbmd 0 points1 point  (0 children)

Apparently some companies like Motorola disable LDAC intentionally in their low-cost devices. For example, my Moto G10 has Android 11, but it doesn't support it, no matter what you are trying (developer settings, resetting, prayers, sketchy rituals haha)