GithubHelp home page GithubHelp logo

andrewbudziszek / bitcoin-ticker-esp32 Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 13.0 191 KB

A Physical Bitcoin Ticker. For use with Arduino ESP32 board and I2C OLED Display.

C++ 97.60% C 2.40%
arduino bitcoin coinmarketcap

bitcoin-ticker-esp32's People

Contributors

andrewbudziszek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bitcoin-ticker-esp32's Issues

yesterdays Price ovf

there is some small issue.

Yesterdays Price : ovf
24 hrs. Percent change is -100

HTTPClient (which one to use)

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'?

Several issues

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.