Skip to content

Commit 36d185a

Browse files
fixed openmeteo example
1 parent eda3b31 commit 36d185a

File tree

19 files changed

+42
-42
lines changed

19 files changed

+42
-42
lines changed

examples/Inkplate10/Projects/Inkplate10_OpenAI_Image_Slideshow/Inkplate10_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SLEEP_DURATION_IN_MINS 30*60
2424

2525
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
26-
Image::Format imageFormat = Image::PNG;
26+
ImageColor::Format imageFormat = ImageColor::PNG;
2727

2828
// WiFi credentials (replace with your own SSID and password)
2929
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate10/Projects/Inkplate10_OpenMeteo_Weather_Station/Inkplate10_OpenMeteo_Weather_Station.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
#include "src/includes.h" // Include necessary libraries and dependencies for Inkplate and networking
3131

3232
// --- WiFi Configuration ---
33-
const char *ssid = "Soldered-testingPurposes";
34-
const char *password = "Testing443";
33+
const char *ssid = "Soldered Electronics";
34+
const char *password = "dasduino";
3535

3636
// --- User and Location Info ---
3737
String myUsername = "Username"; // User's name to be displayed on screen

examples/Inkplate10/Projects/Inkplate10_OpenMeteo_Weather_Station/src/Gui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const uint8_t *Gui::getBatteryIcon(int percentage)
131131
}
132132

133133
// --- Draw Temperature & Precipitation Graph ---
134-
void Gui::drawTemperaturePrecipGraph(WeatherData *weatherData, Network::UserInfo *userInfo)
134+
void Gui::drawTemperaturePrecipGraph(WeatherData *weatherData, NetworkFunctions::UserInfo *userInfo)
135135
{
136136
// Layout values for graph placement
137137
int graphX = 425;
@@ -261,7 +261,7 @@ void Gui::drawTemperaturePrecipGraph(WeatherData *weatherData, Network::UserInfo
261261
}
262262

263263
// --- Display All Weather Data ---
264-
void Gui::displayWeatherData(WeatherData *weatherData, Network::UserInfo *userInfo)
264+
void Gui::displayWeatherData(WeatherData *weatherData, NetworkFunctions::UserInfo *userInfo)
265265
{
266266
// Section 1: Main info
267267
inkplate.setFont(&FreeSansBold24pt7b);

examples/Inkplate10/Projects/Inkplate10_OpenMeteo_Weather_Station/src/Gui.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class Gui
1212
public:
1313
Gui(Inkplate &inkplate);
1414
void drawBackground();
15-
void displayWeatherData(WeatherData *weatherData, Network::UserInfo *userInfo);
15+
void displayWeatherData(WeatherData *weatherData, NetworkFunctions::UserInfo *userInfo);
1616
void wifiError();
1717
void apiError();
1818
int batteryLevel;
1919
double voltage;
2020

2121
private:
2222
Inkplate &inkplate;
23-
void drawTemperaturePrecipGraph(WeatherData *weatherData, Network::UserInfo *userInfo);
23+
void drawTemperaturePrecipGraph(WeatherData *weatherData, NetworkFunctions::UserInfo *userInfo);
2424
const uint8_t* getWeatherIcon(int code);
2525
const uint8_t* getBatteryIcon(int percentage);
2626
int voltageToPercentage(double voltage);

examples/Inkplate4TEMPERA/Projects/Inkplate4TEMPERA_OpenAI_Image_Slideshow/Inkplate4TEMPERA_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SLEEP_DURATION_IN_MINS 30*60
2424

2525
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
26-
Image::Format imageFormat = Image::PNG;
26+
ImageColor::Format imageFormat = ImageColor::PNG;
2727

2828
// WiFi credentials (replace with your own SSID and password)
2929
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate5/Projects/Inkplate5_OpenAI_Image_Slideshow/Inkplate5_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define SLEEP_DURATION_IN_MINS 30*60
2323

2424
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
25-
Image::Format imageFormat = Image::PNG;
25+
ImageColor::Format imageFormat = ImageColor::PNG;
2626

2727
// WiFi credentials (replace with your own SSID and password)
2828
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate5V2/Projects/Inkplate5V2_OpenAI_Image_Slideshow/Inkplate5V2_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SLEEP_DURATION_IN_MINS 30*60
2424

2525
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
26-
Image::Format imageFormat = Image::PNG;
26+
ImageColor::Format imageFormat = ImageColor::PNG;
2727

2828
// WiFi credentials (replace with your own SSID and password)
2929
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate6/Projects/Inkplate6_OpenAI_Image_Slideshow/Inkplate6_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SLEEP_DURATION_IN_MINS 30*60
2424

2525
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
26-
Image::Format imageFormat = Image::PNG;
26+
ImageColor::Format imageFormat = ImageColor::PNG;
2727

2828
// WiFi credentials (replace with your own SSID and password)
2929
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate6FLICK/Projects/Inkplate6FLICK_OpenAI_Image_Slideshow/Inkplate6FLICK_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SLEEP_DURATION_IN_MINS 30*60
2424

2525
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
26-
Image::Format imageFormat = Image::PNG;
26+
ImageColor::Format imageFormat = ImageColor::PNG;
2727

2828
// WiFi credentials (replace with your own SSID and password)
2929
const char* ssid = "YOUR_SSID_HERE";

examples/Inkplate6PLUS/Projects/Inkplate6PLUS_OpenAI_Image_Slideshow/Inkplate6PLUS_OpenAI_Image_Slideshow.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define SLEEP_DURATION_IN_MINS 30*60
2323

2424
// Format of the image to be downloaded and displayed (PNG is recommended for best compatibility)
25-
Image::Format imageFormat = Image::PNG;
25+
ImageColor::Format imageFormat = ImageColor::PNG;
2626

2727
// WiFi credentials (replace with your own SSID and password)
2828
const char* ssid = "YOUR_SSID_HERE";

0 commit comments

Comments
 (0)