Spivey
Published © MIT

Publish an Event to Wia Using 4 Lines of Code

How to setup a Raspberry Pi 3 Model B+ and publish an event to Wia.

BeginnerFull instructions provided1 hour717
Publish an Event to Wia Using 4 Lines of Code

Things used in this project

Hardware components

Raspberry Pi 3 Model B+
Raspberry Pi 3 Model B+
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
Ethernet Cable
×1
microSD Card
×1
Computer with an SD slot
×1

Software apps and online services

Wia
Wia

Story

Read more

Code

Publish an Event to Wia

Python
from wia import Wia

wia = Wia()
wia.access_token = "your-access-token"

wia.Event.publish(name="temperature", data=21.5)

Credits

Iain Andrew

Posted by Spivey

Comments