-->
Page 1 of 2

JSON data retrieval and parsing.

PostPosted: Sun Sep 04, 2016 11:59 pm
by RyanC
Okay, I'm sure this is a novice question that is covered somewhere else, so forgive a poor programming noob.

I am attempting to make a device which points at the ISS wherever it is by collecting the current coordinates from http://www.isstracker.com/3 , or from a json such as http://api.open-notify.org/iss-now.json , automatically and constantly and plugging them into a haversine equation to turn those coordinates into directions for my pointer. I have been trying for literally weeks now, and have made no progress. Any help greatly appreciated.



Followup question: ideally, I would like to get my own coordinates also. The device will be connected to the internet via an iphone 3g/wifi hotspot, and getting the coords of the phone. Can this also be done?

Thanks

Re: JSON data retrieval and parsing.

PostPosted: Thu Sep 08, 2016 10:49 pm
by RyanC
Bump.

Re: JSON data retrieval and parsing.

PostPosted: Fri Sep 09, 2016 5:11 am
by Oldbod
I wonder if you'd be more likely to get a response if you could be more specific about what you're having difficulty with?

Meanwhile -
Have you considered using esp8266basic? It has some web retrieval and json parsing built in.
I'm not sure about getting your current location via iphone.. How do you plan to do that? I'd probably use a manual interface to enter a position, or link to a gps. is this a mobile (as in a moving car) or portable (get somewhere, setup) app? Interesting project...

Re: JSON data retrieval and parsing.

PostPosted: Fri Sep 09, 2016 11:59 pm
by RyanC
Oldbod wrote:I wonder if you'd be more likely to get a response if you could be more specific about what you're having difficulty with?

Meanwhile -
Have you considered using esp8266basic? It has some web retrieval and json parsing built in.
I'm not sure about getting your current location via iphone.. How do you plan to do that? I'd probably use a manual interface to enter a position, or link to a gps. is this a mobile (as in a moving car) or portable (get somewhere, setup) app? Interesting project...


Probably a good point, reading over again. The project is a mobile one. The point of difficulty I was referring to is getting those two little numbers of lat/long from http://www.isstracker.com/ ( much more accurate than the json I was referencing earlier.) into an Arduino sketch where I can try and work with them.

Thanks for the suggestion: I'll look into BASIC, but it's not an environment I'm at all familiar with.