Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. RealTimeClockDisplaySensor.ino

RealTimeClockDisplaySensor.ino

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 5 Posters 4.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HoffanH Offline
    HoffanH Offline
    Hoffan
    wrote on last edited by
    #3

    You don't get any Errorcode when you use codebender

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #4

      I saw the 500-error when trying to run-and-clone mysensors libraries this morning. It was reported to the codebender team and I'm waiting for reply.

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #5

        Got a message from Mr Vasilis over at CodeBender. This should be fixed now.

        1 Reply Last reply
        0
        • HoffanH Offline
          HoffanH Offline
          Hoffan
          wrote on last edited by
          #6

          I still get compiling Error when i try this with codebender

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #7

            Works fine for me.

            Do you select "Clone sketch and libraries"?

            http://www.mysensors.org/build/display

            1 Reply Last reply
            0
            • O Offline
              O Offline
              osalval
              wrote on last edited by
              #8

              Hi, not compiling for mi either:

              Arduino: 1.5.8 (Windows 8), Board:"Arduino Nano, ATmega328"

              Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI
              Using library MySensors in folder: C:\Program Files (x86)\Arduino\libraries\MySensors (legacy)
              Using library Time in folder: C:\Program Files (x86)\Arduino\libraries\Time (legacy)
              Using library DS3232RTC in folder: C:\Program Files (x86)\Arduino\libraries\DS3232RTC (legacy)
              Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
              Using library LiquidCrystal in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal (legacy)

              C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I
              C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -I
              C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -I
              C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -I
              C:\Program Files (x86)\Arduino\libraries\MySensors -I
              C:\Program Files (x86)\Arduino\libraries\Time -I
              C:\Program Files (x86)\Arduino\libraries\DS3232RTC -I
              C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -I
              C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

              C:\Users\Oscar\AppData\Local\Temp\build6354959487290696935.tmp\MySensors_RealTimeClockDisplaySensor.cpp -o C:\Users\Oscar\AppData\Local\Temp\build6354959487290696935.tmp\MySensors_RealTimeClockDisplaySensor.cpp.o

              In file included from C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:35:0, from MySensors_RealTimeClockDisplaySensor.ino:21:
              C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LCD.h:421:44: error: 'prog_uchar' does not name a type
              void createChar(uint8_t location, const prog_uchar charmap[]);
              ^
              C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LCD.h:421:63: error: ISO C++ forbids declaration of 'charmap' with no type [-fpermissive]
              void createChar(uint8_t location, const prog_uchar charmap[]);
              ^
              Error de compilación

              O 1 Reply Last reply
              0
              • O osalval

                Hi, not compiling for mi either:

                Arduino: 1.5.8 (Windows 8), Board:"Arduino Nano, ATmega328"

                Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI
                Using library MySensors in folder: C:\Program Files (x86)\Arduino\libraries\MySensors (legacy)
                Using library Time in folder: C:\Program Files (x86)\Arduino\libraries\Time (legacy)
                Using library DS3232RTC in folder: C:\Program Files (x86)\Arduino\libraries\DS3232RTC (legacy)
                Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
                Using library LiquidCrystal in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal (legacy)

                C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I
                C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -I
                C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -I
                C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -I
                C:\Program Files (x86)\Arduino\libraries\MySensors -I
                C:\Program Files (x86)\Arduino\libraries\Time -I
                C:\Program Files (x86)\Arduino\libraries\DS3232RTC -I
                C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -I
                C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

                C:\Users\Oscar\AppData\Local\Temp\build6354959487290696935.tmp\MySensors_RealTimeClockDisplaySensor.cpp -o C:\Users\Oscar\AppData\Local\Temp\build6354959487290696935.tmp\MySensors_RealTimeClockDisplaySensor.cpp.o

                In file included from C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:35:0, from MySensors_RealTimeClockDisplaySensor.ino:21:
                C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LCD.h:421:44: error: 'prog_uchar' does not name a type
                void createChar(uint8_t location, const prog_uchar charmap[]);
                ^
                C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LCD.h:421:63: error: ISO C++ forbids declaration of 'charmap' with no type [-fpermissive]
                void createChar(uint8_t location, const prog_uchar charmap[]);
                ^
                Error de compilación

                O Offline
                O Offline
                osalval
                wrote on last edited by
                #9

                @osalval
                Hi, after reinstall IDE 1.0.6, it compile OK, but now liquid display don't show nothing.

                Monitor shows:

                sensor started, id 20
                send: 20-20-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
                send: 20-20-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
                read: 0-0-20 s=255,c=3,t=6,pt=0,l=1:M
                send: 20-20-0-0 s=255,c=3,t=11,pt=0,l=9,st=ok:RTC Clock
                send: 20-20-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
                send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                requesting time
                send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                requesting time
                send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                requesting time
                send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                requesting time
                send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                requesting time

                O 1 Reply Last reply
                0
                • O osalval

                  @osalval
                  Hi, after reinstall IDE 1.0.6, it compile OK, but now liquid display don't show nothing.

                  Monitor shows:

                  sensor started, id 20
                  send: 20-20-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
                  send: 20-20-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
                  read: 0-0-20 s=255,c=3,t=6,pt=0,l=1:M
                  send: 20-20-0-0 s=255,c=3,t=11,pt=0,l=9,st=ok:RTC Clock
                  send: 20-20-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
                  send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                  requesting time
                  send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                  requesting time
                  send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                  requesting time
                  send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                  requesting time
                  send: 20-20-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0
                  requesting time

                  O Offline
                  O Offline
                  osalval
                  wrote on last edited by osalval
                  #10

                  @osalval

                  Solved, it was the contrast adjustable resistor of IIC interface, its very critical, now its working fine.

                  Thanks

                  No so fine it doesn't fetch the time from controller

                  O 1 Reply Last reply
                  0
                  • O osalval

                    @osalval

                    Solved, it was the contrast adjustable resistor of IIC interface, its very critical, now its working fine.

                    Thanks

                    No so fine it doesn't fetch the time from controller

                    O Offline
                    O Offline
                    osalval
                    wrote on last edited by
                    #11

                    @osalval
                    By the way I find, THE ONLY one library: LiquidCrystal, that Works with Arduino V1.5.8:

                    https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
                    LiquidCrystal_V1.2.1.zip
                    https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/LiquidCrystal_V1.2.1.zip

                    I still can not fetching time from controller. What i shoul do with openHAB and MQTTGateway?

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      Jackpot
                      wrote on last edited by
                      #12

                      "I still can not fetching time from controller"

                      I replaced ;
                      if ((!timeReceived && now-lastRequest > 101000)
                      || (timeReceived && now-lastRequest > 60
                      1000*60)) {

                      with;
                      if ((!timeReceived && now-lastRequest > 10*1000)
                      || (timeReceived && now-lastRequest > 3600000ul)) {

                      It started fetching time from the controller after that. I'm just using the TimeAwareSensor.ino sketch and an ethernet gateway.
                      Maybe this will help...........

                      O 1 Reply Last reply
                      0
                      • J Jackpot

                        "I still can not fetching time from controller"

                        I replaced ;
                        if ((!timeReceived && now-lastRequest > 101000)
                        || (timeReceived && now-lastRequest > 60
                        1000*60)) {

                        with;
                        if ((!timeReceived && now-lastRequest > 10*1000)
                        || (timeReceived && now-lastRequest > 3600000ul)) {

                        It started fetching time from the controller after that. I'm just using the TimeAwareSensor.ino sketch and an ethernet gateway.
                        Maybe this will help...........

                        O Offline
                        O Offline
                        osalval
                        wrote on last edited by
                        #13

                        Thank you @Jackpot

                        Don´t Works for mi. As somebody told, I think is the MQTT Gateway that no respond to requestTime.
                        I`m not software men but I think the sketch is correct and MQTT Gateway should answer wirt the value in "receiveTime"

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        10

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.1k

                        Posts


                        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular