{"id":19430393,"url":"https://github.com/phpmacher/availability-widget","last_synced_at":"2025-02-25T05:43:19.281Z","repository":{"id":189522869,"uuid":"451257705","full_name":"phpmacher/availability-widget","owner":"phpmacher","description":"Availability-Widget (with Scriptable)","archived":false,"fork":false,"pushed_at":"2023-10-02T22:27:03.000Z","size":155,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T20:14:03.326Z","etag":null,"topics":["ios","ios-scriptable","ios-widget","online-shop","online-store","scriptable","scriptable-app","widget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpmacher.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-23T23:29:21.000Z","updated_at":"2023-12-24T05:33:37.000Z","dependencies_parsed_at":"2023-08-20T16:28:01.154Z","dependency_job_id":null,"html_url":"https://github.com/phpmacher/availability-widget","commit_stats":null,"previous_names":["phpmacher/availability-widget"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpmacher%2Favailability-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpmacher%2Favailability-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpmacher%2Favailability-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpmacher%2Favailability-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpmacher","download_url":"https://codeload.github.com/phpmacher/availability-widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612537,"owners_count":19829027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","ios-scriptable","ios-widget","online-shop","online-store","scriptable","scriptable-app","widget"],"created_at":"2024-11-10T14:24:47.695Z","updated_at":"2025-02-25T05:43:19.259Z","avatar_url":"https://github.com/phpmacher.png","language":"JavaScript","readme":"# Availability-Widget (with Scriptable)\n\n![Logo](images/availibility-widget.jpg) \n\nThe Availability-Widget allows you to create [Scriptable](https://scriptable.app/) widgets on your iOS smartphone to see the availabilty of specific producs (e.g. from Decathlon-Shop).\n\n## Widget-Configuration\n\nEach widget can be given the SKU (stock keeping unit) of a product whose availability is to be displayed on the smartphone.\n\n**Please note:** Product numbers do not work. It has to be a SKU.\n\nIn addition, a name for the display can be defined for the respective SKU.\n\n\n### Examples:\n\n````\n1460651,Poloshirt\n\n702282,Shirt\n\n1460651,Golfshirt\n\n2619305,Scooter\n````\n\n\n### What is a sku and how to find it?\n\nFor each product and each size/colour of this product, there is an internal SKU (stock keeping unit) in the online shop that represents this combination.\nPrices and availability are managed internally in the shop using these SKUs. Therefore, the respective SKU is required for the display of availabilities.\n\nYou might ask yourself how to get the SKU number of a product, e.g. within the Decathlon online shop?\n\n  Product example: https://www.decathlon.de/search?Ntt=2558501\n\nThe SKUs of the combinations are stored within each HTML code of the product pages in the form of JSON objects. Theoretically, you can search for them yourself.\n\nOr you can use the bookmarklet (in this case created for the Decathlon shop as an example).\nThis bookmarklet extracts the data and then displays this data at the top of the page with the associated additional information of the variants:\n\n![sku-Bookmarklet](images/bookmarklet-output.png)\n\nHere is the bookmarklet: [DecathlonSKUs](bookmarklet.js) / [DecathlonSKUs-minified](bookmarklet.min.js)\n\n(Minified with the service of: https://neurotechnics.com/tools/jsmin )\n\n### Caching\n\nThe caching of the retrieved data is done by default for 60 minutes at a time.\n\nDuring this time, there are no requests to the retrieved website.\n\nIf there is no internet connection, the data is cached by default for 24 hours.\n\nThese times were chosen because a more frequent update would make only limited sense and because the services are therefore not overloaded.\n\n\n## Features\n\n* real caching (default: 60 minutes) =\u003e no (!) outgoing requests during this time\n* display of the time of the last update\n* Notification if stock has increased since last request\n* Click on widget (if \"open app\" is selected in Config) opens product page of shop (in browser)\n* Bookmarklet for browser to create config string for the widgets\n\n\n## Bugs and Feedback \n\nIf you find any bugs please message me. Feel free to poste your issues to this repository.\n\n\n## Support\n\n\nThanks for visiting or trying out this Availability-Widget!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpmacher%2Favailability-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpmacher%2Favailability-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpmacher%2Favailability-widget/lists"}