oxinon / BTC-price-ticker-V2_1-TTGO-T-Display

Simple Bitcoin price ticker by using TTGO T-Display ESP32 and 1.14 Inch Display with CoinMarketcap API for Arduino IDE
GNU General Public License v3.0
19 stars 5 forks source link

Error getting data... #2

Open msman0 opened 2 years ago

msman0 commented 2 years ago

Hello, thank you for the great work. I was unable to use it because I get the error:

"Getting ticker data for BTC
/v1/cryptocurrency/quotes/latest?symbol=BTC&convert=EUR
deserializeJson() failed: EmptyInput
Error getting data: EmptyInput"

I have entered the API Key and also the WiFi is connected.

What is goeing wrong? Best regards.

oxinon commented 2 years ago

I found the problem, it's with the Coinmarketcap library. Open this file with Notepad++ or another editor /Arduino/libraries/CoinMarketCapApi2/scr/CoinMarketCapApi.ccp

go to line 76 and change the setting from 2048 to 3072 DynamicJsonDocument doc (3072);

Then save, recompile and flash.

msman0 commented 2 years ago

Thank you for your fast response. I have tried it but the error ist the same with 3072... I checked the IP settings for gateway and dns, it seems that there is no request for the domain, because I have nothing seen in my pi-hole dns server. Other skteches with the TTGO works well.