<reponame>bernie-skipole/acremscope
# stores indi data to redis


from indi_mr import mqtt_server, redis_server

from indi_mr import mqtttoredis
# from indi_mr import driverstoredis

# define the hosts/ports where servers are listenning, these functions return named tuples.

mqtt_host = mqtt_server(host='10.105.192.1', port=1883)
redis_host = redis_server(host='localhost', port=6379)

# blocking call which runs the service, communicating between the drivers and redis
# driverstoredis(["indi_simulator_telescope", "indi_simulator_ccd"], redis_host, blob_folder='/home/bernard/www/astrodata/served')

# blocking call which runs the service, communicating between mqtt and redis
mqtttoredis('indi_acremscope', mqtt_host, redis_host, blob_folder='/home/bernard/www/astrodata/served')


# stores indi data to redis


from indi_mr import mqtt_server, redis_server

from indi_mr import mqtttoredis
# from indi_mr import driverstoredis

# define the hosts/ports where servers are listenning, these functions return named tuples.

mqtt_host = mqtt_server(host='10.105.192.1', port=1883)
redis_host = redis_server(host='localhost', port=6379)

# blocking call which runs the service, communicating between the drivers and redis
# driverstoredis(["indi_simulator_telescope", "indi_simulator_ccd"], redis_host, blob_folder='/home/bernard/www/astrodata/served')

# blocking call which runs the service, communicating between mqtt and redis
mqtttoredis('indi_acremscope', mqtt_host, redis_host, blob_folder='/home/bernard/www/astrodata/served')
# stores indi data to redis # from indi_mr import driverstoredis # define the hosts/ports where servers are listenning, these functions return named tuples. # blocking call which runs the service, communicating between the drivers and redis # driverstoredis(["indi_simulator_telescope", "indi_simulator_ccd"], redis_host, blob_folder='/home/bernard/www/astrodata/served') # blocking call which runs the service, communicating between mqtt and redis