Roman Desk Clock and Calendar

A place for you to show off what you have made with LiveCode

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Roman Desk Clock and Calendar

Post by j9v6 »

Well, it had to be done. So I did it. A Roman Desk Clock and Calendar for iPad and iPhone written in Livecode.
Roman desk clock
Roman desk clock
See https://apps.apple.com/gb/app/roman-clo ... 6478309075 to read the blurb on the AppStore.

Apparently the longest date & time this century in Roman numerals is 23:38 on August 28th 2088 which is what it reads on the screenshot. (You can see I plan for the app to be running well into the future). My inspiration for the app icon was the time of day I built the first version for the AppStore.
Roman desk clock app icon
Roman desk clock app icon
RomanClock-Icon-144x144.png (4.25 KiB) Viewed 42282 times
Al 🥳
stam
Posts: 3210
Joined: Sun Jun 04, 2006 9:39 pm

Re: Roman Desk Clock and Calendar

Post by stam »

Well I contributed ;)

Works well on desktop too... but would be cool if you had a quick tutorial for latin numerals built in :)
Hutchboy
Posts: 166
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Roman Desk Clock and Calendar

Post by Hutchboy »

Hi,

I contributed too. It has a nice clean interface and I like the settings panel. I'd like to hear how easy/hard it was to get this onto the App Store.

-Mike
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

Wait.. you bought it? You did! Thanks guys… I wasn’t trying for sales here. I just wanted to share that there’s another LiveCode iOS App out there and show some screenshots and images.

As for your suggestion.. I suppose I could add a help page to explain roman numerals… or link to Wikipedia?

There’s an update coming soon. As Roman numerals don’t have zero, midnight displays as just a colon. Technically this is correct, but I’m adding a little logic to show “MEDIA NOX” (Midnight) for the midnight minute instead. Hope you like it. I’ll probably add the Roman Numerals help link or info at the same time.

Cheers, Al.
stam
Posts: 3210
Joined: Sun Jun 04, 2006 9:39 pm

Re: Roman Desk Clock and Calendar

Post by stam »

j9v6 wrote: Mon Feb 26, 2024 7:43 pm Thanks guys…
You’re welcome! Was just curious and £0.99 isn’t bank breaking exactly ;)
j9v6 wrote: Mon Feb 26, 2024 7:43 pm As for your suggestion.. I suppose I could add a help page to explain roman numerals… or link to Wikipedia?
Might be more work…. But a quick cheat sheet for the basics and a URL to a full reference?

Stam
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

Hutchboy wrote: Mon Feb 26, 2024 3:15 am Hi,

I contributed too. It has a nice clean interface and I like the settings panel. I'd like to hear how easy/hard it was to get this onto the App Store.

-Mike
Hi Mike, it’s not too difficult to get on the AppStore. There’s a process to follow as with most things. I found that following the Livecode lesson helped immensely as long as you can navigate any UI changes in the Apple apps and version of Livecode used in the lesson. https://lessons.livecode.com/m/4069/l/3 ... -app-store
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Roman Desk Clock and Calendar

Post by dunbarx »

Hi.

Just curious, how did you implement successive values of the time display? A look-up table that was read second by second? Or perhaps some predefined sequences that can be called as needed?

Craig
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

dunbarx wrote: Tue Feb 27, 2024 3:17 pm Hi.

Just curious, how did you implement successive values of the time display? A look-up table that was read second by second? Or perhaps some predefined sequences that can be called as needed?

Craig
Hi Craig,

I use the send command to update the clock every minute.

E.g. send “updateClock” to me in 60 seconds

My updateClock command calculates which roman numerals to use and updates the display.


Al.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Roman Desk Clock and Calendar

Post by dunbarx »

My updateClock command calculates which roman numerals to use
That is what I was wondering about. You cannot really "calculate" the required new display, no? So I thought you either had a large look-up table (tedious to build) or some sort of rules-based gadget that determines the next reading based on the previous: (Pseudo)

Code: Select all

if char - 3 to -1 of tDisplay = "III" then put "IV" into char -3 to -1 of tDisplay
if char -2 to -1 of tDisplay = "IX" then put "X" into char -2 to -1 of tDisplay
...
That sort of thing.

Craig
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

Well you could do it that way but it’s very long winded.
A simpler way is to use a constant with the numerals you need in it.

e.g. kNumerals = “I,II,III,IV,V,VI,VII,VIII,IX,X… etc”

Then select the nth item from the constant for the hours, minutes, etc. So something like 5:08 would give you V and VIII.

Al.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Roman Desk Clock and Calendar

Post by dunbarx »

Ah, Of course.

I was stuck on thinking about a counter, as opposed to simply substituting values minute by minute. Unstuck now...

Craig
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

Just uploaded version 1.0.1 to the AppStore with some enhancements for you. :wink:
stam
Posts: 3210
Joined: Sun Jun 04, 2006 9:39 pm

Re: Roman Desk Clock and Calendar

Post by stam »

Cool update.

Still works perfectly on MacOS ("but not verified for MacOS").
I hope you may consider uploading this to the Mac App Store as well (easier to update my Mac lol)

Stam
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Roman Desk Clock and Calendar

Post by j9v6 »

stam wrote: Thu Feb 29, 2024 7:03 pm Cool update.

Still works perfectly on MacOS ("but not verified for MacOS").
I hope you may consider uploading this to the Mac App Store as well (easier to update my Mac lol)

Stam
Now verified for macOS 👍
Post Reply