Skip to content
Snippets Groups Projects
Commit 6575c4ec authored by Robert Goldmann's avatar Robert Goldmann
Browse files

updated README

parent 96e3598b
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ from typing import Dict ...@@ -131,7 +131,7 @@ from typing import Dict
from flask import Blueprint from flask import Blueprint
from logic.tile.Tile import Tile from dashboard_leaf.logic.tile.Tile import Tile
class MyCustomClockTile(Tile): class MyCustomClockTile(Tile):
EXAMPLE_SETTINGS = {} EXAMPLE_SETTINGS = {}
...@@ -257,7 +257,7 @@ class MyWeatherService(MultiCacheKeyService): ...@@ -257,7 +257,7 @@ class MyWeatherService(MultiCacheKeyService):
The services inside the `services` folder will be automatically scanned and recognized upon server start. There is no need to perform a special registration. The services inside the `services` folder will be automatically scanned and recognized upon server start. There is no need to perform a special registration.
To use your service inside a tile use the following lines: To use your service inside a tile use the following lines:
```python ```python
from logic.service.ServiceManager import ServiceManager from dashboard_leaf.logic.service.ServiceManager import ServiceManager
weatherService = ServiceManager.get_instance().get_service_by_type_name('MyWeatherService') weatherService = ServiceManager.get_instance().get_service_by_type_name('MyWeatherService')
cacheKey = f'{pageName}_{self._uniqueName}' cacheKey = f'{pageName}_{self._uniqueName}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment