hpsaturn / m5coreink-ntp-clock

M5Stick CoreInk NTP clock example
GNU General Public License v3.0
9 stars 5 forks source link

WiFi credentials #3

Open spirit89 opened 2 months ago

spirit89 commented 2 months ago

Ok it builds and installs fine, but can you please explain where I paste or enter my WiFi credentials? Thanks Dave

hpsaturn commented 2 months ago

is easy, you only first should be export your credentials like environment variables, like is described in the README. In Linux for example:

export PIO_WIFI_SSID='your_wifi_name'
export PIO_WIFI_PASSWORD='your_wifi_passw'

then restart build and upload from the same shell or command line.

In Windows, I don't know, I have more than 25 years that I left it, but I found this

spirit89 commented 2 months ago

Ok thanks I'll do some more reading. Yes I have windows 10.

hpsaturn commented 2 months ago

Also I forget to say, that after export the variables on your system, you are able to launch also VSCode. It's very practical. Please don't forget close the issue if you can do it.

On the other hand I have other basic project that not need these exports, it uses a command line interface from the serial console to configure the clock:

https://github.com/hpsaturn/esp32-s3-clock?tab=readme-ov-file#readme

maybe it can help.