Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Commit 4cec21a

Browse files
authored
Merge pull request #12 from badgeteam/fix-hatchery-url
Fix hatchery url
2 parents 76635bf + 7b40a96 commit 4cec21a

File tree

4 files changed

+33
-30
lines changed

4 files changed

+33
-30
lines changed

esp32/Makefile

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,40 @@ MICROPY_PY_BTREE = 1
2121

2222
#FROZEN_DIR = scripts
2323

24-
ifdef CONFIG_SHA_BADGE_V1
2524
FROZEN_MPY_DIR = modules_sha2017
26-
endif
25+
#FROZEN_MPY_DIR = modules_disobey2019
2726

28-
ifdef CONFIG_SHA_BADGE_V2
29-
FROZEN_MPY_DIR = modules_sha2017
30-
endif
27+
#ifdef CONFIG_SHA_BADGE_V1
28+
#FROZEN_MPY_DIR = modules_sha2017
29+
#endif
3130

32-
ifdef CONFIG_SHA_BADGE_V3
33-
FROZEN_MPY_DIR = modules_sha2017
34-
endif
31+
#ifdef CONFIG_SHA_BADGE_V2
32+
#FROZEN_MPY_DIR = modules_sha2017
33+
#endif
3534

36-
ifdef CONFIG_SHA_BADGE_V3_LITE
37-
FROZEN_MPY_DIR = modules_sha2017
38-
endif
35+
#ifdef CONFIG_SHA_BADGE_V3
36+
#FROZEN_MPY_DIR = modules_sha2017
37+
#endif
3938

40-
ifdef PROJECT_PATH
41-
FROZEN_MPY_DIR = modules_disobey2019
42-
endif
39+
#ifdef CONFIG_SHA_BADGE_V3_LITE
40+
#FROZEN_MPY_DIR = modules_sha2017
41+
#endif
4342

44-
ifdef CONFIG_HACKERHOTEL_BADGE_V1
45-
FROZEN_MPY_DIR = modules_hackerhotel2019
46-
endif
43+
#ifdef CONFIG_DISOBEY
44+
#FROZEN_MPY_DIR = modules_disobey2019
45+
#endif
4746

48-
ifdef CONFIG_HACKERHOTEL_BADGE_V0
49-
FROZEN_MPY_DIR = modules_hackerhotel2019
50-
endif
47+
#ifdef CONFIG_HACKERHOTEL_BADGE_V1
48+
#FROZEN_MPY_DIR = modules_hackerhotel2019
49+
#endif
5150

52-
ifdef CONFIG_SHA_BADGE_NONE
53-
FROZEN_MPY_DIR = modules_generic
54-
endif
51+
#ifdef CONFIG_HACKERHOTEL_BADGE_V0
52+
#FROZEN_MPY_DIR = modules_hackerhotel2019
53+
#endif
54+
55+
#ifdef CONFIG_SHA_BADGE_NONE
56+
#FROZEN_MPY_DIR = modules_generic
57+
#endif
5558

5659
# include py core make definitions
5760
include ../py/py.mk

esp32/modules_sha2017/installer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def list_apps(slug):
7171
ugfx.flush(ugfx.LUT_FULL)
7272

7373
try:
74-
f = urequests.get("https://badge.sha2017.org/eggs/category/%s/json" % slug, timeout=30)
74+
f = urequests.get("https://badge.team/eggs/category/%s/json" % slug, timeout=30)
7575
try:
7676
packages = f.json()
7777
finally:
@@ -167,7 +167,7 @@ def list_categories():
167167
ugfx.input_init()
168168
draw_msg('Getting categories')
169169
try:
170-
f = urequests.get("https://badge.sha2017.org/eggs/categories/json", timeout=30)
170+
f = urequests.get("https://badge.team/eggs/categories/json", timeout=30)
171171
categories = f.json()
172172
except:
173173
draw_msg('Failed!')
@@ -202,7 +202,7 @@ def list_categories():
202202
ugfx.string_box(148,78,148,18, " A: Open category", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
203203
ugfx.string_box(148,92,148,18, " B: Return to home", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
204204
ugfx.line(148, 110, 296, 110, ugfx.BLACK)
205-
ugfx.string_box(148,110,148,18, " badge.sha2017.org", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
205+
ugfx.string_box(148,110,148,18, " badge.team", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
206206
ugfx.flush(ugfx.LUT_FULL)
207207
gc.collect()
208208

esp32/modules_sha2017/tasks/otacheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def download_info():
1111
easydraw.msg("Checking for updates...")
1212
result = False
1313
try:
14-
data = requests.get("https://badge.sha2017.org/version")
14+
data = requests.get("https://badge.team/version")
1515
except:
1616
easydraw.msg("Error: could not download JSON!")
1717
time.sleep(5)

esp32/modules_sha2017/woezel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,21 @@ def url_open(url):
148148

149149

150150
def get_pkg_metadata(name):
151-
f = url_open("https://badge.sha2017.org/eggs/get/%s/json" % name)
151+
f = url_open("https://badge.team/eggs/get/%s/json" % name)
152152
try:
153153
return json.load(f)
154154
finally:
155155
f.close()
156156

157157
def get_pkg_list():
158-
f = url_open("https://badge.sha2017.org/eggs/list/json")
158+
f = url_open("https://badge.team/eggs/list/json")
159159
try:
160160
return json.load(f)
161161
finally:
162162
f.close()
163163

164164
def search_pkg_list(query):
165-
f = url_open("https://badge.sha2017.org/eggs/search/%s/json" % query)
165+
f = url_open("https://badge.team/eggs/search/%s/json" % query)
166166
try:
167167
return json.load(f)
168168
finally:

0 commit comments

Comments
 (0)