Skip to content

Despite code to support settings.toml it fail for me #99

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

Closed
dglaude opened this issue Nov 19, 2023 · 2 comments
Closed

Despite code to support settings.toml it fail for me #99

dglaude opened this issue Nov 19, 2023 · 2 comments

Comments

@dglaude
Copy link

dglaude commented Nov 19, 2023

I encountered a few MagTag and MatrixPortal projects that failed on me except if I create the proper secrets.py. And this even if I create a file settings.toml.

Initially I believed those library were not updated, but I found code here to support both the old and the new way is define in the code, but despite that I fail to make it work and I always get secrets.py related message.

Could someone have a look?

I know my settings.toml is OK because using the todbot trick below, I have the expected result: my IP addr: 192.168.192.153

https://github.com/todbot/circuitpython-tricks#what-the-heck-is-settingstoml

import os, wifi
print("connecting...")
wifi.radio.connect(ssid=os.getenv('CIRCUITPY_WIFI_SSID'),
                   password=os.getenv('CIRCUITPY_WIFI_PASSWORD'))
print("my IP addr:", wifi.radio.ipv4_address)
@dglaude
Copy link
Author

dglaude commented Nov 19, 2023

Update... with 9.0.0-a-5 it works with only the file settings.toml without any secrets.py. (it also works with only secrets.py.

So the problem would only be with the 8.x family. Still os.getenv("") seems to work in 8.x, so I do not really understand what is going on.

@makermelissa
Copy link
Collaborator

makermelissa commented Nov 27, 2023

I think the frozen libraries in the 8.2.x branch have not been updated in a long time. You could always put the library folder in the root folder to override the frozen lib, but this would likely cause the MatrixPortal M4 to run out of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants