Hi, I’m new to Arduino and this forum,
I’m looking for help if possible
I need to extract the elevation data from this website to automatically input into my programme but I’m unsure how to do it
It’s column 4 which is separated by columns “|”
I’ve been given this for code for a pi and just wondered if it’s possible in an Arduino
So, you need something that has access to the internet. Maybe an ESP8266 with built-in wifi. If you get that board, there are many examples of fetching a URL and parsing it.
A Raspberry Pi is running Linux, completely different world. What "programme" are you referencing? On the Rpi? on your PC? on the Arduino?
I have the Ethernet shield 2 arriving today and I’ve built a programme in arduino ( it’s for a satellite dish positioning) so it runs a motor drive for only elevation
I simply now need the website position data and I’m running and this is the bit where I’ve become a bit stuck as it’s just extracting the relevant field from the web data
returns a JSON. I don't see a column 4 which is separated by columns "|"
I see an ID and 300 position data, separated by |
It has about 36KB. For shure to much to process as JSON in an UNO/MEGA. So either you switch over to a controller with more SRAM or you have to implement an JSON Parser to parse only the parts your are interested in. A finite state machine might do the job.
Which part of the message are you interested in?
Do you have a description of the API to reduce the output to the part you are interested in?
Good morning thanks for your response
The only field I need to read is the one which reads |27.66| the rest can be ignored as it’s purely elevation value only