timex_datalink_caldav 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d5a3f969562134331aad6dca68c643933c28fb0ff54b69b311d3a6869ffafda
4
- data.tar.gz: 20540f73bc0cc75843b1a5a7b4dd677dcd5e90597b8bdf4d570faa6b2cc46dc5
3
+ metadata.gz: 2d059c63a228fea3df7cf1c83fec9f75814d715943781dd797e50bfc6363f3e8
4
+ data.tar.gz: 7c5dd84c49aa45a0464a5dc67eedc09d19fecb85140a20d0fb25fc5e4cbdea9d
5
5
  SHA512:
6
- metadata.gz: 146d615f4942b1bba8aabe4892c8764c78215e82a89006ae6ffe093f8d3d0622c8f1f2ec2e86344989374e9d8596dd7407b8ea5eece171f9a023ff2d5b48fc38
7
- data.tar.gz: 64f141143666c103795713065ce8b663805474c5af44cdccc14bfffffd8b6e3619628ca5dc541e4061805e5646659d22078553a7fc79f5af62538f67237ef7cc
6
+ metadata.gz: 9f272dd7cb55977b653186aa46c0e817af6a9d339a300e6e5ef022c28dac9b97ff299fbe9fd3a3a51599eca8e37fbfb4d81b1e9cc453dda5e58200d37d9585b9
7
+ data.tar.gz: 0b5a4ceb39815c7aec63cc45a344e351471f405e71c1128300cea9c7910caa67591380ff1fd77ed4c8727228d9007a522d339eb153e0f0e05529151ff055b250
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # TimexDatalinkCaldav
2
2
 
3
+ ![signal-2023-06-22-120357](https://github.com/wjhrdy/timex-datalink-caldav/assets/1795778/85ad006c-6a61-4178-ad03-9c8674172619)
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TimexDatalinkCaldav
4
- VERSION = "1.1.3"
4
+ VERSION = "1.1.4"
5
5
  end
@@ -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.3
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 00:00:00.000000000 Z
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.'