Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hi,

hab mich mal an die API für den WEM getraut.

Das folgende Kommando: curl -H "Content-Type: application/json" -X PUT -d "{\"default_mode\":0}" 192.168.5.90/power_manager/config
liefert nur das  hier zurück:
JSON object is missing key 'phase_switching_mode'
JSON object is missing key 'excess_charging_enable'
JSON object is missing key 'meter_slot_grid_power'
JSON object is missing key 'target_power_from_grid'
JSON object is missing key 'guaranteed_power'
JSON object is missing key 'cloud_filter_mode'

Was stimmt an meinem curl-Kommando nicht?

Geschrieben

Das Problem ist, dass du nur default_mode setzt und alles andere fehlt. Wenn du Einstellungen über die API änderst, müssen immer alle Einträge einer Config vorhanden sein. Wenn du dir die anderen Einträge nicht von Hand zusammenbauen willst, kannst du dir die aktuellen Einstellungen ansehen, wenn du einfach die URL, die du ändern willst, runterlädst oder im Browser ansiehst (gegebenenfalls auf Raw/Rohansicht umstellen).

http://192.168.5.90/power_manager/config sieht z. B. so aus:

{"phase_switching_mode":3,"excess_charging_enable":false,"default_mode":0,"meter_slot_grid_power":0,"target_power_from_grid":0,"guaranteed_power":1380,"cloud_filter_mode":1}

Kopiere das einfach komplett und ändere die Werte, die du ändern möchtest. Alles andere lässt du unverändert. Wenn du Linux nutzt, kannst du übrigens auch einfache Anführungszeichen (') darum setzen, dann brauchst du nicht alle doppelten Anführungszeichen (") innen drin escapen. Unter Windows kannst du es in Notepad kopieren und alle " durch \" ersetzen lassen.

Geschrieben
  • Autor

Prima. Danke dir.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.