Skip to content

Instantly share code, notes, and snippets.

@AgustinPelaez
Last active November 12, 2015 18:31
Show Gist options
  • Save AgustinPelaez/348270e362730193ac4a to your computer and use it in GitHub Desktop.
Save AgustinPelaez/348270e362730193ac4a to your computer and use it in GitHub Desktop.
A config file to store some parameters of a program that measures Internet latency in an Openwrt router and sends this value to the Ubidots cloud.
local conf = {
variables = {
['52d481d9f91b284cd22af757'] = '8.8.8.8',
}, -- Add one variable id per each site to check the ping
token = '9xtbvHL8hFKxfkmlXUW3qNoUpOEZAtp0qkkwPqffbn6DiR3ElRJ4B5m1hZMs', --Replace with your own token
host = 'things.ubidots.com', -- Host to establish connection
port = '80', -- Port where service is listening
}
return conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment