diff --git a/client.py b/client.py index 74fdf65..5d9ac9b 100644 --- a/client.py +++ b/client.py @@ -38,7 +38,12 @@ async def test_coro(): if __name__ == '__main__': formatter = "[%(asctime)s] %(name)s {%(filename)s:%(lineno)d} %(levelname)s - %(message)s" logging.basicConfig(level=logging.INFO, format=formatter) + with open('client.yaml', 'r') as fileread: + clientconfig = yaml.safe_load(fileread) + subdict(clientconfig, None) + print(sublist) x = 0 + while x < 5: asyncio.get_event_loop().run_until_complete(test_coro()) x = x + 1 diff --git a/client/waggle-mqtt-sensor/platformio.ini b/client/waggle-mqtt-sensor/platformio.ini index 3d1ab0a..3cccd9b 100644 --- a/client/waggle-mqtt-sensor/platformio.ini +++ b/client/waggle-mqtt-sensor/platformio.ini @@ -8,9 +8,8 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:pico] -platform = https://github.com/maxgerhardt/platform-raspberrypi.git -board = rpipicow +[env:esp32] +platform = espressif32 +board = esp32doit-devkit-v1 framework = arduino -upload_port = /run/media/amelia/RPI-RP2/ -board_build.core = earlephilhower \ No newline at end of file +lib_deps = knolleary/PubSubClient@^2.8 diff --git a/main.py b/main.py index 0d3bfbd..29d7256 100644 --- a/main.py +++ b/main.py @@ -89,5 +89,5 @@ if __name__ == "__main__": asyncio.get_event_loop().run_until_complete(uptime_coro()) asyncio.get_event_loop().run_forever() - publishData(1, "0", sensortypes[0], time.time_ns()) + #publishData(1, "0", sensortypes[0], time.time_ns()) diff --git a/requirements.txt b/requirements.txt index f376015..65395c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ pywaggle[all] amqtt==0.11.0b1 -pyyaml \ No newline at end of file +pyyaml +alive-progress \ No newline at end of file diff --git a/subscribe.yaml b/subscribe.yaml index 0d577ca..432edc7 100644 --- a/subscribe.yaml +++ b/subscribe.yaml @@ -7,4 +7,5 @@ sensors: - "1" - "2" pi1: - - "humidity" \ No newline at end of file + - "humidity" + - "camera" \ No newline at end of file