Weather plugin for Vuo+ 04-12-10 new update by webkurier

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Weather plugin for Vuo+ 04-12-10 new update by webkurier

      plugin.py line 276 to 288
      Normaly the plugin can switch Celsius to Fahrenheit
      If not try to change code in plugin.py or inverse C & F

      Quellcode

      1. elif items.tag == "unit_system":
      2. if getData(items) == "SI":
      3. unit = "C"
      4. else:
      5. unit = "F"
      6. elif childs.tag == "current_conditions":
      7. for items in childs:
      8. if items.tag == "condition":
      9. self['condition'].text = _('Current ') + getData(items)
      10. elif items.tag == "temp_c" and unit == "C":
      11. self['currentTemp'].text = getData(items) + ' °C'
      12. elif items.tag == 'temp_f' and unit == 'F':
      13. self['currentTemp'].text = getData(items) + ' °F'Also there is similar weather plugin that works fine with Celsius
      14. see down Similar Threads
      Alles anzeigen
      Dateien
      Gewinnen ist nicht so wichtig, solange man gewinnt.