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 day ago
fossilsforall OP

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

1 day 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 day 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 day 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 day 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.

21 hours ago
Clen23

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

22 hours ago
fossilsforall OP

Wait why what you use instead lol

21 hours 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 :)

21 hours 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

21 hours ago
Trip-Trip-Trip

Who needs data types anyway. Strings for everything!

1 day ago
max_208

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

1 day ago
jitty

As if JSON offers a breadth of types.

1 day 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 day ago
jitty

You already have to do that with BigInt

1 day ago
Katniss218

Just edit the raw binary of the file

51 minutes 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!

17 hours ago
fossilsforall OP

Its a metaphor

1 day ago
Trip-Trip-Trip

A meta for what?

1 day 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 day 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

21 hours ago
Simiouch

What's the link? :)

1 day ago
fossilsforall OP

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

21 hours ago
SebSnares

+1

17 hours ago
ShredsGuitar

Looks cool. I wish apple watch had it too

1 day ago
fossilsforall OP

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

1 day ago
prindacerk

Android has one.

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

1 day ago
fossilsforall OP

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

1 day ago
prindacerk

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

1 day ago
--TYGER--

And one app with several watch faces:

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

1 day ago
sirchandwich

“weather”: “N/A”

I could do that!

13 hours ago
kbn_

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

10 hours ago
fossilsforall OP

Would have been a great title

10 hours 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 day ago
fossilsforall OP

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

1 day 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 day ago
JohnDoen86

Your watch is hilariously big for your wrist lol

23 hours ago
fossilsforall OP

I love my giant watch

21 hours 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.

22 hours ago
fossilsforall OP

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

21 hours ago
Clen23

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

21 hours ago
fossilsforall OP

Oh that's just the emulator for testing

21 hours ago
WrennReddit

"hr": "-- bpm"

RIP OP

21 hours ago
BungalowsAreScams

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

11 hours ago