Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'watchySettings' {aka 'struct watchySettings'} has no member named 'lat' #1

Open
tripplehelix opened this issue Jun 17, 2023 · 3 comments

Comments

@tripplehelix
Copy link

tripplehelix commented Jun 17, 2023

I'm just getting

Compilation error: 'watchySettings' {aka 'struct watchySettings'} has no member named 'lat'

My settings:

#ifndef SETTINGS_H
#define SETTINGS_H
,
//Weather Settings
#define LAT "50.000000" //Ann Arbor, https://www.latlong.net/
#define LON "-5.000000" 
#define OPENWEATHERMAP_APIKEY "xxxxxxxxxxxxxxxxxxxxxxxxxxx" //use your own API key :)
#define OPENWEATHERMAP_URL "http://api.openweathermap.org/data/2.5/weather?id=" //open weather api
#define TEMP_UNIT "metric" //metric = Celsius , imperial = Fahrenheit
#define TEMP_LANG "en"
#define WEATHER_UPDATE_INTERVAL 60 //must be greater than 5, measured in minutes
//NTP Settings
#define NTP_SERVER "time.cloudflare.com"
#define GMT_OFFSET_SEC 3600 //New York is UTC -5

watchySettings settings{
    .lat = LAT,
    .lon = LON,
    .weatherAPIKey = OPENWEATHERMAP_APIKEY,
    .weatherURL = OPENWEATHERMAP_URL,
    .weatherUnit = TEMP_UNIT,
    .weatherLang = TEMP_LANG,
    .weatherUpdateInterval = WEATHER_UPDATE_INTERVAL,
    .ntpServer = NTP_SERVER,
    .gmtOffset = GMT_OFFSET_SEC,
    .vibrateOClock = true,
};

#endif

Long and lat have the same number of digits but have been obscured for privacy.

@Sudrien
Copy link
Owner

Sudrien commented Jun 18, 2023

Currenly https://github.com/Sudrien/Watchy is required to compile.

These changes have been submitted in
sqfmi/Watchy#233

@tripplehelix
Copy link
Author

How would you do this? Copy the contents of the watchy repo into this repo?

@Sudrien
Copy link
Owner

Sudrien commented Jun 18, 2023

On my linux box, it's

  • Rename ~/Arduino/libraries/Watchy directory - your path should be obvious from the full dump
  • check my repo in it's place

The file structure should be an exact match. Though I can't say how or if future automatic library updates will work yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants