Spivey
Published © MIT

Publish Any Event to Wia Using Your Raspberry Pi 3 Model B

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

BeginnerFull instructions provided1 hour433
Publish Any Event to Wia Using Your Raspberry Pi 3 Model B

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×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

Schematics

Raspberry Pi 3 Model B

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 • 49 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

Comments