v.0.6.3 imports organized
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
from .neopixel_64x64 import NeoPixel_64x64
|
||||||
|
|
||||||
|
__all__ = ["NeoPixel_64x64"]
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
from app.display.neopixel_64x64 import NeoPixel_64x64
|
from app.display import NeoPixel_64x64
|
||||||
from app.display.emoji import emoji_8x8, emoji_16x16
|
from app.display.emoji import emoji_8x8, emoji_16x16
|
||||||
import app.utils.colors as colors
|
from app.utils import colors
|
||||||
|
|
||||||
class Emoji_Checker():
|
class Emoji_Checker():
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from app.display.neopixel_64x64 import NeoPixel_64x64
|
from app.display import NeoPixel_64x64
|
||||||
from app.utils import align_font, colors
|
from app.utils import align_font, colors
|
||||||
import app.display.fonts as fonts
|
import app.display.fonts as fonts
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,8 @@ import urequests # type: ignore
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
from app.classes import Weather, Location, CurrentCondition
|
from app.classes import Weather, Location, CurrentCondition
|
||||||
from app.display.neopixel_64x64 import NeoPixel_64x64
|
from app.display import NeoPixel_64x64
|
||||||
import app.utils.colors as colors
|
import app.utils.colors as colors
|
||||||
import app.display.fonts as fonts
|
|
||||||
from app.utils import URLEncoder
|
from app.utils import URLEncoder
|
||||||
|
|
||||||
|
|
||||||
@@ -15,7 +14,6 @@ class Weather_Checker():
|
|||||||
|
|
||||||
def __init__(self, display: NeoPixel_64x64):
|
def __init__(self, display: NeoPixel_64x64):
|
||||||
self.display = display
|
self.display = display
|
||||||
self.display.set_font( font=fonts.font_16x16)
|
|
||||||
|
|
||||||
def mock_weather_data(self):
|
def mock_weather_data(self):
|
||||||
filepath = 'restapi/mock-weather.json'
|
filepath = 'restapi/mock-weather.json'
|
||||||
|
|||||||
3
app/web/__init__.py
Normal file
3
app/web/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from .wlan import Wlan
|
||||||
|
|
||||||
|
__all__=["Wlan"]
|
||||||
13
main.py
13
main.py
@@ -1,7 +1,8 @@
|
|||||||
from app.display.neopixel_64x64 import NeoPixel_64x64
|
from app.display import NeoPixel_64x64
|
||||||
|
from app.display.fonts import font_5x7
|
||||||
from app.tryout import Font_Checker, Weather_Checker, Emoji_Checker
|
from app.tryout import Font_Checker, Weather_Checker, Emoji_Checker
|
||||||
from app.utils import show_system_load
|
from app.utils import show_system_load
|
||||||
from app.web.wlan import Wlan
|
from app.web import Wlan
|
||||||
|
|
||||||
# Programm Startpunkt
|
# Programm Startpunkt
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -12,12 +13,12 @@ if __name__ == '__main__':
|
|||||||
# font_checker : Font_Checker = Font_Checker( display)
|
# font_checker : Font_Checker = Font_Checker( display)
|
||||||
# font_checker.fonts_check(pretty=False)
|
# font_checker.fonts_check(pretty=False)
|
||||||
|
|
||||||
# tryout.emojis_check(display)
|
|
||||||
# emoji_checker : Emoji_Checker = Emoji_Checker(display)
|
# emoji_checker : Emoji_Checker = Emoji_Checker(display)
|
||||||
# emoji_checker.check()
|
# emoji_checker.check()
|
||||||
|
|
||||||
# tryout.weather_check(display, test_mode=False)
|
# tryout.weather_check(display, test_mode=False)
|
||||||
|
display.set_font(font_5x7)
|
||||||
weather_checker: Weather_Checker = Weather_Checker( display=display)
|
weather_checker: Weather_Checker = Weather_Checker( display=display)
|
||||||
weather_checker.check(city="esbjerg", lang="de", test_mode=False)
|
weather_checker.check(city="ahrensburg", lang="de", test_mode=False)
|
||||||
|
|
||||||
# show_system_load()
|
# show_system_load()
|
||||||
|
|||||||
Reference in New Issue
Block a user