Skip to content

Commit

Permalink
iCloud3 v2.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 committed Dec 27, 2021
1 parent b620186 commit 0db8592
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Welcome to iCloud3 v2.4!

[![CurrentVersion](https://img.shields.io/badge/Current_Version-v2.4.6-blue.svg)](https://github.com/gcobb321/icloud3)
[![Released](https://img.shields.io/badge/Released-October,_2021-blue.svg)](https://github.com/gcobb321/icloud3)
[![CurrentVersion](https://img.shields.io/badge/Current_Version-v2.4.7-blue.svg)](https://github.com/gcobb321/icloud3)
[![Released](https://img.shields.io/badge/Released-December,_2021-blue.svg)](https://github.com/gcobb321/icloud3)
[![ProjectStage](https://img.shields.io/badge/Project_Stage-General_Availability-red.svg)](https://github.com/gcobb321/icloud3)
[![Type](https://img.shields.io/badge/Type-Custom_Component-orange.svg)](https://github.com/gcobb321/icloud3)
[![HACS](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/gcobb321/icloud3)
Expand Down
8 changes: 7 additions & 1 deletion custom_components/icloud3/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
#pylint: disable=unused-argument, unused-variable
#pylint: disable=too-many-instance-attributes, too-many-lines

VERSION = '2.4.6'
VERSION = '2.4.7'

'''
v2.4.7 (12/27/2011)
1. Fixes a Waze Route Tracking issue where no information or an error was reported from Waze Servers. This was caused by a variable name change on the Waze side.
v2.4.6 (10/11/2021)
1. Changed the icon for zones from mdi:cellphone-iphone to mdi:cellphone because of Home Assistant mdi update.
2. Changed the sensor state values for Travel Time, Distance, Next Update Time, etc. from an empty field to a value to address a Lovelace display change. The fields that were empty were not alligned with the field next to them. Travel Time will now display 0 min when in a zone. Other fields will display '___' when empty.
Expand Down Expand Up @@ -8012,6 +8015,9 @@ def _save_event(self, devicename, event_text):
travel_time = self.last_tavel_time.get(devicename_zone, '')
distance = self.last_distance_str.get(devicename_zone, '')

travel_time = travel_time.replace('0 min', '')
distance = distance.replace('0 mi', '').replace('0 km', '')

if (instr(type(event_text), 'dict') or instr(type(event_text), 'list')):
event_text = str(event_text)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/icloud3/waze_route_calc_ic3.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def calc_route_info(self, from_lat, from_long, to_lat, to_long):

route = self.get_route(from_lat, from_long, to_lat, to_long)

route_time, route_distance = self._add_up_route(route['result'])
route_time, route_distance = self._add_up_route(route['results'])

self.log.info(f"Location: From-({from_lat:0.5f}, {from_long:0.5f}), To-({to_lat:0.5f}, {to_long:0.5f}), Region-{self.region}")
self.log.info(f"Results : Time-{route_time:0.2f}min, Distance-{route_distance:0.2f}km")
Expand Down
Binary file removed development-v2.4.6/icloud3-v2.4.6.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
#pylint: disable=unused-argument, unused-variable
#pylint: disable=too-many-instance-attributes, too-many-lines

VERSION = '2.4.6'
VERSION = '2.4.7'

'''
v2.4.7 (12/27/2011)
1. Fixes a Waze Route Tracking issue where no information or an error was reported from Waze Servers. This was caused by a variable name change on the Waze side.
v2.4.6 (10/11/2021)
1. Changed the icon for zones from mdi:cellphone-iphone to mdi:cellphone because of Home Assistant mdi update.
2. Changed the sensor state values for Travel Time, Distance, Next Update Time, etc. from an empty field to a value to address a Lovelace display change. The fields that were empty were not alligned with the field next to them. Travel Time will now display 0 min when in a zone. Other fields will display '___' when empty.
Expand Down Expand Up @@ -8012,6 +8015,9 @@ def _save_event(self, devicename, event_text):
travel_time = self.last_tavel_time.get(devicename_zone, '')
distance = self.last_distance_str.get(devicename_zone, '')

travel_time = travel_time.replace('0 min', '')
distance = distance.replace('0 mi', '').replace('0 km', '')

if (instr(type(event_text), 'dict') or instr(type(event_text), 'list')):
event_text = str(event_text)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v2.4.7 (12/27/2011)
1. Fixes a Waze Route Tracking issue where no information or an error was reported from Waze Servers. This was caused by a variable name change on the Waze side.

v2.4.6 (10/11/2021)
1. Changed the icon for zones from mdi:cellphone-iphone to mdi:cellphone because of Home Assistant mdi update.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def calc_route_info(self, from_lat, from_long, to_lat, to_long):

route = self.get_route(from_lat, from_long, to_lat, to_long)

route_time, route_distance = self._add_up_route(route['result'])
route_time, route_distance = self._add_up_route(route['results'])

self.log.info(f"Location: From-({from_lat:0.5f}, {from_long:0.5f}), To-({to_lat:0.5f}, {to_long:0.5f}), Region-{self.region}")
self.log.info(f"Results : Time-{route_time:0.2f}min, Distance-{route_distance:0.2f}km")
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG-v2.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The following enhancements and changes have been made iCloud3:

------

### v2.4.7 (12/27/2011) - Fix Waze Issue

1. Fixes a Waze Route Tracking issue where no information or an error was reported from Waze Servers. This was caused by a variable name change on the Waze side.

### v2.4.6 (10/11/2021) - HA cellphone icon update, Lovelace Sensor Alignment, Increase Waze retry count

1. Changed the icon for zones from mdi:cellphone-iphone to mdi:cellphone because of Home Assistant mdi update.
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# iCloud3 Device Tracker Custom Component

[![CurrentVersion](https://img.shields.io/badge/Current_Version-v2.4.6-blue.svg)](https://github.com/gcobb321/icloud3)
[![Released](https://img.shields.io/badge/Released-October,_2021-blue.svg)](https://github.com/gcobb321/icloud3)
[![CurrentVersion](https://img.shields.io/badge/Current_Version-v2.4.7-blue.svg)](https://github.com/gcobb321/icloud3)
[![Released](https://img.shields.io/badge/Released-December,_2021-blue.svg)](https://github.com/gcobb321/icloud3)
[![ProjectStage](https://img.shields.io/badge/Project_Stage-General_Availability-red.svg)](https://github.com/gcobb321/icloud3)
[![Type](https://img.shields.io/badge/Type-Custom_Component-orange.svg)](https://github.com/gcobb321/icloud3)
[![HACS](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/gcobb321/icloud3)
Expand Down
4 changes: 2 additions & 2 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<table style="padding: 0 10px 0 40px;">
<tr>
<td>
<a class="sidebar-version-date">Version: 2.4.6, October, 2021</a>
<a class="sidebar-version-date">Version: 2.4.7, December, 2021</a>
</td>
</tr>
</table>
</nav>

- What's New and What Changed
- [Changes and new Features - v2.4.6](CHANGELOG-v2.4.md)
- [Changes and new Features - v2.4.7](CHANGELOG-v2.4.md)
- Welcome to iCloud3
- [1.0 Introduction](README.md)
- [1.1 Quick Start Guide](chapters/1.1-quick-start-guide.md)
Expand Down
Binary file modified icloud3.zip
Binary file not shown.

0 comments on commit 0db8592

Please sign in to comment.