pdo59
097f5db177
Refactored info provider to be stateless and independent from session, optimized Part-DB API usage, and fixed PHPStan issues.
...
Refactored info provider to be stateless and independent from session, now use Psr\Cache, fixed issues identified by PHPStan, additional minor enhancements and bug fixes.
2024-09-02 17:10:53 +02:00
pdo59
91fbd4a346
OEMSecrets provider interface v.1.0
...
New class for interacting with the OEMSecrets (https://www.oemsecrets.com ) API version 3.0.1.
2024-08-26 20:35:47 +02:00
frank-f
fd521acaa4
Update LCSCProvider field for real datasheet URL ( #670 )
2024-08-21 17:35:55 +02:00
Jan Böhmer
f6e955b487
Hide mouser parts with an invalid product ID to avoid the issue described in #616
2024-06-22 23:37:50 +02:00
Jan Böhmer
20f32c7f12
Applied rector suggestions
2024-06-22 00:31:43 +02:00
SapuSeven
4eb223c401
Update LCSC API URL ( #612 )
2024-05-12 18:21:23 +02:00
frank-f
7a6b045030
Improve parameter parsing ( #583 )
...
* DigiKey: Skip empty values
* Move improved range detection from LCSCProvider to ParameterDTO class
Improve numeric value detection by moving extra info to value_text
* ParameterDTO: Add micro unit prefix
* Bring $value_text2 to a defined state
* ParameterDTO: Don't overwrite $unit if it's not empty
* ParameterDTO: Don't overwrite $unit if it's not empty
* Correct some inaccuacies in comments
* Added tests and fixed certain edge cases in parsing parameters
* Added more tests for parameter parsing
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-04-15 22:33:27 +02:00
frank-f
9770ffa46b
LCSC: Follow first 'pdfUrl' link to get real datasheet URL ( #582 )
...
* Follow first 'pdfUrl' link to get real datasheet URL
* Fix @param
* Fix @param
* Remove User-Agent header
It's not needed - LCSC was just having some server troubles over the weekend
* Added comment explaining the json_decode in getRealDatasheetUrl
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-04-03 12:38:20 +02:00
Jan Böhmer
59c4248efe
Strip HTML tags from more LCSC fields
...
This should hopefully fix issue #553
2024-03-09 23:09:49 +01:00
Jan Böhmer
a5b101a0ea
Fixed error, when retrieving prices in USD from LCSC
...
This fixes issue #552 . It seems that LCSC changed their currency symbol for US-Dollar
2024-03-09 22:54:12 +01:00
Jan Böhmer
c989be2719
Retrieve the part mass from mouser API if available
2024-03-09 21:34:05 +01:00
Jan Böhmer
925f5c0ce0
Fixed phpstan bug
2024-03-04 22:42:24 +01:00
Jan Böhmer
2bcbe1d0be
Made mouser price info parsing more flexible
...
Austrian mouser returned some other formatted string, which caused problems on the old method. This fixes issue #540
2024-03-04 22:38:15 +01:00
Jan Böhmer
0e68f0783f
Assume that a mouser part is active, if mouser has parts instock even if it is marked as "new part"
...
Related to #540
2024-03-04 22:18:35 +01:00
Jan Böhmer
d49bb1f4b5
Removed unused import statements
2024-03-03 20:34:36 +01:00
Jan Böhmer
87533b6031
Fixed further inspection issues
2024-03-03 20:33:24 +01:00
Jan Böhmer
42e604245c
Fixed some inspection issues
2024-03-03 19:57:31 +01:00
Jan Böhmer
4b7d200aa2
Retrieve category info from LCSC
2024-02-24 23:32:50 +01:00
Jan Böhmer
e937432d1e
Fixed phpstan issue
2024-02-24 23:23:46 +01:00
frank-f
e8bc93f67a
Fix RegEx to handle negative values and Ohms without prefix ( #530 )
...
* Fix RegEx to include negative values
* Update RegEx to handle Ω without prefix
* Update RegEx to include %
* Handle plus/minus values as range
* Fix copy&paste error
* Change minimum value to negative
* Escape decimal point and add slash to valid unit characters to be able to pick up for example "ppm/°C"
* Skip empty values
2024-02-24 22:48:38 +01:00
Jan Böhmer
20be83c345
Allow to configure the currency to get prices in for the LCSCProvider
2024-02-22 23:57:57 +01:00
Jan Böhmer
95ef97fcc2
Added possibility to enable/disable the LCSC provider
2024-02-22 23:32:12 +01:00
Jan Böhmer
d600cb4b9a
Improved parsing of parameters. Values with unit and ranges get now properly parsed into the Part-DB structures
2024-02-22 23:22:52 +01:00
Jan Böhmer
0bbfaf9893
Improved typing and formatting of LCSC provider slightly
2024-02-22 22:41:09 +01:00
Nexrem
e3e562a154
Add LCSC Info Provider using their public API
2024-02-22 15:32:33 +01:00
Jan Böhmer
7cd2662c77
Moved API key to query options of HTTPClient in MouserProvider
2023-10-08 00:18:25 +02:00
Jan Böhmer
4f0730b6f9
Properly formatted MouserProvider and fixed some type issues
2023-10-08 00:15:57 +02:00
Jan Böhmer
d7bc74fb2b
Slightly restructured mouserprovider to remove redundant code
2023-10-08 00:00:10 +02:00
Jan Böhmer
a0b31cfd7e
Made mouser provider key lowercase to be consistent with other providers
2023-10-07 23:49:04 +02:00
Jan Böhmer
33033bc5b1
Added the MouserProvider by @pdo59
2023-10-07 23:46:31 +02:00
Jan Böhmer
5750e7dbdf
Fixed exception if octopart did not returned an category for a part
2023-07-31 22:21:08 +02:00
Jan Böhmer
ffe76f9d2e
Use full path for categories returned by Octopart
2023-07-31 22:17:24 +02:00
Jan Böhmer
5b1ad541a8
Added an caching layer to octopart provider to reduce API queries.
2023-07-31 22:11:46 +02:00
Jan Böhmer
4824a82c3f
Fixed error, when octopart search got no results
2023-07-31 01:00:34 +02:00
Jan Böhmer
f7cea1100c
Allow to configure various options of the octopart provider
2023-07-31 00:57:33 +02:00
Jan Böhmer
827dd01e28
Get shopping informations from octopart
2023-07-31 00:13:59 +02:00
Jan Böhmer
d969f49ecc
Get specifications, mass, footprint and manufacturer status from Octopart
2023-07-31 00:01:19 +02:00
Jan Böhmer
43cc37d10f
Added very basic octopart info provider
2023-07-30 23:04:18 +02:00
Jan Böhmer
52c6884e28
Allow slashes in digikey product ids
2023-07-17 23:21:30 +02:00
Jan Böhmer
3a8c5a788f
Fixed phpstan issues
2023-07-17 00:43:35 +02:00
Jan Böhmer
7b61cb3163
Added more env variables to configure providers
2023-07-17 00:19:02 +02:00
Jan Böhmer
4c1c6701b3
Test availability of the info provider pages
2023-07-16 23:56:30 +02:00
Jan Böhmer
412fa3f0bf
Get datasheets and category from digikey
2023-07-16 18:35:44 +02:00
Jan Böhmer
01d9109c45
Improved digikey provider
2023-07-16 17:10:48 +02:00
Jan Böhmer
f7648e3311
Added an button to connect the oauth providers from WebUI
2023-07-16 03:18:33 +02:00
Jan Böhmer
c203de082e
Added proper OAuth authentication for digikey and other providers
2023-07-16 03:07:53 +02:00
Jan Böhmer
db97114fb4
Use preview image and other additional images provided by the info provider
2023-07-15 21:41:35 +02:00
Jan Böhmer
de82249d8d
Provide footprint information on TMEProvider
2023-07-15 01:52:46 +02:00
Jan Böhmer
f9fdae9de9
Added an TME data provider
2023-07-15 01:01:20 +02:00
Jan Böhmer
0cb46039dd
Allow to retrieve price and shopping informations from info providers
2023-07-14 00:09:22 +02:00