Пример #1
0
#!/usr/bin/env python3
"""
Polyglot v3 node server for WeatherFlow Weather Station data.
Copyright (c) 2018,2019,2021 Robert Paauwe
"""
import udi_interface
import sys
import time
import datetime
import threading
from nodes import weatherflow

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface([weatherflow.Controller])
        polyglot.start()
        control = weatherflow.Controller(polyglot, 'controller', 'controller', 'WeatherFlow')
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)
Пример #2
0
#!/usr/bin/env python3
"""
Polyglot v3 save/restore node server.
Copyright (C) 2020,2021 Robert Paauwe
"""
import sys
import time
import udi_interface
from nodes import backup

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface([backup.Controller,])
        polyglot.start()
        control = backup.Controller(polyglot, 'controller', 'controller', 'Save_Restore')
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)
        

Пример #3
0
#!/usr/bin/env python3
"""
Polyglot v3 node server AERIS weather data
Copyright (C) 2019,2020,2021 Robert Paauwe
"""

import udi_interface
import sys
import time
from nodes import aeris
from nodes import aeris_daily

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface(
            [aeris.Controller, aeris_daily.DailyNode])
        polyglot.start()
        control = aeris.Controller(polyglot, 'controller', 'controller',
                                   'AERIS Weather')
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)
Пример #4
0
#!/usr/bin/env python3
"""
Polyglot v3 node server NOAA weather data
Copyright (C) 2020,2021 Robert Paauwe
"""

import udi_interface
import sys
import time
from nodes import noaa

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface([noaa.Controller])
        polyglot.start('2.0.2')
        noaa.Controller(polyglot, 'controller', 'controller', 'NOAA Weather')
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)
        

Пример #5
0
#!/usr/bin/env python3
"""
Polyglot v3 node server Purple Air data
Copyright (C) 2020,2021 Robert Paauwe
"""

import udi_interface
import sys
import time
from nodes import purpleair

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface([purpleair.Controller])
        polyglot.start()
        control = purpleair.Controller(polyglot, "controller", "controller",
                                       "Purple Air AQI")
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)
Пример #6
0
#!/usr/bin/env python3
"""
Polyglot v3 node server Volumio Media Server control.
Copyright (C) 2021 Robert Paauwe
"""
import udi_interface
import sys
from nodes import controller

LOGGER = udi_interface.LOGGER

if __name__ == "__main__":
    try:
        polyglot = udi_interface.Interface([])
        polyglot.start()
        controller.Controller(polyglot, "controller", "controller", "Volumio")
        polyglot.runForever()
    except (KeyboardInterrupt, SystemExit):
        sys.exit(0)