Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation: how to add 3rd party core urls #42

Closed
embhobbb opened this issue Sep 15, 2018 · 10 comments
Closed

Add documentation: how to add 3rd party core urls #42

embhobbb opened this issue Sep 15, 2018 · 10 comments
Labels
topic: documentation Related to documentation for the project

Comments

@embhobbb
Copy link

embhobbb commented Sep 15, 2018

Hi,
i have installed CLI interface and able to install the core package for AVR. But i am using ESP8266 core.
I searched for the core but didn't find.
[code]./arduino-cli-0.2.1-alpha.preview-linuxarm core search esp8266
Searching for platforms matching 'esp8266'

No platforms matching your search[\code]

@brusherru
Copy link

@embhobbb just add a link to the additional package index in .cli-config.yml like this:

board_manager:
  additional_urls:
    - http://arduino.esp8266.com/stable/package_esp8266com_index.json

And then run:

arduino-cli core update-index
arduino-cli core install esp8266:esp8266

Now you're able to build and upload sketches to esp8266 🙌

@cmaglie cmaglie added the topic: documentation Related to documentation for the project label Sep 20, 2018
@embhobbb
Copy link
Author

thanks.
i got error while downloading package for esp8266.

./arduino-cli core install esp8266:esp8266
Downloading esp8266:[email protected]...
esp8266:[email protected] downloaded
Error: server returned a non-2XX status code
Error downloading esp8266:[email protected]

@ljcucc
Copy link

ljcucc commented Sep 24, 2018

Same problem in #43

@cmaglie cmaglie added the conclusion: duplicate Has already been submitted label Sep 24, 2018
@cmaglie cmaglie closed this as completed Sep 24, 2018
@cmaglie
Copy link
Member

cmaglie commented Sep 24, 2018

Duplicate of #43

@cmaglie cmaglie marked this as a duplicate of #43 Sep 24, 2018
@brusherru
Copy link

@cmaglie @ljcucc , it's not the same problem in the topic.
The topic is about adding some instruction about additional_urls into README.md.

But then author said about another problem, that is reported in #43. ;)
So I propose to reopen this issue and then just add some documentation.

@cmaglie cmaglie reopened this Sep 26, 2018
@cmaglie cmaglie removed the conclusion: duplicate Has already been submitted label Sep 26, 2018
@cmaglie cmaglie changed the title Do we have support for ESP8266 Add documentation: how to add 3rd party core urls Sep 26, 2018
@sashad
Copy link

sashad commented Nov 27, 2018

ls ./.arduino15/
package_esp8266com_index.json package_index.json
but
arduino-cli core install esp8266:esp8266
Error: package esp8266 not found
Could not determine platform dependencies

@zoobab
Copy link

zoobab commented Jan 25, 2019

@brusherru it is not clear where this file ".cli-config.yml" needs to be located. In ~/.cli-config.yml ? In the current directory? I have added it in ~/.cli-config.yml , but it does not find the esp8266 repo, so I guess it is the wrong location...

@zoobab
Copy link

zoobab commented Jan 25, 2019

After some debugging, where I copied the arduino-cli binary in /usr/local/bin/, it looks for the ".cli-config.yml" in this directory, so I copied it there, and now it works, weird:

$ arduino-cli core update-index --debug
INFO[0000] Initiating configuration
INFO[0000] Unserializing configurations from /usr/local/bin/.cli-config.yml
WARN[0000] Error reading config, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"
WARN[0000] Did not manage to get config file, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"

@per1234
Copy link
Contributor

per1234 commented May 24, 2019

Closing as fixed by 3dcd1ca

@per1234 per1234 closed this as completed May 24, 2019
per1234 pushed a commit that referenced this issue Nov 16, 2020
Separating definition/implementation in .h/.cpp files + Bugfix: Prevent socket from keeping open by stopping UDP
per1234 added a commit that referenced this issue Aug 9, 2021
…e-check

Add check for library.properties paragraph repeating sentence
@adi-g15
Copy link

adi-g15 commented Nov 30, 2022

After some debugging, where I copied the arduino-cli binary in /usr/local/bin/, it looks for the ".cli-config.yml" in this directory, so I copied it there, and now it works, weird:

$ arduino-cli core update-index --debug
INFO[0000] Initiating configuration
INFO[0000] Unserializing configurations from /usr/local/bin/.cli-config.yml
WARN[0000] Error reading config, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"
WARN[0000] Did not manage to get config file, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"

To add to this, if you don't want to put a config file in root (like if you are on NixOS), you can use the --config-file flag to specify the path to .cli-config.yml.

@arduino arduino locked as resolved and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: documentation Related to documentation for the project
Projects
None yet
Development

No branches or pull requests

8 participants