This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"logging": { | |
"console": { | |
"enabled": true, | |
"log_level": "info", | |
"log_keys": ["HTTP"] | |
} | |
}, | |
"databases": { | |
"db": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jimbolimbo3 on github. | |
* I am jimbolimbo4 (https://keybase.io/jimbolimbo4) on keybase. | |
* I have a public key ASBGabEJ8cz3aso9zM1xpX0-8BVHrFu5X4lHh_4MLSIWtgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"databases": { | |
"db": { | |
"server": "http://95.110.229.145:8091", | |
"bucket": "SLP", | |
"username": "SLP", | |
"password": "Rubisco1", | |
"enable_shared_bucket_access": true, | |
"import_docs": true, | |
"num_index_replicas": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-10-17T20:20:01.078Z","extensionVersion":"v2.8.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
status=0 | |
pin=4 | |
gpio.mode(pin,gpio.OUTPUT) | |
--gpio.write(pin,gpio.HIGH) --useless | |
--create a webserver | |
srv=net.createServer(net.TCP) | |
srv:listen(80,function(conn) | |
conn:on("receive", function(client,request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('ds18b20') | |
dht=require("dht") | |
tmr.alarm(1, 5000, 1, function() | |
status,temp,humi,temp_decimial,humi_decimial = dht.read(2) | |
if( status == dht.OK ) then | |
--temperature = temp.."."..(temp_decimial) --/100 | |
--humidity = humi.."."..(humi_decimial) --/100 | |
--print("Temperature: "..temperature.." deg C") | |
--print("Humidity: "..humidity.."%") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSS = 1 -- oversampling setting (0-3) | |
SDA_PIN = 2 -- sda pin, GPIO2/D2 | |
SCL_PIN = 3 -- scl pin, GPIO0/D3 | |
-- | |
--wifi.setmode(wifi.STATION) | |
--wifi.sta.config(WIFISSID,password) | |
wifi.sta.connect() | |
tmr.alarm(1, 5000, 1, function() | |
if wifi.sta.getip()== nil then |