https://github.com/zmoog/alfred-arduino-cli
Python based Workflow to run the Arduino CLI from Alfred.
https://github.com/zmoog/alfred-arduino-cli
alfred alfred-workflow arduino arduino-cli python
Last synced: 2 months ago
JSON representation
Python based Workflow to run the Arduino CLI from Alfred.
- Host: GitHub
- URL: https://github.com/zmoog/alfred-arduino-cli
- Owner: zmoog
- Created: 2021-02-19T22:51:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-27T07:21:08.000Z (over 5 years ago)
- Last Synced: 2024-04-16T00:16:03.534Z (about 2 years ago)
- Topics: alfred, alfred-workflow, arduino, arduino-cli, python
- Language: Python
- Homepage: https://zmoog.dev/post/alfred-workflow
- Size: 9.98 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alfred Arduino CLI
Python based Workflow to run the Arduino CLI from [Alfred](https://www.alfredapp.com).

This project has been written as the companion example for the post https://zmoog.dev/post/alfred-workflow on my [personal website](https://zmoog.dev).
## Development
**Disclaimer**: this is a sample project for a blog post, so probably very few (if any!) people will be interested in it. The ROI in value for the users of me writing a comprehensive documentation, or automate the build, is probably pretty low.
### Requirements
* [Poetry](https://python-poetry.org/) to handle the project dependencies.
* Python 2.7 — I know, it's obsolete, but it's what Apple shipped with macOS for years, so now we're hostages.
### Install required libraries
Export the requirements file from Poetry:
```
$ poetry export --output requirements.txt
```
Install dependencies into the `libs` directory:
```bash
# create a libs directory to host all the dependencies
$ mkdir libs
$ pip install -r requirements.txt --target libs
```
### Fire up a virtualenv
```shell
$ poetry shell
```
### Test it!
```shell
$ export LC_ALL=en_US.UTF-8
$ export LANG=en_US.UTF-8
```
Run a simple command like `version` to see if works:
```shell
$ python arduino-cli.py version
.
0.16.0
version
c977a2382c2e7770b3eedc43e6a9d41f4a6c3483
Commit
alpha
Status
```