You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Move all settings apps to com.micropythonos.settings.*
This commit is contained in:
+3
-3
@@ -3,9 +3,9 @@
|
||||
"publisher": "MicroPythonOS",
|
||||
"short_description": "Configure Wi-Fi hotspot settings.",
|
||||
"long_description": "Configure and toggle the device Wi-Fi hotspot, including SSID, security, and network options.",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.hotspot/icons/com.micropythonos.hotspot_0.1.0_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.hotspot/mpks/com.micropythonos.hotspot_0.1.0.mpk",
|
||||
"fullname": "com.micropythonos.hotspot",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.hotspot/icons/com.micropythonos.settings.hotspot_0.1.0_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.hotspot/mpks/com.micropythonos.settings.hotspot_0.1.0.mpk",
|
||||
"fullname": "com.micropythonos.settings.hotspot",
|
||||
"version": "0.1.0",
|
||||
"category": "networking",
|
||||
"activities": [
|
||||
+3
-3
@@ -8,7 +8,7 @@ class HotspotSettings(Activity):
|
||||
Hotspot configuration app.
|
||||
|
||||
Uses SettingsActivity to render and edit hotspot preferences stored under
|
||||
com.micropythonos.hotspot.
|
||||
com.micropythonos.settings.hotspot.
|
||||
"""
|
||||
|
||||
DEFAULTS = {
|
||||
@@ -24,8 +24,8 @@ class HotspotSettings(Activity):
|
||||
prefs = None
|
||||
|
||||
def onCreate(self):
|
||||
self.prefs = SharedPreferences("com.micropythonos.hotspot", defaults=self.DEFAULTS)
|
||||
self.ui_prefs = SharedPreferences("com.micropythonos.hotspot")
|
||||
self.prefs = SharedPreferences("com.micropythonos.settings.hotspot", defaults=self.DEFAULTS)
|
||||
self.ui_prefs = SharedPreferences("com.micropythonos.settings.hotspot")
|
||||
screen = lv.obj()
|
||||
screen.set_style_border_width(0, lv.PART.MAIN)
|
||||
screen.set_style_pad_all(DisplayMetrics.pct_of_width(3), lv.PART.MAIN)
|
||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
+3
-3
@@ -3,9 +3,9 @@
|
||||
"publisher": "MicroPythonOS",
|
||||
"short_description": "Configure and control the WebServer.",
|
||||
"long_description": "Configure WebServer settings, start or stop the WebREPL web server.",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.webserver/icons/com.micropythonos.webserver_0.1.0_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.webserver/mpks/com.micropythonos.webserver_0.1.0.mpk",
|
||||
"fullname": "com.micropythonos.webserver",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.webserver/icons/com.micropythonos.settings.webserver_0.1.0_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.webserver/mpks/com.micropythonos.settings.webserver_0.1.0.mpk",
|
||||
"fullname": "com.micropythonos.settings.webserver",
|
||||
"version": "0.1.0",
|
||||
"category": "networking",
|
||||
"activities": [
|
||||
+3
-3
@@ -3,9 +3,9 @@
|
||||
"publisher": "MicroPythonOS",
|
||||
"short_description": "WiFi Network Configuration",
|
||||
"long_description": "Scans for wireless networks, shows a list of SSIDs, allows for password entry, and connecting.",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.wifi/icons/com.micropythonos.wifi_0.1.2_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.wifi/mpks/com.micropythonos.wifi_0.1.2.mpk",
|
||||
"fullname": "com.micropythonos.wifi",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.wifi/icons/com.micropythonos.settings.wifi_0.1.2_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.settings.wifi/mpks/com.micropythonos.settings.wifi_0.1.2.mpk",
|
||||
"fullname": "com.micropythonos.settings.wifi",
|
||||
"version": "0.1.2",
|
||||
"category": "networking",
|
||||
"activities": [
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
@@ -9,19 +9,19 @@ from check_imu_calibration import CheckIMUCalibrationActivity
|
||||
class LaunchWiFi(Activity):
|
||||
|
||||
def onCreate(self):
|
||||
AppManager.start_app("com.micropythonos.wifi")
|
||||
AppManager.start_app("com.micropythonos.settings.wifi")
|
||||
|
||||
|
||||
class LaunchHotspot(Activity):
|
||||
|
||||
def onCreate(self):
|
||||
AppManager.start_app("com.micropythonos.hotspot")
|
||||
AppManager.start_app("com.micropythonos.settings.hotspot")
|
||||
|
||||
|
||||
class LaunchWebServer(Activity):
|
||||
|
||||
def onCreate(self):
|
||||
AppManager.start_app("com.micropythonos.webserver")
|
||||
AppManager.start_app("com.micropythonos.settings.webserver")
|
||||
|
||||
|
||||
class Settings(SettingsActivity):
|
||||
|
||||
@@ -273,7 +273,7 @@ def create_drawer():
|
||||
wifi_label.center()
|
||||
def wifi_event(e):
|
||||
close_drawer()
|
||||
AppManager.start_app("com.micropythonos.wifi")
|
||||
AppManager.start_app("com.micropythonos.settings.wifi")
|
||||
wifi_btn.add_event_cb(wifi_event,lv.EVENT.CLICKED,None)
|
||||
settings_btn=lv.button(drawer)
|
||||
settings_btn.set_size(lv.pct(drawer_button_pct),lv.pct(20))
|
||||
|
||||
@@ -5,7 +5,7 @@ from .webrepl_http import accept_handler
|
||||
|
||||
|
||||
class WebServer:
|
||||
PREFS_NAMESPACE = "com.micropythonos.webserver"
|
||||
PREFS_NAMESPACE = "com.micropythonos.settings.webserver"
|
||||
DEFAULTS = {
|
||||
"autostart": "False",
|
||||
"port": "7890",
|
||||
|
||||
Reference in New Issue
Block a user