GithubHelp home page GithubHelp logo

aftership-card's People

Contributors

bertvandormael avatar carlos-sarmiento avatar iantrich avatar ludeeus avatar slinkymanbyday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aftership-card's Issues

add tracking not working

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?

v 1.1.1 still disappears for me

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"
}

Card is empty

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

Add your logs here.
TypeError: str is null
console
codelines

Aftership integration warning

Checklist:

  • [x ] I updated to the latest version available
  • [x ] I cleared the cache of my browser

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:

Return "No ETA" and not 1st January 1970 when no ETA

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.

Package/Product Image Thumbnail/Preview

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.

Error on device update

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]

Cannot install via HACS

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

Requesting a way to remove/hide old packages

Delivered packages simply stay on the card, accumulating over time.

Describe the solution you'd like

  • A configurable "expiration" where delivered packages would "expire" from the card X days after delivered.
  • A way to delete packages from the card.

Delivery status misaligned and not cropped

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:

  • Text position is not affected by browser window size
  • I am using a custom sensor in order to address this bug (home-assistant/core#25481). In the thread you can check my edit. The bug has an out of range array that normally makes the sensor not work. My temp fix addresses that problem.

Thanks for the card!

Update documentation

Checklist:

  • [x ] I updated to the latest version available
  • [ x] I cleared the cache of my browser

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:

Can't add new shipments

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

Screen on ios is messed up

I installed and successfully connected my aftership account.
On my PC, it shows just fine, but on a ios homeasssitant companion it shows right white margin
image

any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.