loading
25Comments

Tell us about yourself!

Complete Your Profile
  • anachum completed the lesson Class Overview in the class 3D Printing Class1 month ago
  • anachum commented on chrismelba's instructable The Light Clock (IoT)9 months ago
    The Light Clock (IoT)

    Chris, Tnx,I'm ready to give up..!I got the missing files, now it wont compile: seems to be an issue with the TimeAlarms.h..?? or could it be the ISP I use 1.6.7?Arduino: 1.6.7 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"In file included from sketch\TimeAlarms.cpp:31:0:TimeAlarms.h:71: error: 'timeDayOfWeek_t' does not name a type AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day of week ^TimeAlarms.h:71: error: ISO C++ forbids declaration of 'DOW' with no type [-fpermissive] AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day o...see more »Chris, Tnx,I'm ready to give up..!I got the missing files, now it wont compile: seems to be an issue with the TimeAlarms.h..?? or could it be the ISP I use 1.6.7?Arduino: 1.6.7 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"In file included from sketch\TimeAlarms.cpp:31:0:TimeAlarms.h:71: error: 'timeDayOfWeek_t' does not name a type AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day of week ^TimeAlarms.h:71: error: ISO C++ forbids declaration of 'DOW' with no type [-fpermissive] AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day of week ^TimeAlarms.h:75: error: 'timeDayOfWeek_t' does not name a type AlarmID_t alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day of week ^TimeAlarms.h:75: error: ISO C++ forbids declaration of 'DOW' with no type [-fpermissive] AlarmID_t alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with day of week ^sketch\TimeAlarms.cpp: In member function 'void AlarmClass::updateNextTrigger()':TimeAlarms.cpp:57: error: 'now' was not declared in this scope time_t time = now(); ^TimeAlarms.cpp:66: error: 'previousMidnight' was not declared in this scope if( value + previousMidnight(now()) <= time) ^TimeAlarms.cpp:68: error: 'nextMidnight' was not declared in this scope nextTrigger = value + nextMidnight(time); // if time has passed then set for tomorrow ^TimeAlarms.cpp:77: error: 'previousSunday' was not declared in this scope if( (value + previousSunday(now())) <= time) ^TimeAlarms.cpp:79: error: 'nextSunday' was not declared in this scope nextTrigger = value + nextSunday(time); // if day has passed then set for the next week. ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(time_t, OnTick_t)':TimeAlarms.cpp:124: error: 'SECS_PER_DAY' was not declared in this scope if( value <= SECS_PER_DAY) ^In file included from sketch\TimeAlarms.cpp:31:0:sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(int, int, int, OnTick_t)':TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:131:19: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtDailyAlarm ); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:131:19: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtDailyAlarm ); ^sketch\TimeAlarms.cpp: At global scope:TimeAlarms.cpp:134: error: 'timeDayOfWeek_t' does not name a type AlarmID_t TimeAlarmsClass::alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler){ // as above, with day of week ^TimeAlarms.cpp:134: error: ISO C++ forbids declaration of 'DOW' with no type [-fpermissive] AlarmID_t TimeAlarmsClass::alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler){ // as above, with day of week ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(int, int, int, int, OnTick_t)':TimeAlarms.cpp:135: error: 'SECS_PER_DAY' was not declared in this scope return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtWeeklyAlarm ); ^In file included from sketch\TimeAlarms.cpp:31:0:TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:135:44: note: in expansion of macro 'AlarmHMS' return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtWeeklyAlarm ); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:135:44: note: in expansion of macro 'AlarmHMS' return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtWeeklyAlarm ); ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(time_t, OnTick_t)':TimeAlarms.cpp:140: error: 'SECS_PER_DAY' was not declared in this scope if( value <= SECS_PER_DAY) ^In file included from sketch\TimeAlarms.cpp:31:0:sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(int, int, int, OnTick_t)':TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:147:25: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtDailyAlarm ); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:147:25: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtDailyAlarm ); ^sketch\TimeAlarms.cpp: At global scope:TimeAlarms.cpp:150: error: 'timeDayOfWeek_t' does not name a type AlarmID_t TimeAlarmsClass::alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler){ // as above, with day of week ^TimeAlarms.cpp:150: error: ISO C++ forbids declaration of 'DOW' with no type [-fpermissive] AlarmID_t TimeAlarmsClass::alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler){ // as above, with day of week ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(int, int, int, int, OnTick_t)':TimeAlarms.cpp:151: error: 'SECS_PER_DAY' was not declared in this scope return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtWeeklyAlarm ); ^In file included from sketch\TimeAlarms.cpp:31:0:TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:151:48: note: in expansion of macro 'AlarmHMS' return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtWeeklyAlarm ); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:151:48: note: in expansion of macro 'AlarmHMS' return create( (DOW-1) * SECS_PER_DAY + AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtWeeklyAlarm ); ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::timerOnce(int, int, int, OnTick_t)':TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:159:22: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtTimer ); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:159:22: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_ONESHOT, dtTimer ); ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::timerRepeat(int, int, int, OnTick_t)':TimeAlarms.h:123: error: 'SECS_PER_HOUR' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:167:25: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtTimer); ^TimeAlarms.h:123: error: 'SECS_PER_MIN' was not declared in this scope #define AlarmHMS(_hr_, _min_, _sec_) (_hr_ * SECS_PER_HOUR + _min_ * SECS_PER_MIN + _sec_) ^sketch\TimeAlarms.cpp:167:25: note: in expansion of macro 'AlarmHMS' return create( AlarmHMS(H,M,S), onTickHandler, IS_REPEAT, dtTimer); ^sketch\TimeAlarms.cpp: In member function 'uint8_t TimeAlarmsClass::getDigitsNow(dtUnits_t)':TimeAlarms.cpp:283: error: 'now' was not declared in this scope time_t time = now(); ^TimeAlarms.cpp:284: error: 'numberOfSeconds' was not declared in this scope if(Units == dtSecond) return numberOfSeconds(time); ^TimeAlarms.cpp:285: error: 'numberOfMinutes' was not declared in this scope if(Units == dtMinute) return numberOfMinutes(time); ^TimeAlarms.cpp:286: error: 'numberOfHours' was not declared in this scope if(Units == dtHour) return numberOfHours(time); ^TimeAlarms.cpp:287: error: 'dayOfWeek' was not declared in this scope if(Units == dtDay) return dayOfWeek(time); ^sketch\TimeAlarms.cpp: In member function 'void TimeAlarmsClass::serviceAlarms()':TimeAlarms.cpp:301: error: 'now' was not declared in this scope if( Alarm[servicedAlarmId].Mode.isEnabled && (now() >= Alarm[servicedAlarmId].nextTrigger) ) ^sketch\TimeAlarms.cpp: In member function 'time_t TimeAlarmsClass::getNextTrigger()':sketch\TimeAlarms.cpp:330:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return nextTrigger == 0xffffffff ? 0 : nextTrigger; ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::create(time_t, OnTick_t, uint8_t, dtAlarmPeriod_t, uint8_t)':TimeAlarms.cpp:336: error: 'now' was not declared in this scope if( ! (dtIsAlarm(alarmType) && now() < SECS_PER_YEAR)) // only create alarm ids if the time is at least Jan 1 1971 ^TimeAlarms.cpp:336: error: 'SECS_PER_YEAR' was not declared in this scope if( ! (dtIsAlarm(alarmType) && now() < SECS_PER_YEAR)) // only create alarm ids if the time is at least Jan 1 1971 ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(time_t, OnTick_t)':sketch\TimeAlarms.cpp:128:1: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:132:1: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmOnce(int, int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:136:1: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(time_t, OnTick_t)':sketch\TimeAlarms.cpp:144:5: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:148:5: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::alarmRepeat(int, int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:152:5: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::timerOnce(int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:160:5: warning: control reaches end of non-void function [-Wreturn-type] } ^sketch\TimeAlarms.cpp: In member function 'AlarmID_t TimeAlarmsClass::timerRepeat(int, int, int, OnTick_t)':sketch\TimeAlarms.cpp:168:5: warning: control reaches end of non-void function [-Wreturn-type] } ^exit status 1'timeDayOfWeek_t' does not name a type This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

    great. thanks found it, moved to the next issue..can you take a look please..

    Guys,i am having compilation errots for these lines:#include "settings.h"#include "root.h"#include "timezone.h"#include "timezonesetup.h" etc..C:\Users\MyPC\Documents\Arduino\lightclockwifi\lightclockwifi.ino:33:22: fatal error: settings.h: No such file or directory #include "settings.h"compilation terminated.exit status 1which library are these coming form? tnx

    Hi,Im getting an error for TimAlarms.h missing ..where should this be in? am i missing a library??tnxAC:\Users\MyPC\Documents\Arduino\lightclockwifi\lightclockwifi.ino:21:24: fatal error: TimeAlarms.h: No such file or directory #include <TimeAlarms.h> ^compilation terminated.exit status 1Error compiling.

    View Instructable »
  • anachum commented on 3DHotpants's instructable How to Design a 3D Printer9 months ago
    How to Design a 3D Printer

    I see so you have the hot head that can run 3 fillaments? How do use that? What software lets you controll multiple extruders? And how do you design the differnt colors?

    Great! Thanks. I understand now and will try follow these steps.Great job!Keep it up

    View Instructable »
  • anachum commented on 3DHotpants's instructable How to Design a 3D Printer10 months ago
    How to Design a 3D Printer

    Guys, this is great .I understand you hooked up steppers and limit switches to the Rumba board. What do you use to actually print - what software ? thanks

    View Instructable »