0 votes
by (180 points)
So I had a weather station for a while and decided to redo it to Spotify control, but no matter what I do I cannot figure out what I am doing wrong. Can somebody provide any suggestions?

In file included from C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266mDNS\src/LEAmDNS.h:111:0,

                 from C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266mDNS\src/ESP8266mDNS.h:46,

                 from C:\Users\vaido\Downloads\esp8266-spotify-remote-master\esp8266-spotify-remote\esp8266-spotify-remote.ino:30:

C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/PolledTimeout.h:126:90: error: macro "max" requires 2 arguments, but only 1 given

   static constexpr timeType timeMax                = (std::numeric_limits<timeType>::max() - 1) / user2UnitMultiplierMax;

                                                                                          ^

C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/PolledTimeout.h:148:82: error: macro "max" requires 2 arguments, but only 1 given

   static constexpr timeType neverExpires    = std::numeric_limits<timeType>::max();

                                                                                 ^

Multiple libraries were found for "ESP8266WiFi.h"

 Used: C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi

Multiple libraries were found for "MiniGrafx.h"

 Used: C:\Users\vaido\Documents\Arduino\libraries\Mini_Grafx

Multiple libraries were found for "JPEGDecoder.h"

 Used: C:\Users\vaido\Documents\Arduino\libraries\JPEGDecoder

Multiple libraries were found for "ESP8266mDNS.h"

 Used: C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266mDNS

Multiple libraries were found for "JsonListener.h"

 Used: C:\Users\vaido\Documents\Arduino\libraries\Json_Streaming_Parser

Multiple libraries were found for "SPI.h"

 Used: C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SPI

Multiple libraries were found for "ESP8266WebServer.h"

 Used: C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WebServer

Multiple libraries were found for "XPT2046_Touchscreen.h"

 Used: C:\Users\vaido\Documents\Arduino\libraries\XPT2046_Touchscreen

Multiple libraries were found for "ESP8266HTTPClient.h"

 Used: C:\Users\vaido\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266HTTPClient

exit status 1

Error compiling for board LOLIN(WEMOS) D1 mini Pro.

1 Answer

+1 vote
by (180 points)

If somebody struggling, then fix for me was to use older ESP8266 board drivers 2.5.0, as later ones were showing errors above.

yet even after uploading the project, I cannot authenticate Spotify.

I do have:
1. Key/Secret

2. I do have a redirect set
3. Key, secret, hostname are set as in guide and no other esp8266 devices in the network.

Yet device is not detected by hostname, only via IP, and even if I Replace URL from hostname to IP and even if webpage says it is authenticated, the device still asks to be authenticated... spend two days on it.. 

Out of ideas
 

by (130 points)
Thanks, I had exactly the same problem: weather station worked fine but Spotify player didn't want to compile, showing same messages as yours. With the 2.5.0 version of the board driver it does compile.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...