Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find and document a way to have a RTC working via i2c #80

Closed
evilsocket opened this issue Oct 5, 2019 · 5 comments
Closed

find and document a way to have a RTC working via i2c #80

evilsocket opened this issue Oct 5, 2019 · 5 comments
Assignees

Comments

@evilsocket
Copy link
Owner

find and document a way to have a RTC working via I2C

for instance https://www.amazon.it/HALJIA-precisione-RTC-Modulo-memoria-Raspberry/dp/B01F6MJZGQ

@evilsocket evilsocket self-assigned this Oct 5, 2019
@caquino
Copy link

caquino commented Oct 8, 2019

Derek add label: Hacktoberfest

@leon-th
Copy link
Contributor

leon-th commented Oct 9, 2019

Should the RTC work as plugin? Or how should it work?

@evilsocket
Copy link
Owner Author

if connected, it should just be used to set the correct time on the board, no interaction with the rest of the software is required

@leon-th
Copy link
Contributor

leon-th commented Oct 10, 2019

I programmed it like this:
I have a script that enables or disables the RTC settings. If you have a clock and disconnect without
configuring it, the system returns to 1970. To prevent this, the script check called by a plugin is done
at startup to see if the clock is connected.
The plugin starts the script at startup and synchronizes the time when the internet is available
Is it good like that?

LeonT

@hmax42
Copy link

hmax42 commented Oct 13, 2019

since there is an optional gps plugin, would it be feasible to acquire the time from the gps?

@evilsocket evilsocket transferred this issue from evilsocket/pwnagotchi Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants