Click here to Skip to main content
15,902,016 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 1,056 Pin
Amarnath S9-May-24 20:22
professionalAmarnath S9-May-24 20:22 
GeneralRe: Wordle 1,056 - 4 4 me Pin
pkfox9-May-24 21:18
professionalpkfox9-May-24 21:18 
GeneralRe: Wordle 1,056 Pin
ChandraRam9-May-24 23:25
ChandraRam9-May-24 23:25 
GeneralRe: Wordle 1,056 Pin
StarNamer@work10-May-24 1:30
professionalStarNamer@work10-May-24 1:30 
GeneralRe: Wordle 1,056 Pin
Cp-Coder10-May-24 1:38
Cp-Coder10-May-24 1:38 
GeneralRe: Wordle 1,056 (3/6) Pin
Jeremy Falcon10-May-24 4:13
professionalJeremy Falcon10-May-24 4:13 
GeneralRe: Wordle 1,056 Pin
Sandeep Mewara10-May-24 7:39
mveSandeep Mewara10-May-24 7:39 
GeneralWell that was satisfying. Pin
honey the codewitch9-May-24 13:58
mvahoney the codewitch9-May-24 13:58 
IP-API.com - Geolocation API[^] is a little web service to get a bunch of info about where you're at based on your IP (or an IP you give it)

I use it for my little internet clocks to fetch the timezone since they don't have GPS.

It can return values in CSV, JSON or other formats.

Arduino already has stream.readStringUntil(',') so parsing CSV seemed trivial. For quite awhile I was doing that.

On a lark, I decided to swap it out to use JSON and my little JSON pull parser for embedded.

The resulting code is actually a bit shorter than the CSV approach. And it doesn't take a lot of RAM because it's a pull parser (like XmlReader), and not a DOM

I'm leaving it in JSON

I love when stuff like that happens.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Well that was satisfying. Pin
PIEBALDconsult9-May-24 14:21
mvePIEBALDconsult9-May-24 14:21 
GeneralRe: Well that was satisfying. Pin
honey the codewitch9-May-24 14:28
mvahoney the codewitch9-May-24 14:28 
GeneralRe: Well that was satisfying. Pin
PJ Arends9-May-24 17:33
professionalPJ Arends9-May-24 17:33 
GeneralRe: Well that was satisfying. Pin
honey the codewitch9-May-24 19:35
mvahoney the codewitch9-May-24 19:35 
GeneralRe: Well that was satisfying. Pin
PIEBALDconsult10-May-24 4:34
mvePIEBALDconsult10-May-24 4:34 
GeneralRe: Well that was satisfying. Pin
honey the codewitch10-May-24 4:37
mvahoney the codewitch10-May-24 4:37 
GeneralRe: Well that was satisfying. Pin
PIEBALDconsult10-May-24 4:47
mvePIEBALDconsult10-May-24 4:47 
GeneralRe: Well that was satisfying. Pin
honey the codewitch10-May-24 4:55
mvahoney the codewitch10-May-24 4:55 
GeneralRe: Well that was satisfying. Pin
PIEBALDconsult10-May-24 5:53
mvePIEBALDconsult10-May-24 5:53 
GeneralRe: Well that was satisfying. Pin
honey the codewitch10-May-24 5:53
mvahoney the codewitch10-May-24 5:53 
GeneralRe: Well that was satisfying. Pin
PIEBALDconsult10-May-24 4:38
mvePIEBALDconsult10-May-24 4:38 
GeneralRe: Well that was satisfying. Pin
dandy7210-May-24 3:31
dandy7210-May-24 3:31 
GeneralRe: Well that was satisfying. Pin
honey the codewitch10-May-24 4:24
mvahoney the codewitch10-May-24 4:24 
GeneralRe: Well that was satisfying. Pin
jochance10-May-24 5:21
jochance10-May-24 5:21 
GeneralRe: Well that was satisfying. Pin
Roger Wright10-May-24 4:57
professionalRoger Wright10-May-24 4:57 
GeneralMS Changes Things In VS AGAIN! Pin
Kevin Marois9-May-24 7:28
professionalKevin Marois9-May-24 7:28 
GeneralRe: MS Changes Things In VS AGAIN! Pin
Maximilien9-May-24 7:48
Maximilien9-May-24 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.