screen name="MSNWeatherPlugin"

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

  • screen name="MSNWeatherPlugin"

    Hallo,

    zum aktuellen Anlass des neuen Dreambox OS Version: 4.3.0r26-2017-01-10 mit dem neuen default.skin in HD,
    gibt es natürlich nun neue Screenshots und auch einige Änderungen ( und werden evtl. noch einige kommen? ).

    Info: Das Plugin "WeatherPlugin" ist ein externen Plugin, und kann/muss über die Erweiterungen installiert sein.

    Man kann den Screen name="MSNWeatherPlugin" erreichen über:

    - Menü-Taste --> Erweiterungen --> Wetterinformationen

    Den Original-Screen finden man bei Boxen in der /usr/lib/enigma2/python/Plugins/Extensions/WeatherPlugin/plugin.py und sieht dort wie folgt aus:

    XML-Quellcode: plugin.py

    1. class MSNWeatherPlugin(Screen):
    2. skin = """
    3. <screen name="MSNWeatherPlugin" position="center,center" size="720,400" title="Weather Plugin">
    4. <widget render="Label" source="caption" position="10,10" size="700,30" font="Regular;24"/>
    5. <widget render="Label" source="observationtime" position="430,45" size="280,25" font="Regular;16" halign="right" />
    6. <widget render="Label" source="observationpoint" position="110,70" size="600,25" font="Regular;16" halign="right" />
    7. <widget name="currenticon" position="10,115" size="55,45" alphatest="on"/>
    8. <widget render="Label" source="currentTemp" position="90,115" size="100,23" font="Regular;22"/>
    9. <widget render="Label" source="feelsliketemp" position="90,150" size="140,20" font="Regular;14"/>
    10. <widget render="Label" source="condition" position="320,115" size="380,20" font="Regular;18"/>
    11. <widget render="Label" source="wind_condition" position="320,145" size="380,20" font="Regular;18"/>
    12. <widget render="Label" source="humidity" position="320,165" size="380,20" font="Regular;18" valign="bottom"/>
    13. <widget render="Label" source="weekday1" position="35,210" size="105,40" halign="center" valign="center" font="Regular;18"/>
    14. <widget name="weekday1_icon" position="60,265" size="55,45" alphatest="on"/>
    15. <widget render="Label" source="weekday1_temp" position="35,320" size="105,60" halign="center" valign="top" font="Regular;16"/>
    16. <widget render="Label" source="weekday2" position="175,210" size="105,40" halign="center" valign="top" font="Regular;18"/>
    17. <widget name="weekday2_icon" position="200,265" size="55,45" alphatest="on"/>
    18. <widget render="Label" source="weekday2_temp" position="175,320" size="105,60" halign="center" valign="top" font="Regular;16"/>
    19. <widget render="Label" source="weekday3" position="315,210" size="105,40" halign="center" valign="top" font="Regular;18"/>
    20. <widget name="weekday3_icon" position="340,265" size="55,45" alphatest="on"/>
    21. <widget render="Label" source="weekday3_temp" position="315,320" size="105,60" halign="center" valign="top" font="Regular;16"/>
    22. <widget render="Label" source="weekday4" position="455,210" size="105,40" halign="center" valign="top" font="Regular;18"/>
    23. <widget name="weekday4_icon" position="480,265" size="55,45" alphatest="on"/>
    24. <widget render="Label" source="weekday4_temp" position="455,320" size="105,60" halign="center" valign="top" font="Regular;16"/>
    25. <widget render="Label" source="weekday5" position="595,210" size="105,40" halign="center" valign="top" font="Regular;18"/>
    26. <widget name="weekday5_icon" position="620,265" size="55,45" alphatest="on"/>
    27. <widget render="Label" source="weekday5_temp" position="595,320" size="105,60" halign="center" valign="top" font="Regular;16"/>
    28. <widget render="Label" source="statustext" position="0,0" size="720,400" font="Regular;20" halign="center" valign="center" transparent="1"/>
    29. </screen>"""
    Alles anzeigen


    Hier nun mal ein Variante als Default Skin FHD angepasst:

    Quellcode: skin.xml

    1. <!-- MSNWeather / Plugin (plugin-extention) -->
    2. <screen name="MSNWeatherPlugin" position="center,center" size="1280,720" title="Weather Plugin">
    3. <!-- Caption -->
    4. <widget render="Label" source="caption" position="20,10" size="1240,40" font="Regular;34"/>
    5. <!-- Observation / Time & Point -->
    6. <widget render="Label" source="observationtime" position="900,70" size="360,35" font="Regular;32" halign="right" />
    7. <widget render="Label" source="observationpoint" position="360,120" size="900,35" font="Regular;30" halign="right" />
    8. <!-- Current / Icon & Temp -->
    9. <widget name="currenticon" position="20,180" size="140,115" alphatest="on"/>
    10. <widget render="Label" source="currentTemp" position="170,190" size="200,35" font="Regular;30"/>
    11. <!-- Feels Like Temp -->
    12. <widget render="Label" source="feelsliketemp" position="170,235" size="300,30" font="Regular;29"/>
    13. <!--Condition & Wind & Humidity -->
    14. <widget render="Label" source="condition" position="650,190" size="550,30" font="Regular;29"/>
    15. <widget render="Label" source="wind_condition" position="650,235" size="550,30" font="Regular;28" />
    16. <widget render="Label" source="humidity" position="650,270" size="550,30" font="Regular;28" valign="bottom"/>
    17. <!--Weekday 1 Stuff -->
    18. <widget render="Label" source="weekday1" position="35,350" size="165,60" halign="center" valign="center" font="Regular;28"/>
    19. <widget name="weekday1_icon" position="40,420" size="140,115" alphatest="on"/>
    20. <widget render="Label" source="weekday1_temp" position="35,540" size="165,90" halign="center" valign="top" font="Regular;26"/>
    21. <!--Weekday 2 Stuff -->
    22. <widget render="Label" source="weekday2" position="277,350" size="165,60" halign="center" valign="top" font="Regular;28"/>
    23. <widget name="weekday2_icon" position="282,420" size="140,115" alphatest="on"/>
    24. <widget render="Label" source="weekday2_temp" position="277,540" size="165,90" halign="center" valign="top" font="Regular;26"/>
    25. <!--Weekday 3 Stuff -->
    26. <widget render="Label" source="weekday3" position="519,350" size="165,60" halign="center" valign="top" font="Regular;28"/>
    27. <widget name="weekday3_icon" position="524,420" size="140,115" alphatest="on"/>
    28. <widget render="Label" source="weekday3_temp" position="519,540" size="165,90" halign="center" valign="top" font="Regular;26"/>
    29. <!--Weekday 4 Stuff -->
    30. <widget render="Label" source="weekday4" position="761,350" size="165,60" halign="center" valign="top" font="Regular;28"/>
    31. <widget name="weekday4_icon" position="766,420" size="140,115" alphatest="on"/>
    32. <widget render="Label" source="weekday4_temp" position="751,540" size="165,90" halign="center" valign="top" font="Regular;26"/>
    33. <!--Weekday 5 Stuff -->
    34. <widget render="Label" source="weekday5" position="1003,350" size="165,60" halign="center" valign="top" font="Regular;28"/>
    35. <widget name="weekday5_icon" position="1008,420" size="140,115" alphatest="on"/>
    36. <widget render="Label" source="weekday5_temp" position="1003,540" size="165,90" halign="center" valign="top" font="Regular;26"/>
    37. <!-- Status Text -->
    38. <widget render="Label" source="statustext" position="0,0" size="1280,720" font="Regular;34" halign="center" valign="center" transparent="1"/>
    39. </screen>
    Alles anzeigen
    Bilder
    • MSNWeatherPlugin-01.jpg

      157,51 kB, 1.280×720, 29 mal angesehen
    • MSNWeatherPlugin-02.jpg

      235,41 kB, 1.920×1.080, 29 mal angesehen
    MfG EgLe


    OS ="Manjaro Rolling (KDE)" Kernel: Linux 4.9.9-1-MANJARO QT: 5.8.0 KDE-Plasma: 5.9.2 KDE Frameworks: 5.31.0
    Mainboard = Intel Desktop Board DH87RL
    CPU = Intel Core I7-4770 3,40GHz mit 8GB DDR2 800 RAM
    Grafikkarte = on Board