https://github.com/kongr45gpen/hubot-datasheets
A hubot script that finds electronic component datasheets
https://github.com/kongr45gpen/hubot-datasheets
datasheets hubot hubot-script octopart
Last synced: 2 months ago
JSON representation
A hubot script that finds electronic component datasheets
- Host: GitHub
- URL: https://github.com/kongr45gpen/hubot-datasheets
- Owner: kongr45gpen
- License: mit
- Created: 2018-09-03T15:12:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T10:57:47.000Z (over 6 years ago)
- Last Synced: 2025-02-26T07:38:07.600Z (3 months ago)
- Topics: datasheets, hubot, hubot-script, octopart
- Language: JavaScript
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hubot-datasheets
A hubot script that links datasheets for electronic components from [Octopart](https://octopart.com/).
See [`src/datasheets.js`](src/datasheets.js) for full documentation.
## Installation
In hubot project repo, run:
`npm install hubot-datasheets --save`
Then add **hubot-datasheets** to your `external-scripts.json`:
```json
[
"hubot-datasheets"
]
```You will also need to obtain an *API key* from [Octopart](https://octopart.com/api/register).
As soon as your registration is complete, store that in an enviromnment variable in your hubot script:```bash
export HUBOT_OCTOPART_API_KEY=myapikey
```## Sample Interaction
```
user1>> hubot datasheet LD1117
hubot>> Datasheet for **LD1117S25TR** (0.13€): http://datasheet.octopart.com/LD1117S25TR-STMicroelectronics-datasheet-38944308.pdf
```## NPM Module
https://www.npmjs.com/package/hubot-datasheets
## To-Do List
- [ ] Handle thrown errors
- [x] Functional testing
- [ ] Better behaviour for parts where the default sorting is not correct (e.g. TI CC1120)