Wifi gateway (one per house) | price (usd) | URL | note |
---|---|---|---|
wemos | 5.76 | https://wiki.wemos.cc/products:d1:d1_mini | |
Decent transciever | 5.12 | http://www.dx.com/p/nrf24l01-pa-lna-wireless-module-w-antenna-black-3-0-3-6v-222913 | |
WhareHaurora gateway shield | 5 | https://github.com/WhareHauora/wharehauora-pcb/blob/master/Whare%20Hauora%20Wemos%20r1.zip | print from oshpark |
total | 15.879999999999999 | ||
First sensor (one per room) | price (usd) | URL | note |
SenseBender | 18.21 | https://www.openhardware.io/view/1/Sensebender-Micro |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
Moved to: | |
https://gist.github.com/Br3nda/c52088c728b93ba1ae3055ab5e05e8e5 |
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
//#define MY_DEBUG | |
#define MY_RADIO_NRF24 | |
#define CHILD_ID_HVAC 10 | |
#define CHILD_ID_POWERFUL 0 | |
#include <MySensors.h> | |
#include <PanasonicCKPHeatpumpIR.h> | |
#include <PanasonicHeatpumpIR.h> | |
//Some global variables to hold the states |
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
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
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
You may have received an email because are the holder of a .nz domain | |
name. They are encouraging you to say what you think of their proposal. You | |
could ignore it the email. | |
Your domain name is part of a "conflicted set". This is why DNC sent | |
you an email. | |
For example, all these may be registered to different people: | |
* anyname.co.nz | |
* anyname.net.nz |
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
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
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
adb logcat | grep -i food | |
07-22 09:27:27.051 879 4013 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.myfoodbag.app/.ui.activities.SplashActivity} from uid 10243 on display 0 | |
07-22 09:27:27.199 879 3552 I ActivityManager: Start proc 22300:com.myfoodbag.app/u0a283 for activity com.myfoodbag.app/.ui.activities.SplashActivity | |
07-22 09:27:27.267 22300 22300 W System : ClassLoader referenced unknown path: /data/app/com.myfoodbag.app-1/lib/arm64 | |
07-22 09:27:28.093 879 976 I WindowManager: Screenshot max retries 4 of Token{490880e ActivityRecord{c802e09 u0 com.myfoodbag.app/.ui.activities.SplashActivity t249 f}} appWin=Window{598ae6 u0 Starting com.myfoodbag.app} drawState=4 | |
07-22 09:27:28.118 879 3256 I ActivityManager: START u0 {flg=0x10008000 cmp=com.myfoodbag.app/.ui.activities.MainActivity (has extras)} from uid 10283 on display 0 | |
07-22 09:27:28.817 879 1136 I ActivityManager: Displayed com.myfoodbag.app/.ui.activities.M |
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
From the remote (works) | |
Decimal: 1786416795 (32Bit) Binary: 01101010011110101000111010011011 Tri-State: not applicable PulseLength: 262 microseconds Protocol: 1 | |
Raw data: 8148,744,252,740,264,732,268,244,744,744,256,256,712,2988,20,756,244,740,272,732,256,748,248,288,44,1424,20,264,728,748,252,260,736,740,260,256,740,260,736,260,736,744,252,748,248,744,252,260,740,736,264,248,752,248,748,732,264,732,264,256,736,744,252,744,244, | |
From my arduino (doesn't work) | |
Decimal: 1786416795 (32Bit) Binary: 01101010011110101000111010011011 Tri-State: not applicable PulseLength: 263 microseconds Protocol: 1 | |
Raw data: 8172,296,776,808,272,800,268,284,784,812,260,288,788,800,272,276,792,284,792,804,268,804,264,812,260,812,264,272,796,808,264,276,796,808,264,276,796,280,792,280,792,804,268,800,272,800,272,276,796,804,268,272,796,276,796,808,264,808,264,276,796,808,264,808,264, |
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
== On switch one == | |
Decimal: 1786417050 (32Bit) Binary: 01101010011110101000111110011010 Tri-State: not applicable PulseLength: 263 microseconds Protocol: 1 | |
Raw data: 8152,744,256,744,252,744,252,264,208,1280,48,464,60,1420,72,440,368,1020,332,1744,268,732,264,732,264,248,748,736,256,256,744,736,264,248,752,244,752,248,740,768,12,736,12,740,256,740,256,740,256,748,248,264,736,260,740,740,256,744,252,260,736,740,260,256,736, | |
Decimal: 1786417050 (32Bit) Binary: 01101010011110101000111110011010 Tri-State: not applicable PulseLength: 262 microseconds Protocol: 1 | |
Raw data: 8152,744,260,736,260,736,264,252,744,736,268,244,736,752,244,272,728,264,744,732,264,736,260,736,264,732,264,252,744,736,260,252,748,732,264,252,748,248,748,252,744,736,264,732,264,732,264,740,260,736,260,256,744,252,744,736,260,736,264,252,744,736,264,248,740, | |
Decimal: 1786417050 (32Bit) Binary: 01101010011110101000111110011010 Tri-State: not applicable PulseLength: 263 microseconds Protocol: 1 | |
Raw data: 8164,736,264,736,260,736,264,248,748, |