timex_datalink_caldav 1.1.3 → 1.1.4
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 -1
- data/lib/timex_datalink_caldav/client.rb +3 -0
- data/lib/timex_datalink_caldav/version.rb +1 -1
- data/lib/timex_datalink_caldav.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: 2d059c63a228fea3df7cf1c83fec9f75814d715943781dd797e50bfc6363f3e8
|
4
|
+
data.tar.gz: 7c5dd84c49aa45a0464a5dc67eedc09d19fecb85140a20d0fb25fc5e4cbdea9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f272dd7cb55977b653186aa46c0e817af6a9d339a300e6e5ef022c28dac9b97ff299fbe9fd3a3a51599eca8e37fbfb4d81b1e9cc453dda5e58200d37d9585b9
|
7
|
+
data.tar.gz: 0b5a4ceb39815c7aec63cc45a344e351471f405e71c1128300cea9c7910caa67591380ff1fd77ed4c8727228d9007a522d339eb153e0f0e05529151ff055b250
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# TimexDatalinkCaldav
|
2
2
|
|
3
|
+

|
4
|
+
|
5
|
+
|
3
6
|
TimexDatalinkCaldav is a simple Ruby gem designed to sync events from a CalDAV server or an ical formatted ics file to a Timex Datalink watch. It can also be used as a standalone command-line interface (CLI) tool.
|
4
7
|
|
5
8
|
## Pre-requisites
|
@@ -82,4 +85,4 @@ If you want to use this, I highly recommend pairing it with the Raspberry Pi Pic
|
|
82
85
|
|
83
86
|
## Thanks
|
84
87
|
|
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
|
88
|
+
- 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
|
@@ -80,6 +80,8 @@ module TimexDatalinkCaldav
|
|
80
80
|
else
|
81
81
|
add_appointment_event(appointment_map, appointments, phrase_builder, summary_words, occurrences)
|
82
82
|
end
|
83
|
+
elsif @protocol_version == 9 or @protocol_version == 6
|
84
|
+
print "Protocol version #{@protocol_version} doesn't support events, skipping event: #{summary_words.join(' ')}\n"
|
83
85
|
else
|
84
86
|
if all_day_event?(event)
|
85
87
|
add_anniversary(event, anniversary_map, anniversaries, summary_words, occurrences)
|
@@ -223,6 +225,7 @@ module TimexDatalinkCaldav
|
|
223
225
|
)
|
224
226
|
utc_time_model = @protocol_class::Time.new(
|
225
227
|
zone: 2,
|
228
|
+
time: time2,
|
226
229
|
flex_time: true,
|
227
230
|
flex_time_zone: true,
|
228
231
|
is_24h: true,
|
@@ -20,7 +20,7 @@ module TimexDatalinkCaldav
|
|
20
20
|
all_anniversaries.concat(anniversaries) if anniversaries.any?
|
21
21
|
end
|
22
22
|
|
23
|
-
if all_appointments.any? || all_anniversaries.any?
|
23
|
+
if all_appointments.any? || all_anniversaries.any? || @options[:api] == "6" or @options[:api] == "9"
|
24
24
|
client = TimexDatalinkCaldav::Client.new(
|
25
25
|
@options[:endpoints][0][:user],
|
26
26
|
@options[:endpoints][0][:password],
|
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.4
|
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-07-
|
11
|
+
date: 2023-07-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.'
|