wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

get_location.cpp doesn't compile #26

Closed FedericoBusero closed 3 years ago

FedericoBusero commented 3 years ago
sketch\get_location.cpp: In function 'int get_city_from_lat_long(char*, char*)':
get_location.cpp:168:94: error: 'LOCATIONIQ_KEY' was not declared in this scope
   sprintf(url, "https://us1.locationiq.com/v1/reverse.php?key=%s&format=json&lat=%s&lon=%s", LOCATIONIQ_KEY, latitude, longitude);

...

'LOCATIONIQ_KEY' was not declared in this scope

wfdudley commented 3 years ago

add this line to personal_info.h:

define LOCATIONIQ_KEY ""

I can't make the mod now, busy with real work.

Thanks, Bill Dudley

This email is free of malware because I run Linux.

On Thu, Jan 7, 2021 at 11:23 AM FedericoBusero notifications@github.com wrote:

sketch\get_location.cpp: In function 'int get_city_from_lat_long(char, char)': get_location.cpp:168:94: error: 'LOCATIONIQ_KEY' was not declared in this scope sprintf(url, "https://us1.locationiq.com/v1/reverse.php?key=%s&format=json&lat=%s&lon=%s", LOCATIONIQ_KEY, latitude, longitude);

...

'LOCATIONIQ_KEY' was not declared in this scope

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYUY2QHNIG2SIXWHM5CDSYXNYXANCNFSM4VZGOJAQ .

wfdudley commented 3 years ago

I made the change to personal_info.h

dud

This email is free of malware because I run Linux.

On Thu, Jan 7, 2021 at 12:17 PM William Dudley wfdudley@gmail.com wrote:

add this line to personal_info.h:

define LOCATIONIQ_KEY ""

I can't make the mod now, busy with real work.

Thanks, Bill Dudley

This email is free of malware because I run Linux.

On Thu, Jan 7, 2021 at 11:23 AM FedericoBusero notifications@github.com wrote:

sketch\get_location.cpp: In function 'int get_city_from_lat_long(char, char)': get_location.cpp:168:94: error: 'LOCATIONIQ_KEY' was not declared in this scope sprintf(url, "https://us1.locationiq.com/v1/reverse.php?key=%s&format=json&lat=%s&lon=%s", LOCATIONIQ_KEY, latitude, longitude);

...

'LOCATIONIQ_KEY' was not declared in this scope

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYUY2QHNIG2SIXWHM5CDSYXNYXANCNFSM4VZGOJAQ .

FedericoBusero commented 3 years ago

Thanks!