- Install sdcard with image openhabian using win32 diskimager
- Logon raspberry with openhabian:openhabian using putty
- Set new password with passwd
- Set static ip
- sudo nano /etc/dhcpcd.conf (insert your own ip)
interface eth0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 - Update software
- sudo apt-get update
- sudo apt-get upgrade
- Goto yourip:8080 , and choose standardpackage.
- Start a new
sitemap.config for example default.sitemap in /etc/openhab2/sitemapsEasiest way to open explorer and go to
\openhab-conf sitemap default1 label="Main menu" {
Frame {
Text label="Information" {
Text item=Cpu_Load label="System load"
}
Text label="Inställningar" icon="office" {
Switch item=Scene5
}
}
}
End example - Telldus support
- Add to /etc/apt/sources.list
deb http://download.telldus.com/debian/ stable main - Add
public key
wget -q http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add - - Update
repository
sudo apt-get update - Install
telldus-core
sudo apt-get install telldus-core - Add devices in /etc/tellstick.conf . Se example belowdevice {
id = 3
name = "Vardagsrum:rodlampa"
controller = 0
protocol = "arctech"
model="selflearning-switch"
parameters {
house="7778459"
unit="3"
}
}
- Train your devices with tdtool --learn 3 (where 3 is deviceID)
Unplug nexadevice and run command, when system blinks its connected. - Restart telldus services
sudo /etc/init.d/telldusd restart - starta om telldus tjänster - Install Tellstick bindings in paperUI
- Add all things that show up
- Create item from each things switchchannel and add to sitemap
- install bindings Weatherinfo for local temperatures and weather
- Install Eclipse IoT marketplace under Addons>bindings>misc
- Install weatherunderground
- Configure thing with location key (that you get att weatherunderground) and location. Works best with bigcitys like Sweden/Gotenburg
- To allow for js-scripts.
- Install JS transform
- Install RegEx Transformation
- Put scripts in /transform-folder
- To allow execs (running bash or commands like restart)
- Install exec-binding
- To get systeminfo stuff like cpuload
- Install binding SystemInfo
- Associate things with items
- Add items to sitemap
- To get sunstate
- Install Astro bindings
- Add things with your location as position.
- Create items that you link on sitemap
- Set category to good icons , like Moon
- To get phases to show, use formatting in label" [MAP(astro.map):%s]"
- To format dates in sitemap
- Show only hours,
add to label [%1$tH:%1$tM]
Example label="Soluppgång [%1$tH:%1$tM]"
No comments:
Post a Comment