TinyCircuits

Displaying the weather in the TinyArcade

Displaying the weather in the TinyArcade
« on: January 17, 2017, 10:57:00 AM »
I just wanted to share with you a project I developed over the past few days, now you can use your TinyArcade as a weather display :D


All the code and the instructions are in github: https://github.com/pjimenezmateo/tinyarcade-weather-display

Re: Displaying the weather in the TinyArcade
« Reply #1 on: February 05, 2017, 12:10:47 PM »
Awesome!  Going to share this on our Facebook page!

Thanks!

Ken
TinyCircuits

Re: Displaying the weather in the TinyArcade
« Reply #2 on: March 29, 2017, 02:24:17 PM »
Got an error when trying to upload this:

Code: [Select]
Arduino: 1.8.2, Board: "TinyScreen+, TinyArcade Menu"

/tinyarcade-weather-display/weather.ino/weather/weather.ino: In function 'void drawWatch()':
weather:3310: error: 'second' was not declared in this scope
   float secondsAngle = second() / float(60);
                               ^
weather:3311: error: 'minute' was not declared in this scope
   float minutesAngle = (minute() + secondsAngle) / float(60);
                                ^
weather:3312: error: 'hour' was not declared in this scope
   float hoursAngle   = (hour() % 12 + hoursAngle) / float(12);
                              ^
/tinyarcade-weather-display/weather.ino/weather/weather.ino: In function 'info splitCommand(String)':
weather:3442: error: 'setTime' was not declared in this scope
   setTime(hours, minutes, seconds, 23, 02, 1991);
                                                ^
exit status 1
'second' was not declared in this scope

Re: Displaying the weather in the TinyArcade
« Reply #3 on: March 30, 2017, 09:28:06 AM »
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time

Re: Displaying the weather in the TinyArcade
« Reply #4 on: March 30, 2017, 10:10:31 AM »
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time
I did. Same error. :(

Re: Displaying the weather in the TinyArcade
« Reply #5 on: March 30, 2017, 06:14:33 PM »
Not sure how the original is compiling- try including '<TimeLib.h>', it usually helps avoid conflicts between the Time library and the standard time.h file.

Re: Displaying the weather in the TinyArcade
« Reply #6 on: March 30, 2017, 09:16:43 PM »
Not sure how the original is compiling- try including '<TimeLib.h>', it usually helps avoid conflicts between the Time library and the standard time.h file.
That worked, and the code uploaded correctly...then promptly bricked the system. I'm trying to recover it now. :(

Re: Displaying the weather in the TinyArcade
« Reply #7 on: March 31, 2017, 01:57:50 PM »
Ah- you should be able to get back to the bootloader by holding both buttons while powering up.

Re: Displaying the weather in the TinyArcade
« Reply #8 on: March 31, 2017, 02:13:54 PM »
Yeah, I did that, and just reloaded the ArcadeMenu sketch.