3KUdelta / Solar_WiFi_Weather_Station

Based on the work of Open Green Energy: First solar Zambretti Forecaster
109 stars 50 forks source link

Hey there :) #38

Closed SvensonLF closed 3 years ago

SvensonLF commented 3 years ago

Today i started with my Weatherstation, but to be honest i run into an Issue... I always get an Error with the "gotosleep" settings.

Thanks for your Help

/Users/sveneichhorn/Downloads/Solar_WiFi_Weather_Station-master-1/Solar-WiFi-Weather-Station-V2.3/Solar-WiFi-Weather-Station-V2.3.ino: In function 'void setup()': Solar-WiFi-Weather-Station-V2.3:177:21: error: 'goToSleep' was not declared in this scope goToSleep(10); // go to sleep and retry after 10 min ^ Solar-WiFi-Weather-Station-V2.3:180:20: error: 'goToSleep' was not declared in this scope goToSleep(0); // hybernate because batt empty ^ Solar-WiFi-Weather-Station-V2.3:252:20: error: 'measurementEvent' was not declared in this scope measurementEvent(); //get all data from the different sensors ^ Solar-WiFi-Weather-Station-V2.3:256:18: error: 'ReadFromSPIFFS' was not declared in this scope ReadFromSPIFFS(); //read stored values and update data if more recent data is available ^ Solar-WiFi-Weather-Station-V2.3:262:18: error: 'FirstTimeRun' was not declared in this scope FirstTimeRun(); ^ Solar-WiFi-Weather-Station-V2.3:275:36: error: 'WriteToSPIFFS' was not declared in this scope WriteToSPIFFS(current_timestamp); // update timestamp on storage ^ Solar-WiFi-Weather-Station-V2.3:278:34: error: 'WriteToSPIFFS' was not declared in this scope WriteToSPIFFS(saved_timestamp); // do not update timestamp on storage ^ Solar-WiFi-Weather-Station-V2.3:285:58: error: 'ZambrettiLetter' was not declared in this scope ZambrettisWords = ZambrettiSays(char(ZambrettiLetter())); ^ Solar-WiFi-Weather-Station-V2.3:285:60: error: 'ZambrettiSays' was not declared in this scope ZambrettisWords = ZambrettiSays(char(ZambrettiLetter())); ^ Solar-WiFi-Weather-Station-V2.3:291:40: error: 'ZambrettiSays' was not declared in this scope ZambrettisWords = ZambrettiSays('0'); // send Message that battery is empty ^ Solar-WiFi-Weather-Station-V2.3:337:24: error: 'server' was not declared in this scope if (client.connect(server,80)) { ^ Solar-WiFi-Weather-Station-V2.3:342:16: error: 'api_key' was not declared in this scope postStr+=api_key;
^ /Users/sveneichhorn/Downloads/Solar_WiFi_Weather_Station-master-1/Solar-WiFi-Weather-Station-V2.3/Solar-WiFi-Weather-Station-V2.3.ino: At global scope: Solar-WiFi-Weather-Station-V2.3:369:3: error: expected unqualified-id before 'if' if (volt > 3.3) { //check if batt still ok, if yes ^ Solar-WiFi-Weather-Station-V2.3:372:3: error: expected unqualified-id before 'else' else{ //if not, ^ Solar-WiFi-Weather-Station-V2.3:375:1: error: expected declaration before '}' token } // end of void setup() ^ Mehrere Bibliotheken wurden für "TimeLib.h" gefunden Benutzt: /Users/sveneichhorn/Documents/Arduino/libraries/Time-master Nicht benutzt: /Users/sveneichhorn/Documents/Arduino/libraries/Time exit status 1 'goToSleep' was not declared in this scope

3KUdelta commented 3 years ago

Hi, yes it seems that your version of the compiler does not do the "normal" auto declaration of the functions. This is strange because hundreds of downloads do no complain about this. I suggest to:

3KUdelta commented 3 years ago

Hi again,

probably you only deleted somewhere a { or } --> see these error messages:

/Users/sveneichhorn/Downloads/Solar_WiFi_Weather_Station-master-1/Solar-WiFi-Weather-Station-V2.3/Solar-WiFi-Weather-Station-V2.3.ino: At global scope: Solar-WiFi-Weather-Station-V2.3:369:3: error: expected unqualified-id before 'if' if (volt > 3.3) { //check if batt still ok, if yes ^ Solar-WiFi-Weather-Station-V2.3:372:3: error: expected unqualified-id before 'else' else{ //if not, ^ Solar-WiFi-Weather-Station-V2.3:375:1: error: expected declaration before '}' token } // end of void setup() ^

So it should be ok to just reload the original source file.

SvensonLF commented 3 years ago

i reloaded the source file about 10 Times and the Errormessage is always the same... So okay i will reinstall the Arduino Version and try again. I'm using a Mac maybe thats the reason... Version 2.0 works without any issue ;)

I will report later if i had any success

Greets from Germany Sven

SvensonLF commented 3 years ago

Okay after i installed Arduino on my Windows PC it worked... But i need to check the Virtualinputs they show some strange stuff

3KUdelta commented 3 years ago

Hi Sven, happy to read that it works. I always work on a Mac, never had a problem.

This is for all you folks out there if you have problems: