That would look awesome Home Assistant Oktoberfest Edition
I understood dreiviertel to mean three/quarters so 3/4 eight is 15 mins to 8.?
I donāt understand ?
Would this be 12 hr or 24 hr ?
Iām sure we could work something out but weād need some more guidance for how to format the text.
For Example - all the minutes from (say) 3:00 to 4:00 and if that can be applied to all hours in the range.
Yes. Dreiviertel Acht is 3/4 before eight and used in distinct areas in Germany. Honestly not all Germans get it ( mee too )
I know that there is āViertelā acht which is 7:15 (Seeā¦itās complicated.)
So basically he would need
xx:15 = viertel
xx:30 = halb
xx:45 = Dreiviertel
And in 12 hours format.
But I would wait till he replies if itās a joke or not
I understood dreiviertel to mean three/quarters so 3/4 eight is 15 mins to 8.?
Yes, you have it right. German is so much more logical than English when it comes to spelling, pronunciation and grammar but there are some āpeculiaritiesā. Perhaps itās a Bavarian thing. So while āhalf eightā in English means half-past eight, in German it means half-way to eight, or 7:30. āThree-quarter eight,ā similarly, is three-quarters of the way to eight. Itās mind-boggling to an anglophone like myself but Iām sure English is more maddening to learn for my German friends since there are more exceptions than rules
My bucket list project is to build one of these clocks powered by a SBC or some sorts. Iāll need to work out a way for it to display ākurz nach dreiviertel achtā
https://storede.qlocktwo.com/de/qlocktwo-large
Edit: I am joking about the script but if you wanted a challenge, then there you go! I do want to build that clock though.
The way the script would work would be, that you have an automation that calls the script as soon as one of the relevant sensors change. The service call would contain the entity IDs which are needed to calculate the absolute humidity.
The problem with all this is, that - at least in the example - it just fires an event. But you could also trigger an automation, or manually set the state of some dummy-sensor. So how you are going to use it is up to you. I myself never used it, so I donāt know which route would make sense from a practical point of view. And as this is also quite old, the exact code how to fire an event might have changed as well. But I think youāll find some useful information when you dig deeper here in the forum while searching for topics related to the python-script integration.
BTW: For those who struggle with āviertel 8ā, imagine the 8 is a Pizza. If you ate 3/4 of it, you only have āviertel Pizzaā because you are 3/4 away from happiness.
Iām currently building a word clock 1m Square, so this is doable
Mine would have 5 minute resolution and a cheat 4 dots to add 0 to 4 mins to give me a full minute resolution.
Having said that I still donāt understand your resolution as it seems just be on the quarter hour. eg when would it change ?
Edit: It must change (for efficiency) on a whole minute, say at 7 or 8 minutes past not 7:30 m:s
Having said that I still donāt understand your resolution as it seems just be on the quarter hour. eg when would it change ?
This is getting off topic Once I get started I might start a thread on the subject, but my idea was to copy the QCLOCKTWO but with less precision. That clock changes for every minute, āEs ist sechs nach dreiā, āEs ist viertel nach funfā, etc. I was thinking: +/- 1 minute of the quarters to just state the hour/halb/viertel/dreiviertel. For +2ā to +7ā have ākurz nachā the respective quarter and for -7ā to -2ā have ākurz vorā the respective quarter. If I need more precision that, I can look at my damn watch That gives me the hour broken down into 12 (not equal) segments. Should be amusing and give good enough time precision for a wall clock.
Hmmm off-topic ā¦
The QClockTwo was one of the designs I looked at for my design and the weirdest was : -
I donāt like the moving parts though (maintenance)
I went with a 13 x 13 grid laser cut into 2mm copper plate
The hardest bit was selecting a good stencil font and squaring the resultant letter aspect ratios.
Yet to decide if Iāll go Raspberry Pi Zero W or Arduino
But thatās not my point if you can get your logic worked out to display we can get the text in a sensor, observe it over time and make any tweaks you need.
So ā¦ Any time after (say) 7 (but not 7 itself) the hour is listed as 8 ??? with the minutes shown as ???
(just make it easy for me
Burning, feel free to jump in any time here
might need to test it out. Also lingo is probably wrong around midnightā¦ mainly because I donāt know german.
{% set hour = hour if minute < 8 else hour + 1 if hour + 1 < 24 else 0 %}
{% set i = minute // 15 - 1 %}
{% set quarters = ['viertal', 'halb', 'dreiviertel' ] %}
{% set quarter = quarters[i] if i >= 0 else '' %}
{% set remainder = minute % 15 %}
{% set end = 'Uhr' if i == -1 and remainder in [0,1] or i == 2 and remainder == 14 else '' %}
{% set shortly = 'kurts' if remainder not in [14,0,1] else '' %}
{% if remainder == 14 %}
{% set quarter = quarters[i+1] if i + 1 < quarters | length else '' %}
{% endif %}
{% set beforeafter = '' %}
{% if shortly %}
{% set beforeafter = 'nach' if remainder in range(2,8) else 'vor' %}
{% if beforeafter == 'vor' %}
{% set quarter = quarters[i+1] if i + 1 < quarters | length else '' %}
{% endif %}
{% endif %}
{% set items = ['Es ist', shortly, beforeafter, quarter, hour | str , end] %}
{{ items | reject('eq','') | list | join(' ') }}
I havenāt been able to test it but, AWESOME!
Itās different in Switzerland. The Swiss do it similar as you do it in English, except for half past the hour.
German / Swiss / English
7 Uhr / 7 Uhr / 7 oāclock
Viertel 8 / Viertel nach 7 / a quarter past 7
Halb 8 / Halb 8 / half past 7
Dreiviertel 8 / Viertel vor 8 / a quarter to 8
The āviertel nach 7ā and viertel vor 8" is the normal German way too. My example above is the Bavarian variation only.
Ah, I see.
While I wrote it, I said to myself this is not how I remember Germans telling time, but the German guy said it so it has to be like this
Your template was almost perfect.
I had two make two grammatical adjustments kurts = kurz and the other one Iām not sure if it was a typo by @Bigfork do you really say viertal 8 and not viertel 8.
I also had to adjust the filter in the second last line from str to string
Otherwise it worked fine, I tested around 10 different examples and all of them were correct.
{% set hour = hour if minute < 8 else hour + 1 if hour + 1 < 24 else 0 %}
{% set hour = hour if hour < 13 and hour > 0 else hour - 12 if hour > 0 else 12 %}
{% set i = minute // 15 - 1 %}
{% set quarters = ['viertel', 'halb', 'dreiviertel' ] %}
{% set quarter = quarters[i] if i >= 0 else '' %}
{% set remainder = minute % 15 %}
{% set end = 'Uhr' if i == -1 and remainder in [0,1] or i == 2 and remainder == 14 else '' %}
{% set shortly = 'kurz' if remainder not in [14,0,1] else '' %}
{% if remainder == 14 %}
{% set quarter = quarters[i+1] if i + 1 < quarters | length else '' %}
{% endif %}
{% set beforeafter = '' %}
{% if shortly %}
{% set beforeafter = 'nach' if remainder in range(2,8) else 'vor' %}
{% if beforeafter == 'vor' %}
{% set quarter = quarters[i+1] if i + 1 < quarters | length else '' %}
{% endif %}
{% endif %}
{% set items = ['Es ist', shortly, beforeafter, quarter, hour | string , end] %}
{{ items | reject('eq','') | list | join(' ') }}
Edit: I did some more tests with hours above 12 and then the outcome is wrong, as I assume @Bigfork wants to have a 12 hour clock, so 13 = 1. Itās time to sleep over here, might take a look at it tomorrow to adjust this otherwise beautiful template.
Edit 2: found a solution, add the following after the first line:
{% set hour = hour if hour < 13 and hour > 0 else hour - 12 if hour > 0 else 12 %}
Iām not even German, I just live here (and like it so much I plan to stay for a long time).
I had two make two grammatical adjustments kurts = kurz and the other one Iām not sure if it was a typo by @Bigfork do you really say viertal 8 and not viertel 8 .
I noticed that too but @petro isnāt a German speaker so I wasnāt going to point out any spelling mistakes. I make enough in English and itās my native tongue. The āviertalā was my type-o. I didnāt spell check my spreadsheet
Read what I said above, researching my word clock I found out there were 22 regional variations on how to tell the time across Germany
What I canāt get my head round is (and a paraphrase here)
"How much cake do you have ? "
āI have a FULL cakeā¦ But someoneās eaten half of itā
"No, you just have āhalf a cakeā "
But I suppose itās the difference between āa glass glass half fullā vs āa glass half emptyā
As an engineer, Iād say that the glass was sub-optimally sized
Edit : so I missed out on that one as well, this time Petro stole our apples !
I was pulling our access area (porch, hall and two landings) wiring apart to label up for making smart
The only comment Iād make is that it should read
Es ist dreiviertel eins
It is supposed to be a word clock after all
9/10 must try harder
A nice diversion, well done to all
@petro, you may need to add another column for the US as Iāve often run into issues with āhalf pastā in the US