A small Friday night project to use an ESP8266 to query Anilist GraphQL API and display profile data on a mini OLED.
I haven't touched any Arduino stuff in a couple years, so I figured I needed a fun refresher before tackling a different project. This small project was used to learn more about PlatformIO and HTTP requests on ESP8266. I used the Anilist API for this because I've already used it in a couple other weekend projects and it is super easy to mess around with.
My small brain couldn't figure out loading secrets with PlatformIO advanced scripting, so I just setup a separate header file called anilist8266_config.h. Its still plaintext credentials though...I think it works good enough for a messaround project.
/* include/anilist8266_config.h */
#ifndef ANILIST8266_CONFIG_H
#define ANILIST8266_CONFIG_H
const char *_ANILIST_USER = "user";
const char *_WIFI_SSID = "SSID";
const char *_WIFI_PWD = "PASSWORD";
#endif