|
31 | 31 | BUTTON_PIN = 16
|
32 | 32 |
|
33 | 33 | settings = Config.read().get("settings")
|
| 34 | +network_settings = Config.read().get("network") |
| 35 | +cloud_settings = Config.read().get("cloud") |
| 36 | + |
34 | 37 | bot = CoderBot.get_instance(settings=settings, motor_trim_factor=float(settings.get('move_motor_trim', 1.0)),
|
35 | 38 | motor_max_power=int(settings.get('motor_max_power', 100)),
|
36 | 39 | motor_min_power=int(settings.get('motor_min_power', 0)),
|
@@ -426,10 +429,10 @@ def cloudRegistrationDelete():
|
426 | 429 | return 200
|
427 | 430 |
|
428 | 431 | def cloudRegistrationStatus():
|
429 |
| - registration = settings.get('cloud_registration', {}) |
| 432 | + registration = cloud_settings.get('registration', {}) |
430 | 433 | return {
|
431 | 434 | "registered": CloudManager.get_instance().registration_status(),
|
432 |
| - "name": registration.get('name', {}), |
| 435 | + "name": registration.get('name', ""), |
433 | 436 | "description": registration.get('description', ""),
|
434 | 437 | "org_id": registration.get('org_id', ""),
|
435 | 438 | "org_name": registration.get('org_name', ""),
|
|
0 commit comments