PaulStoffregen / Time

Time library for Arduino
http://playground.arduino.cc/code/time
1.24k stars 665 forks source link

how the hell you install timelib.h #101

Closed doit4fun closed 6 years ago

doit4fun commented 6 years ago

how do you install timelib.h?

Please use this form only to report code defects or bugs.

For any question, even questions directly pertaining to this code, post your question on the forums related to the board you are using.

Arduino: forum.arduino.cc Teensy: forum.pjrc.com ESP8266: www.esp8266.com ESP32: www.esp32.com Adafruit Feather/Metro/Trinket: forums.adafruit.com Particle Photon: community.particle.io

If you are experiencing trouble but not certain of the cause, or need help using this code, ask on the appropriate forum. This is not the place to ask for support or help, even directly related to this code. Only use this form you are certain you have discovered a defect in this code!

Please verify the problem occurs when using the very latest version, using the newest version of Arduino and any other related software.

----------------------------- Remove above -----------------------------

Description

Describe your problem.

Steps To Reproduce Problem

Please give detailed instructions needed for anyone to attempt to reproduce the problem.

Hardware & Software

Board Shields / modules used Arduino IDE version Teensyduino version (if using Teensy) Version info & package name (from Tools > Boards > Board Manager) Operating system & version Any other software or hardware?

Arduino Sketch

// Change the code below by your sketch (please try to give the smallest code which demonstrates the problem)
#include <Arduino.h>

// libraries: give links/details so anyone can compile your code for the same result

void setup() {
}

void loop() {
}

Errors or Incorrect Output

If you see any errors or incorrect output, please show it here. Please use copy & paste to give an exact copy of the message. Details matter, so please show (not merely describe) the actual message or error exactly as it appears.

PaulStoffregen commented 6 years ago

how do you install timelib.h?

https://www.arduino.cc/en/Guide/Libraries

nick-youngblut commented 5 years ago

Sorry to comment on an old thread, but I am very new to arduino programming, and I too found the install very confusing for the following reasons:

  1. The library manager (at least for Arduino IDE v 1.9.0-beta) does not include a "Time" or "TimeLib" library
  2. This repo is called "Time", not "TimeLib"
  3. https://www.arduino.cc/en/Guide/Libraries does not describe how to install from a GitHub repo, so especially for users not accustomed to cloning repos, there are a couple of steps that the user might not be aware of.

I'm assuming the proper way to install this library is:

  1. clone the repo
  2. compress the cloned repo as a *.zip
  3. go to the Arduino IDE and import the library as a zip file

At least, that's how I installed the library. Any reason why the Arduino IDE doesn't have an "install from GitHub" feature?

I'm curious why this library isn't included in the Arduino IDE library manager, given that it seems to be quite popular.

PaulStoffregen commented 5 years ago

The library manager (at least for Arduino IDE v 1.9.0-beta) does not include a "Time" or "TimeLib" library

Yes, it does indeed have Time in the library manager.

time_screenshot

Github issues are the WRONG place to ask for technical support. Ask on the Arduino Forum.

https://forum.arduino.cc/index.php

jareklupinski commented 5 years ago

Had this issue today, was confused because I didn't recognize the author "Michael Margolis", which made me believe that the Time library in the Arduino LIbrary List was not from you Paul. Is it possible to change the "By" name in the Library List to yours?

OscarVanL commented 4 years ago

Same confusion here. An installation header on the repo readme would be nice.

PaulStoffregen commented 4 years ago

Also added this to the readme. https://github.com/PaulStoffregen/Time/commit/ebda9bdf134913ee8384e93dd2281994af14d796

Hopefully these 2 updates to the readme fully resolve this issue?

lmatter commented 3 years ago

In case someone else arrives here, searching the library manager for the word "time" lists just about every library. Searching for the word "timekeeping" will show the correct library.

filmonghebre commented 3 years ago

In case someone else arrives here, searching the library manager for the word "time" lists just about every library. Searching for the word "timekeeping" will show the correct library. This helps me to add my TimeLib.h Thank you Immatter

SurenBono commented 1 year ago

Got it working with copy & pasting the src into the project folder..but I still can't figure out how to blink the separators (:) every 500millis..Testing for ESP-NOW stratum2 gps broadcast project on esp8266...every single room will have a stratum2 gps clock an alternative to NTP...incase I forgot to pay the Internet bill..