Compare commits
No commits in common. "28bc5835c2720d5de8c6e4754e0dfbfe2458c150" and "4d1654076645adb08abe39e84b1adf0f231e403d" have entirely different histories.
28bc5835c2
...
4d16540766
@ -38,12 +38,7 @@ 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
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
client:
|
|
||||||
name: "pi1"
|
|
||||||
sensors:
|
|
||||||
camera:
|
|
||||||
path: /dev/v4l/by-id/
|
|
@ -8,8 +8,9 @@
|
|||||||
; 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:esp32]
|
[env:pico]
|
||||||
platform = espressif32
|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
|
||||||
board = esp32doit-devkit-v1
|
board = rpipicow
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps = knolleary/PubSubClient@^2.8
|
upload_port = /run/media/amelia/RPI-RP2/
|
||||||
|
board_build.core = earlephilhower
|
2
main.py
2
main.py
@ -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,4 +1,3 @@
|
|||||||
pywaggle[all]
|
pywaggle[all]
|
||||||
amqtt==0.11.0b1
|
amqtt==0.11.0b1
|
||||||
pyyaml
|
pyyaml
|
||||||
alive-progress
|
|
@ -8,4 +8,3 @@ sensors:
|
|||||||
- "2"
|
- "2"
|
||||||
pi1:
|
pi1:
|
||||||
- "humidity"
|
- "humidity"
|
||||||
- "camera"
|
|
Loading…
x
Reference in New Issue
Block a user