latest client

master
Cole Deck 2 years ago
parent e80702261c
commit 28bc5835c2

@ -38,7 +38,12 @@ async def test_coro():
if __name__ == '__main__': if __name__ == '__main__':
formatter = "[%(asctime)s] %(name)s {%(filename)s:%(lineno)d} %(levelname)s - %(message)s" formatter = "[%(asctime)s] %(name)s {%(filename)s:%(lineno)d} %(levelname)s - %(message)s"
logging.basicConfig(level=logging.INFO, format=formatter) 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 x = 0
while x < 5: while x < 5:
asyncio.get_event_loop().run_until_complete(test_coro()) asyncio.get_event_loop().run_until_complete(test_coro())
x = x + 1 x = x + 1

@ -8,9 +8,8 @@
; Please visit documentation for the other options and examples ; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env:pico] [env:esp32]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git platform = espressif32
board = rpipicow board = esp32doit-devkit-v1
framework = arduino framework = arduino
upload_port = /run/media/amelia/RPI-RP2/ lib_deps = knolleary/PubSubClient@^2.8
board_build.core = earlephilhower

@ -89,5 +89,5 @@ if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(uptime_coro()) asyncio.get_event_loop().run_until_complete(uptime_coro())
asyncio.get_event_loop().run_forever() asyncio.get_event_loop().run_forever()
publishData(1, "0", sensortypes[0], time.time_ns()) #publishData(1, "0", sensortypes[0], time.time_ns())

@ -1,3 +1,4 @@
pywaggle[all] pywaggle[all]
amqtt==0.11.0b1 amqtt==0.11.0b1
pyyaml pyyaml
alive-progress

@ -8,3 +8,4 @@ sensors:
- "2" - "2"
pi1: pi1:
- "humidity" - "humidity"
- "camera"
Loading…
Cancel
Save