iantrich / aftership-card Goto Github PK
View Code? Open in Web Editor NEW📦 Aftership Card for package tracking
License: MIT License
📦 Aftership Card for package tracking
License: MIT License
Hi There,
When I add a tracking in Aftership portal I see it back in the card.
When I add a tracking from the card it doesn't show in Aftership portal or in the card
What can this be?
Version of the cusom_component
1.1.1
Describe the bug
The card goes invisible if a package doesn't have a location it seems.
log
Not sure what logfile you refer to.
The aftership sensor shows this
{
"attribution": "Information provided by AfterShip",
"pending": 1,
"trackings": [
{
"name": "Trykknap",
"tracking_number": "LX744882759NL",
"slug": "postnl-international",
"link": "https://track.aftership.com/postnl-international/LX744882759NL",
"last_update": "2019-08-27T21:11:27+00:00",
"expected_delivery": null,
"status": "Pending",
"last_checkpoint": "Shipment pending"
}
],
"unit_of_measurement": "packages",
"friendly_name": "aftership",
"icon": "mdi:package-variant-closed"
}
Version of the cusom_component
1.1.0
Describe the bug
After entering 3 parcels, the card is empty, and does not show any content (disappears)
Sensors shows:
State: 2
{
"attribution": "Information provided by AfterShip",
"delivered": 1,
"intransit": 1,
"pending": 1,
"trackings": [
{
"name": "Sonoff Basic",
"tracking_number": "67890",
"slug": "postnl-international",
"link": "https://track.aftership.com/postnl-international/67890",
"last_update": "2019-07-01T15:14:11+00:00",
"expected_delivery": null,
"status": "Delivered",
"last_checkpoint": {
"slug": "danmark-post",
"city": "Brøndby",
"created_at": "2019-07-01T15:11:11+00:00",
"location": "Brøndby, Brøndby, 2605, Danmark",
"country_name": "Danmark",
"message": "Forsendelsen er omdelt til modtagerens brevkasse",
"country_iso3": "DNK",
"tag": "Delivered",
"subtag": "Delivered_001",
"subtag_message": "Delivered",
"checkpoint_time": "2019-07-01T15:29:49",
"coordinates": [],
"state": null,
"zip": "2605"
}
},
{
"name": "23456",
"tracking_number": "23456",
"slug": "postnl-international",
"link": "https://track.aftership.com/postnl-international/23456",
"last_update": "2019-06-29T12:07:47+00:00",
"expected_delivery": null,
"status": "InTransit",
"last_checkpoint": {
"slug": "postnl-international",
"city": null,
"created_at": "2019-06-29T09:05:45+00:00",
"location": null,
"country_name": null,
"message": "The item is on transport to the country of destination",
"country_iso3": null,
"tag": "InTransit",
"subtag": "InTransit_007",
"subtag_message": "Departure Scan",
"checkpoint_time": "2019-06-28T14:37:00",
"coordinates": [],
"state": null,
"zip": null
}
},
{
"name": "Havelys",
"tracking_number": "12345",
"slug": "postnl-international",
"link": "https://track.aftership.com/postnl-international/12345",
"last_update": "2019-06-29T09:05:08+00:00",
"expected_delivery": null,
"status": "Pending",
"last_checkpoint": "Shipment pending"
}
],
"unit_of_measurement": "packages",
"friendly_name": "aftership",
"icon": "mdi:package-variant-closed"
}
log
javascript errors
Checklist:
Release with the issue:
v1.2.2
Last working release (if known):
v1.2.2
Browser and Operating System:
Google Chrome 96.0.4664.93 64Bit, Windows 10 Version 21H2 (Build 19044.1387)
Description of problem:
Good morning,
following the update of Home Assistant to version 2021.12.0 I found the following error in the log:
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:103
First occurred: 14:35:01 (2 occurrences)
Last logged: 14:35:04
Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2. Please report issue for aftership using this method at homeassistant/components/aftership/sensor.py, line 66: await aftership.get_trackings()
Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2. Please report issue for aftership using this method at homeassistant/components/aftership/sensor.py, line 150: await self.aftership.get_trackings()
As this is a supplement that I use very often I would be sorry if it was unusable from February 2022.
I hope it can be fixed.
That warning shouldn't appear in the registry.
The method has been deprecated and will soon be no longer usable.
Javascript errors shown in the web inspector (if applicable):
none
Additional information:
Is your feature request related to a problem? Please describe.
When there's no ETA returned by aftership, the ETA is set to new date(Null) => 1 january 1970
Describe the solution you'd like
Print : No ETA
Describe alternatives you've considered
Ignoring...because it's not really an issue but just improvement
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
It would be great to have an image preview of the package/product itself.
It can be based on the order link or the product link which contains the image of the product in that URL.
Describe alternatives you've considered
The user will probably look on HomeAssistand with the aftership-card in front of him in one tab (or screen), and the order page on another tab (or screen), and he would then wish to have to shortest way to enter the relevant details. In every order summary, the user will have in front of him the product image (or thumbnail), which is normally represented as link to the product itself, and the tracking number.
I believe the shortest experience for the user will be dragging the link/image from one tab to another. The same for the tracking number.
Additional context
Please take a look on https://postal.ninja/en/tracks
They have some great features. The thing I think is especially great is the user doesn't need to enter anything else besides the tracking number and the product URL. Then the website automatically populates the relevant image preview and the package/product name as well.
Additionally, they have support for package delivery deadlines (ETA), and on-route live information updates.
2019-05-26 17:28:13 ERROR (MainThread) [homeassistant.components.sensor] aftership: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 375, in async_device_update
await self.async_update()
File "/usr/src/app/homeassistant/components/aftership/sensor.py", line 190, in async_update
'last_checkpoint': track['checkpoints'][-1]
Is it possible to add this card to HACS? More info about publishing can be found here: https://hacs.xyz/docs/publish/start
Hello,
i can't install plugin with homeassistant release 0.101.2 (docker version)
From home-assistant.log i have the following entries when trying to install:
2019-11-11 16:48:47 ERROR (MainThread) [hacs.http] No repository found with ID example.png
"AFTERSHIPO-CARD" -> "AFTERSHIP-CARD"
Delivered packages simply stay on the card, accumulating over time.
Describe the solution you'd like
Release with the issue:
Last working release (if known): 1.1.9
Browser and Operating System: Firefox/Chrome, WIn10
Description of problem:
The card works and pulls the data correctly, but the styling is completely off on my end.
The status (Delivered, In Transit...) is not aligned to the right edge of the card, and sometimes it even goes further outside of it (instead of cropping the text)
Reference image: https://imgur.com/a/Cub23jE
Additional information:
Thanks for the card!
Checklist:
Release with the issue:
Last working release (if known):
Browser and Operating System:
Description of problem:
Please update documentation that this needs a intergration and Api-key for this to work. Or link to https://www.home-assistant.io/integrations/aftership under "installation".
Javascript errors shown in the web inspector (if applicable):
Additional information:
Version of the cusom_component
1.1.0
Describe the bug
When filling in the fields on the card, with description and tracking number, and hits the + sign, nothing more happens.
No packages are added
log
Nothing in the logs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.