timex_datalink_caldav 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/timex_datalink_caldav/client.rb +6 -6
- data/lib/timex_datalink_caldav/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888cd80df54f0b40e76d5d068f66ed351dd5ef1b0dd31d408b098caf4e42f1b2
|
4
|
+
data.tar.gz: 302a12dc3fc23064c1f7a94a8da3132891f0180274641fe30f0f4904d2dbd430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccadb2277526dec448f94ec2fa70bfa8c25e7f91b2022308df9a9717ea4de818b91615e1c2d42945bae0676cdaf7e9da196d0ee6d5b71d569b0b52d5d0480ce7
|
7
|
+
data.tar.gz: 928928a0082a3b684dc37f43b16cec09db4c2019b1114d1e495cefed1a95bc17fdaa2cdb723698f25806a14ff9a32efff3dacb2bf7051f50fe5e37327b32c496
|
data/README.md
CHANGED
@@ -79,3 +79,7 @@ If you want to use this, I highly recommend pairing it with the Raspberry Pi Pic
|
|
79
79
|
- This gem is not affiliated with Timex, nor is it affiliated with any CalDAV server. It is simply a tool that I wrote to sync my events from my CalDAV server to my Timex Datalink watch.
|
80
80
|
|
81
81
|
- This gem uses the anniversary feature for full day events, and the appointments feature for events with a start and end time.
|
82
|
+
|
83
|
+
## Thanks
|
84
|
+
|
85
|
+
- This project would not exist without the hard work of the people who reverse engineered the Timex Datalink protocol. I would like to thank them for their hard work. Mainly this gem https://github.com/synthead/timex_datalink_client
|
@@ -126,7 +126,7 @@ module TimexDatalinkCaldav
|
|
126
126
|
est_time = occurrence.start_time.in_time_zone(get_localzone)
|
127
127
|
key = "#{est_time}_#{summary_words.join(' ')}"
|
128
128
|
unless anniversary_map[key]
|
129
|
-
puts "Adding anniversary event: #{summary_words.join(' ')} at date #{
|
129
|
+
puts "Adding anniversary event: #{summary_words.join(' ')} at date #{est_time}"
|
130
130
|
event_phrase = phrase_builder.vocab_ids_for(*summary_words)
|
131
131
|
anniversary = @protocol_class::Eeprom::Calendar::Event.new(
|
132
132
|
time: Time.new(est_time.year, est_time.month, est_time.day, 9, 30, 0),
|
@@ -143,10 +143,10 @@ module TimexDatalinkCaldav
|
|
143
143
|
est_time = occurrence.start_time.in_time_zone(get_localzone)
|
144
144
|
key = "#{est_time}_#{summary_words}"
|
145
145
|
unless appointment_map[key]
|
146
|
-
puts "Adding appointment: #{summary_words} at time #{est_time}"
|
146
|
+
puts "Adding appointment: #{summary_words.join(' ')} at time #{est_time}"
|
147
147
|
appointment = @protocol_class::Eeprom::Appointment.new(
|
148
148
|
time: est_time,
|
149
|
-
message: summary_words
|
149
|
+
message: summary_words.join(' ')
|
150
150
|
)
|
151
151
|
appointments << appointment
|
152
152
|
appointment_map[key] = true
|
@@ -159,10 +159,10 @@ module TimexDatalinkCaldav
|
|
159
159
|
est_time = occurrence.start_time.in_time_zone(get_localzone)
|
160
160
|
key = "#{est_time}_#{summary_words}"
|
161
161
|
unless anniversary_map[key]
|
162
|
-
puts "Adding anniversary: #{summary_words} at date #{
|
162
|
+
puts "Adding anniversary: #{summary_words.join(' ')} at date #{est_time}"
|
163
163
|
anniversary = @protocol_class::Eeprom::Anniversary.new(
|
164
|
-
time:
|
165
|
-
anniversary: summary_words
|
164
|
+
time: est_time,
|
165
|
+
anniversary: summary_words.join(' ')
|
166
166
|
)
|
167
167
|
anniversaries << anniversary
|
168
168
|
anniversary_map[key] = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timex_datalink_caldav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Hardy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Adds a CLI and a feature to pull your next day of calendar events into
|
14
14
|
the Timex Datalink watch. Note: Hardcoded protocol1 and EST timezone. At the moment.'
|