Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New interface #5

Merged
merged 9 commits into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AliceSatellite.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "AliceSatellite",
"icon": "fas fa-satellite",
"version": "1.3.16",
"version": "1.3.17",
"category": "alice",
"author": "ProjectAlice",
"maintainers": [
Expand All @@ -11,7 +11,7 @@
"philipp2310"
],
"desc": "AliceSatellite is the official skill to support Project Alice satellites",
"aliceMinVersion": "1.0.0-b3",
"aliceMinVersion": "1.0.0-b5",
"systemRequirements": [],
"pipRequirements": [],
"conditions": {
Expand All @@ -22,4 +22,4 @@
"it"
]
}
}
}
2 changes: 1 addition & 1 deletion AliceSatellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def onFullMinute(self):
def feedbackSensorIntent(self, session: DialogSession):
data = session.payload.get('data')
if data:
self._sensorReadings[session.siteId] = data
self._sensorReadings[session.sessionId] = data


@MqttHandler('projectalice/devices/disconnection')
Expand Down
129 changes: 0 additions & 129 deletions device/AliceSatellite.py

This file was deleted.

Binary file removed device/img/satellite_online.png
Binary file not shown.
26 changes: 26 additions & 0 deletions devices/AliceSatellite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import sqlite3
from pathlib import Path
from typing import Dict, Union

from core.device.model.Device import Device
from core.device.model.DeviceAbility import DeviceAbility


class AliceSatellite(Device):

@classmethod
def getDeviceTypeDefinition(cls) -> dict:
return {
'deviceTypeName' : 'AliceSatellite',
'perLocationLimit' : 1,
'totalDeviceLimit' : 0,
'allowLocationLinks' : True,
'allowHeartbeatOverride': False,
'heartbeatRate' : 2,
'deviceSettings' : dict(),
'abilities' : [DeviceAbility.PLAY_SOUND, DeviceAbility.CAPTURE_SOUND]
}


def __init__(self, data: Union[sqlite3.Row, Dict]):
super().__init__(data)
Empty file added devices/__init__.py
Empty file.
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions widgets/Satellites.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sqlite3

from core.base.model.Widget import Widget
from core.base.model.WidgetSizes import WidgetSizes
from core.webui.model.Widget import Widget
from core.webui.model.WidgetSizes import WidgetSizes
from core.commons import constants


Expand Down