0

Sending message to matrix
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Sending message to matrix

by theophile on Thu Apr 04, 2019 12:19 pm

Hi,

I am working on a project relative to a ISS distance calculator.
I am making it wearable. Like a badge. It will be a gift !

For that I am using a mini 8*8 backpack matrix welded to a ESP8266 breakout. To complement my design, I attached a lipo 150 with a small micro usb lipo charger. After testing my code/scheme on a prototype board I could display distances on my matrix during 3 hours (Including wifi communication), quiet good for such small lipo and more than enough for my project (ISS orbit is about 90 min) !
I also which to write and display simple text messages on my matrix from any location using my mobile / computer.
Could you please advise me if the IO interface of adafruit can work like an API with a option to send a message to be display on my microcontroler (WifiClient)?
I just find the website "www.theamplituhedron.com" which seems to give this option but I would believe that adafruit io might also do it ? Any other advice ?

Thanks,
Théo

theophile
 
Posts: 5
Joined: Fri Feb 15, 2019 6:25 am

Re: Sending message to matrix

by brubell on Thu Apr 04, 2019 2:55 pm

Adafruit IO would not be the best solution for this IoT Project.

Instead, you'd be best off finding an API which returns the GPS coordinates of the ISS, here's one: https://wheretheiss.at/w/developer

Then, you'll need to figure out a way to send a HTTP GET request to https://api.wheretheiss.at/v1/satellites.

Finally, you will parse the JSON data returned from the API.

brubell
 
Posts: 408
Joined: Fri Jul 17, 2015 10:33 pm

Re: Sending message to matrix

by theophile on Thu Apr 04, 2019 11:51 pm

Hi Brubell,

Thanks for your reply.

I already get the ISS position from "http://api.open-notify.org/iss-now.json".
I believe my code is working well as the live distance is displayed on my matrix.

My question was about the possibility to display a "on live" message on my matrix such as "good morning ISS", etc..
This will be an additional feature on my project :
1) Display the ISS distance (OK)
2) Display any type of message using my mobile / computer. As it will be be wearable, that would be fun !

The point 2 is my question.
Is it possible to connect my esp8266 to two different hosts and make two different HTTP request ? 1- "iss-now" and for axample 2- adafruit io ?


Thanks for your help,
+
Théo

theophile
 
Posts: 5
Joined: Fri Feb 15, 2019 6:25 am

Re: Sending message to matrix

by brubell on Fri Apr 05, 2019 10:51 am

Is it possible to connect my esp8266 to two different hosts and make two different HTTP request ? 1- "iss-now" and for axample 2- adafruit io ?


Sure, you could connect to the Adafruit IO API and get the data for a specified feed: https://io.adafruit.com/api/docs/#operation/allData

Using Zapier or IFTTT, you could text or email to that feed to update its value (We have a bunch of tutorials on Learn.Adafruit.com covering this)

brubell
 
Posts: 408
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.