First Omega2+ project ( Hello World -blinking LED )

Refer below link for the complete tutorial ,

http://www.cnx-software.com/2017/01/16/getting-started-with-onion-omega2-lede-wifi-iot-board-and-expansion-dock/

img_1119

Script File

==========

  1. Make sure Omega2+ firmware is updated.
  2. chmod +x  scriptfile.sh

#!/bin/ash

## Simple script to blink a LED on the Onion Omega using gpioctl

## the variable that will hold the pin number, where the LED lamp is connected

LED_PIN=1

## declare the LED_PIN as output

gpioctl dirout-low $LED_PIN

while true

do

## set LED_PIN to HIGH (turn LED on)

gpioctl dirout-high $LED_PIN

## sleep for 1 second (equivalent to Arduino’s delay(1000)

sleep 1

## set LED_PIN to LOW (turn LED off)

gpioctl dirout-low $LED_PIN

## sleep for 1 second (equivalent to Arduino’s delay(1000)

sleep 1

done

Posted in Uncategorized | Leave a comment

Integrate Angular 2 Front End with Spring-boot

Click here to view

Posted in AngularJS, Spring-Boot | Leave a comment

Pointing a domain to the Heroku app with Namecheap

Click this link to view

Posted in Uncategorized | Leave a comment

Customising Bootstrap Gutter

Simple way to customise gutters.

http://arnique.net/web-design/58/a-quick-guide-to-changing-bootstraps-gutter-width/

 

Posted in Uncategorized | Leave a comment

Fix git error “Modified Content, Untracked Content”

In three steps,

  1. You may have .git folder inside the untracked content folder. Remove it.
  2. git rm -rf –cached  /untracked_directory
  3. git add . , git commit -m “Message” and so on..
Posted in Uncategorized | Leave a comment

How to create a web switch -tutorial on Hobbyist

This is a very good tutorial on how to create a web switch.

http://www.hobbyist.co.nz/?q=web-switch

All parts can be ordered from  the same site.  The tutorial is almost correct apart from that new relays blink with RED ( not GREEN )

IMG_0467.JPG

 

Posted in Uncategorized | 1 Comment

FreeDNS

https://freedns.afraid.org/

Even if you dont have a static IP this will help you to map.

Posted in Uncategorized | Leave a comment