andrewbudziszek / bitcoin-ticker-esp32 Goto Github PK
View Code? Open in Web Editor NEWA Physical Bitcoin Ticker. For use with Arduino ESP32 board and I2C OLED Display.
A Physical Bitcoin Ticker. For use with Arduino ESP32 board and I2C OLED Display.
there is some small issue.
Yesterdays Price : ovf
24 hrs. Percent change is -100
I get this error with the arduino HTTPClient library and the Adrian McEwen version
CryptoTicker:35:1: error: 'HTTPClient' does not name a type; did you mean 'NTPClient'? 35 | HTTPClient http; | ^~~~~~~~~~ | NTPClient /Users/quintendewilde/Downloads/CryptoTicker/CryptoTicker.ino: In function 'void setup()': CryptoTicker:134:14: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] 134 | WiFi.begin(ssid, password); | ^~~~ | | | const char* In file included from /Users/quintendewilde/Downloads/CryptoTicker/CryptoTicker.ino:11: /private/var/folders/sd/8sktr7393sdgg1bpx9cd6nt40000gn/T/AppTranslocation/E6CF2EA4-AA26-4CBD-B7A8-ABA8AEE8F46E/d/Arduino.app/Contents/Java/libraries/WiFi/src/WiFi.h:79:21: note: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' 79 | int begin(char* ssid, const char *passphrase); | ~~~~~~^~~~ /Users/quintendewilde/Downloads/CryptoTicker/CryptoTicker.ino: In function 'void loop()': CryptoTicker:157:3: error: 'http' was not declared in this scope 157 | http.begin(url); | ^~~~ CryptoTicker:237:3: error: 'esp_sleep_enable_timer_wakeup' was not declared in this scope 237 | esp_sleep_enable_timer_wakeup(900000000); //Sleep for 15 minutes | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exit status 1 'HTTPClient' does not name a type; did you mean 'NTPClient'?
Hi,
I am trying to load this code onto my board but I have a number of issues.
First of all which HTTPClient library is meant to be used? The exact libraries aren't specified and there are several ones.
I'm getting the following errors
`D:\Data\Docs\Arduino\CryptoTicker\CryptoTicker.ino: In function 'void setup()':
CryptoTicker:132:14: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
132 | WiFi.begin(ssid, password);
| ^~~~
| |
| const char*
In file included from D:\Data\Docs\Arduino\CryptoTicker\CryptoTicker.ino:9:
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:21: note: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'
79 | int begin(char* ssid, const char *passphrase);
| ~~~~~~^~~~
D:\Data\Docs\Arduino\CryptoTicker\CryptoTicker.ino: In function 'void loop()':
CryptoTicker:156:23: error: 'class HttpClient' has no member named 'GET'
156 | int httpCode = http.GET(); //Get crypto price from API
| ^~~
CryptoTicker:158:58: error: 'class HttpClient' has no member named 'getString'; did you mean 'readString'?
158 | DeserializationError error = deserializeJson(doc, http.getString());
| ^~~~~~~~~
| readString
CryptoTicker:173:8: error: 'class HttpClient' has no member named 'end'
173 | http.end();
| ^~~
CryptoTicker:178:30: error: 'class HttpClient' has no member named 'GET'
178 | int historyHttpCode = http.GET();
| ^~~
CryptoTicker:179:72: error: 'class HttpClient' has no member named 'getString'; did you mean 'readString'?
179 | DeserializationError historyError = deserializeJson(historyDoc, http.getString());
| ^~~~~~~~~
| readString
CryptoTicker:234:8: error: 'class HttpClient' has no member named 'end'
234 | http.end(); //End the WiFi connection
| ^~~
CryptoTicker:235:3: error: 'esp_sleep_enable_timer_wakeup' was not declared in this scope
235 | esp_sleep_enable_timer_wakeup(900000000); //Sleep for 15 minutes
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit status 1
invalid conversion from 'const char*' to 'char*' [-fpermissive]`
Secondly, I know it may not be entirely compatible but I am trying to run this off a NodeMCU unit (ESP12E) which should be possible. Do you have any idea how to identify the correct pin-outs for the SCK/SDA pins?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.