Skip to content

Instantly share code, notes, and snippets.

View tiagonmas's full-sized avatar
🏠
Working from home

Tiago Andrade e Silva tiagonmas

🏠
Working from home
View GitHub Profile
@tiagonmas
tiagonmas / callParticleFunction
Last active December 13, 2020 14:26
Call a particle.io function (http post with application/x-www-form-urlencoded) in c# / Xamarin
public async Task<ParticleFunctionReturn> CallParticleFunction(ParticleFunction pFunc)
{
ParticleFunctionReturn pfRet = new ParticleFunctionReturn();
try
{
Uri uri = new Uri(string.Format(baseUrl, pFunc.DeviceId, pFunc.FuncName));
Uri pfuri = new Uri(string.Format(baseUrl, pFunc.DeviceId, pFunc.FuncName));
@tiagonmas
tiagonmas / ar-750-use-lan-port-as-2nd-wan.md
Last active December 18, 2020 21:05
GL.iNet AR-750 Use LAN port as 2nd WAN

OpenWrt - GL.iNet AR-750 Use LAN port as 2nd WAN

Moved the documentation to github

@tiagonmas
tiagonmas / ubidots.json
Created March 18, 2016 11:22
Ubidots webhook definition for Particle (For one variable)
{
"event": "ubidots",
"url":
"http://things.ubidots.com/api/v1.6/variables/<VariableID>/values",
"headers": {
"X-Auth-Token": "<YOUR TOKEN>"
},
"requestType": "POST",
"mydevices": true,
"json":
@tiagonmas
tiagonmas / emoncms_webhook.json
Created March 17, 2016 16:33
Emoncms webhook for particle.io
{
"eventName": "emoncms",
"url": "https://emoncms.org/input/post.json",
"requestType": "GET",
"query": {
"apikey": "<YOUR API KEY>",
"json": "{{SPARK_EVENT_NAME}}:{{SPARK_EVENT_VALUE}}"
},
"noDefaults": true,
"mydevices": true