Skip to content

Commit 6315976

Browse files
authored
Move metrics to PHAL plugin (#577)
Co-authored-by: Daniel McKnight <daniel@neon.ai>
1 parent e5eb507 commit 6315976

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

neon_core/skills/service.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,6 @@ def run(self):
156156
self.register_wifi_setup_events()
157157
announce_connection()
158158

159-
def _initialize_metrics_handler(self):
160-
"""
161-
Start bus listener for metrics
162-
"""
163-
def handle_metric(message):
164-
report_metric(message.data.pop("name"), **message.data)
165-
166-
if self.config.get("server", {}).get('metrics'):
167-
LOG.info("Metrics reporting enabled")
168-
self.bus.on("neon.metric", handle_metric)
169-
else:
170-
LOG.info("Metrics reporting disabled")
171-
172159
def _register_intent_services(self):
173160
"""
174161
Start up the all intent services and connect them as needed.

requirements/core_modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ neon_messagebus~=1.1,>=1.1.1a5
33
neon_enclosure~=1.6,>=1.6.1a3
44
neon_speech~=4.2,>=4.2.1a3
55
neon_gui~=1.2,>=1.2.2
6-
neon_audio~=1.4,>=1.4.1a2
6+
neon_audio~=1.4,>=1.4.1a3

requirements/pi.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ neon-tts-plugin-coqui~=0.7,>=0.7.3a4
2828
ovos-stt-plugin-vosk~=0.1,>=0.1.4
2929

3030
# PHAL Plugins
31-
neon-phal-plugin-audio-receiver>=0.0.3
31+
neon-phal-plugin-monitoring>=0.0.1a2
32+
neon-phal-plugin-audio-receiver>=0.0.3,>=0.0.4a1
3233
neon-phal-plugin-reset~=0.4
3334
neon-phal-plugin-core-updater~=1.3
3435
neon-phal-plugin-device-updater~=0.1
@@ -54,7 +55,7 @@ neon-skill-update~=2.1
5455
ovos-skill-homescreen~=0.0.2,>=0.0.3a6
5556
ovos-skill-setup~=0.0.1
5657
ovos-skill-volume~=0.0.1
57-
skill-markII-audio-receiver>=0.0.4
58+
skill-markII-audio-receiver>=0.0.5a1
5859

5960
# Backwards-compat
6061
ovos-skills-manager~=0.0.13 # TODO: Remove in 2024

0 commit comments

Comments
 (0)