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.

devilz

Members
  • Benutzer seit

  • Letzter Besuch

  1. Hallo zusammen, ich versuche grade die Wetterstation mit dem OutdoorWeather Modul zu erweitern. Leider bekomme ich die Werte aus der cb_station_data/cb_sensor_data Callback nicht in die Button_Callbackfunktion. def cb_station_data(self, identifier, temperature, humidity, battery_low): print("Identifier (Station): " + str(identifier)) print("Temperature (Station): " + str(temperature/10.0) + " °C") print("Humidity (Station): " + str(humidity) + " %RH") print("Battery Low (Station): " + str(battery_low)) print("") def cb_sensor_data(self, identifier, temperature, humidity): print("Identifier (Sensor): " + str(identifier)) print("Temperature (Sensor): " + str(temperature/10.0) + " °C") print("Humidity (Sensor): " + str(humidity) + " %RH") print("") def cb_button_pressed(self, button): lt = localtime() date = (strftime(" %d %b %Y %H:%M", lt)) if button == 2: if self.lcd.is_backlight_on(): self.lcd.backlight_off() else: self.lcd.backlight_on() if button == 3: self.lcd.write_line(0, 0, date) self.lcd.write_line(1, 0, " *** Sensor1 ***") self.lcd.write_line(2, 0, "Temperatur: ...") self.lcd.write_line(3, 0, "Feuchtigkeit ...") Gibt es hier eine Möglichkeit die Werte aus den beiden Callbacks oben in die Button Callbackfunktion zu übernehmen? Wie kann ich die Sensorwerte gezielt in eine Variable speichern? Danke für jeden Tipp

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.