diff --git a/ble-redis.py b/ble-redis.py deleted file mode 100644 index 45de8fe..0000000 --- a/ble-redis.py +++ /dev/null @@ -1,20 +0,0 @@ - -import redis -import json -from config import * - -#################################################### -### Redis Functions -#################################################### -if enable_redis: - r = redis.Redis(host=bind_ip, port=redis_port) - -def update_redis(data): - # push data to redis - # Publish to the Redis channel that the WS server is listening on - r.publish('temp_hum', json.dumps(data)) - if debug_output: - print("=== Stats Redis Update ===") - print(json.dumps(data, indent=2)) - return True - diff --git a/redis.py b/redis.py deleted file mode 100644 index 45de8fe..0000000 --- a/redis.py +++ /dev/null @@ -1,20 +0,0 @@ - -import redis -import json -from config import * - -#################################################### -### Redis Functions -#################################################### -if enable_redis: - r = redis.Redis(host=bind_ip, port=redis_port) - -def update_redis(data): - # push data to redis - # Publish to the Redis channel that the WS server is listening on - r.publish('temp_hum', json.dumps(data)) - if debug_output: - print("=== Stats Redis Update ===") - print(json.dumps(data, indent=2)) - return True -