Andrew BerrySpiveyJack Duff
Published

How to Make Custom Wia Notification

In this tutorial we will be going over how to make custom notifications to be sent to your devices using the Wia Cloud.

BeginnerFull instructions provided6 minutes554
How to Make Custom Wia Notification

Things used in this project

Software apps and online services

Wia
Wia

Story

Read more

Code

Run Function Code

JavaScript
This is the code for the run function that checks what day of the week it is and either stops the flow or continues based on that check.
var d = new Date();
var sunday = 0;
var monday = 1;
var tuesday = 2;
var wednesday = 3;
var thursday = 4;
var friday = 5;
var saturday = 6;
if (d.getDay() == friday)
{  
    output.process = true;
}
else
{  
    output.process = false;
}

Credits

Andrew Berry

Andrew Berry

25 projects • 11 followers
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
Jack Duff

Jack Duff

32 projects • 8 followers
Man of the people. Champion of the downtrodden. Marketing magic @ Wia. Becoming a maker by learning, building, and exploring

Comments