ProgrammerHumor

evenMyWatchUsesJson

evenMyWatchUsesJson
evenMyWatchUsesJson

Saw a post on PCmasterrace with a bios watch face so today I took a whack at Monkey C and decided to make a JSON watch face. I know its been done but mine is free.

https://www.reddit.com/gallery/1m0852z
Reddit

Discussion

dim13
:g::c::terraform:

r/ISO8601 gore

1 week ago
fossilsforall OP

You dont use commas and abbreviated text names for your dates in json files? How odd

1 week ago
saschaleib
:asm::cs::cp::c::j::js:

Definitely ISO, but preferably Unix timestamps plus offset data for your time zone.

We don’t want Joe from accounting looking at it and thinking he could understand any of this, right?

1 week ago
RiceBroad4552
:s:

The problem with Unix timestamps is that they are as intuitively graspable as Star Trek star dates. There are for sure some people who can interpret them on the fly, but for average nerds it's just some opaque numbers.

1 week ago
saschaleib
:asm::cs::cp::c::j::js:

I would argue that you should get your nerd-license revoked if you can't read Unix timestamps ;-)

(hey, this is r/ProgrammerHumor , don't take things too serious here!)

1 week ago
RiceBroad4552
:s:

The point was, there are people who can tell you (roughly) the date when looking at a timestamp!

But I can't, and I guess most nerds, even the ones with license, can't either.

1 week ago
Clen23

using "hr" on a watch for "heart rate" is diabolical

1 week ago
fossilsforall OP

Wait why what you use instead lol

1 week ago
Clen23

i'd use "heartrate" for simplicity and "bpm" for length, maybe there's better out there but i'm confident that "hr" can be confused with "hour" and is probably not the way to go.

it's mostly a personnal taste thing tbh, i mostly meant the comment above as a joke :)

1 week ago
fossilsforall OP

Yeah after I reread your comment I got it. Every other watch face just uses an icon but I had to be different

1 week ago
Excession638

"❤️" obviously lol

5 days ago
Trip-Trip-Trip

Who needs data types anyway. Strings for everything!

1 week ago
max_208

Me trying to read time as a Unix timestamp on my watch

1 week ago
jitty

As if JSON offers a breadth of types.

1 week ago
ChalkyChalkson

True, we should make json more pure and drop the list and number options, dict and string are technically enough. Or what if we reduce it to just a string, we could do it if we had some kind of format to encode a dict to a string...

1 week ago
jitty

You already have to do that with BigInt

1 week ago
Katniss218

Just edit the raw binary of the file

6 days ago
goatanuss

“data” is the worst offender. It’s overloaded with multiple unidentified values that are pipe and space delimited. Why use these delimiters when json is already structured? C’mon!

6 days ago
fossilsforall OP

Its a metaphor

1 week ago
Trip-Trip-Trip

A meta for what?

1 week ago
RiceBroad4552
:s:

Nothing against this here, it looks nice! But still:

I think I should post a "The world <insert: sci-fi utopia> if JSON wouldn't be used for everything" meme.

JSON is by far one of the most horrible data formats ever invented! It's actually not good for anything. Especially not for what it's usually used: It's complete trash for data serialization (only binary formats are valid for this use case), it's maximally shitty for configs (not even comments are allowed!), and it sucks also for human interaction as it doesn't come with any rich, unambiguous, and standardized data types (instead you have to interpret arbitrary strings), and is on top supper noisy.

1 week ago
fossilsforall OP

I use json a lot when I dont have a websocket server set up but I need 2 things to share data. One machine writes and the other reads

1 week ago
Simiouch

What's the link? :)

1 week ago
fossilsforall OP

I haven't made it public yet but will update when I do:)

1 week ago
SebSnares

+1

6 days ago
ShredsGuitar

Looks cool. I wish apple watch had it too

1 week ago
fossilsforall OP

There is solace in knowing android doesn't have it either

1 week ago
prindacerk

Android has one.

https://play.google.com/store/apps/details?id=net.k3rnel.nowjson

1 week ago
fossilsforall OP

But it doesn't have this one which i made myself

1 week ago
prindacerk

Ofcourse. Hope you will publish it as a new release.

1 week ago
--TYGER--

And one app with several watch faces:

https://play.google.com/store/apps/details?id=com.jeremysteckling.facerrel

1 week ago
sirchandwich

“weather”: “N/A”

I could do that!

6 days ago
kbn_

"What's stopping you from coding like this?"

6 days ago
fossilsforall OP

Would have been a great title

6 days ago
The-Tyler-Durden

This is so cool! Is it already on the garmin store? Will you add it? Or do I have to manually install it from github?

1 week ago
fossilsforall OP

I'll probably put it on the Garmin store tomorrow :)

1 week ago
saschaleib
:asm::cs::cp::c::j::js:

If you add the option to use Unix-timestamps instead of … this abomination … I’d definitely use that!

1 week ago
JohnDoen86

Your watch is hilariously big for your wrist lol

1 week ago
fossilsforall OP

I love my giant watch

1 week ago
Clen23

I love how they put placeholders for all the values from `system` but `activity` is all set to 0 and the user is essentially in cardiac arrest.

1 week ago
fossilsforall OP

Who's they? I built it lol and the heart rate shows 63bpm?

1 week ago
Clen23

in the first screenshot it's "-- bpm"

1 week ago
fossilsforall OP

Oh that's just the emulator for testing

1 week ago
WrennReddit

"hr": "-- bpm"

RIP OP

1 week ago
BungalowsAreScams

Reminds me of the terminal watch face: https://play.google.com/store/apps/details?id=com.watchfacestudio.awfterminal

6 days ago
mpanase

tbh, not a bad UI

6 days ago
TheseSignificance786
:c:

You know what? thats it unjsoning your watch

<system>

<time>22:00:21</time> <date>MON, Jul/14</date> <batt>50%</batt> <weather>N/A</weather>

</system>

<activity>

<data>0 | 0 | 0</data> <hr>-- bpm</hr>

</activity>

5 days ago