timex_datalink_caldav 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/timex_datalink_caldav/client.rb +4 -4
- 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: 5f4612f1904efd157ba195ed9b4b1db17877025eaa38801a8c00b02e2bd302d5
|
4
|
+
data.tar.gz: bb734ba73ba8ebde1ef50fda7c85a25e6be05bbaa59b7273bbbabe7bca172b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cedac907434c2f7dc0c4f28cefc85d1c09b8b1186dc671d8fca6a0365f44c9fd7afd42967b9bc48314206d7caf47ac0f0de476204ade0df3e9a2e46bc23dc98
|
7
|
+
data.tar.gz: 4e8f924a23cd5fe3401f70ae1d7a28070070a412de12ba6d1848818661b2ee616069feba1e993b47454874dc1ff1d3ba1261a09921ecca413877d3e32a2671e7
|
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
|
@@ -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 #{event.dtstart.to_s}"
|
162
|
+
puts "Adding anniversary: #{summary_words.join(' ')} at date #{event.dtstart.to_s}"
|
163
163
|
anniversary = @protocol_class::Eeprom::Anniversary.new(
|
164
164
|
time: event.dtstart.to_time,
|
165
|
-
anniversary: summary_words
|
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.1
|
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-13 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.'
|