Spivey
Published © MIT

Publish Any Event to Wia Using Your Raspberry Pi Zero W

How to setup a Raspberry Pi Zero W and publish an event to Wia!

BeginnerProtip1 hour803
Publish Any Event to Wia Using Your Raspberry Pi Zero W

Things used in this project

Hardware components

Raspberry Pi Zero W
×1
MicroSD Card
×1
SD Card Adapter
×1
Micro-USB to USB Cable (Generic)
Micro-USB to USB Cable (Generic)
×1
Ethernet Cable
×1
Computer with SD Slot (or an appropriate SD card adapter)
×1

Software apps and online services

Wia
Wia

Story

Read more

Code

text

Plain text
country=IE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
  scan_ssid=1
  ssid="Your-SSID"
  psk="Your-PSK"
  key_mgmt=WPA-PSK
}

python

Python
from wia import Wia

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

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

Credits

Spivey

Spivey

82 projects • 59 followers
Tourist in a Tutu || US Born || Melbourne/Mexico/California Raised || New Yorker at ❤️ || SF to Dublin to be COO of Wia the best IoT startup
Thanks to Alan Donoghue.

Comments