Skip to content
Snippets Groups Projects
Commit 805748ab authored by Kevin Whitaker's avatar Kevin Whitaker
Browse files

set nextcloud url in secrets

parent 6fa8c885
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ sd_spi = machine.SPI(0, sck=machine.Pin(18, machine.Pin.OUT), mosi=machine.Pin(1 ...@@ -16,7 +16,7 @@ sd_spi = machine.SPI(0, sck=machine.Pin(18, machine.Pin.OUT), mosi=machine.Pin(1
sd = sdcard.SDCard(sd_spi, machine.Pin(22)) sd = sdcard.SDCard(sd_spi, machine.Pin(22))
uos.mount(sd, "/sd") uos.mount(sd, "/sd")
from secrets import WIFI_SSID, WIFI_PASSWORD, NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD from secrets import WIFI_SSID, WIFI_PASSWORD, NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD, NEXTCLOUD_URL
try: try:
ih.network_connect_better(WIFI_SSID, WIFI_PASSWORD) ih.network_connect_better(WIFI_SSID, WIFI_PASSWORD)
except RuntimeError as e: except RuntimeError as e:
...@@ -27,7 +27,7 @@ except RuntimeError as e: ...@@ -27,7 +27,7 @@ except RuntimeError as e:
machine.soft_reset() machine.soft_reset()
try: try:
nc = uNextcloud.uNextcloud("https://cloud.eyecreate.org") nc = uNextcloud.uNextcloud(NEXTCLOUD_URL)
nc.set_auth(NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD) nc.set_auth(NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD)
response = nc.get_folder_items("eink-frame") response = nc.get_folder_items("eink-frame")
except OSError as e: except OSError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment