Page 3 of 6
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 09:49
by gorhak
Hello erlendfalch, I recognise several steps yuo lists and have tried some and also others, but the only result was that i became quite frustrated. In that mode I didnt made so much notes but I will remember that I did like this.
Follow frittefrax description but Add a new number:
2.5 Install mono-complete
Then continue with nr 3 (may be treated as patching in HF)
Good luck
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 10:56
by erlendfalch
Thanks for trying to help my incompetence
But I am not sure I follow you... Frittefrax in step 3 refers to a blog stating these steps:
- Ensure you have 2GB+ free on your SD card and a lot of time to spare
Launch a terminal window/ssh into your Pi
sudo apt-get update
sudo apt-get install mono-complete
sudo apt-get install automake
sudo apt-get install libtool
git clone git://github.com/mono/mono.git
cd mono
./autogen.sh –prefix=/usr/local –enable-nls=no
Note the above step reads two dashes before prefix and enable-nls. Thanks crazy fonts (and eagle eyed readers)
sudo make
Wait a long time (6 hours +)
Ignore the errors and hope they don’t mean anything
sudo make install
Wait some more
Ignore the errors and hope they don’t mean anything
PROFIT!
Is the place/order to execute the sudo apt-get install mono-complete of importance? And that I need to run that before doing the stuff in the blog?
Link to blog:
http://neildanson.wordpress.com/2013/12 ... ard-float/
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 11:44
by erlendfalch
Btw, is winform necessary for Switch King?
There is a subnote about it in the blog, which recommends to do like this:
http://neildanson.wordpress.com/2013/12 ... ard-float/
And last note: I have not followed frittefax advice on installing sqlite (if relevant)...
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 19:07
by erlendfalch
Update: I have found one problem with my attempts, and that is that I have failed to use the runtime operator correctly.
One important distinction is that the version number needs to be specified starting with a vX.X.XXXX. I.e:
That changes the problem to trying to locate the mscorlib.dll in path mono/4.5 instead (sigh...)
So, any suggestions on a runtime version to use? I have tried 3.5 and 4.0. Seems to need more digits, and cannot find a list of version.
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 20:55
by Martin
Maybe we can do a test build on Switch King for Mono targeting framework 4 instead of 2/3.5...
Re: Switchking on Raspberry Pi
Posted: Wed 29 Jan 2014, 22:17
by erlendfalch
If you have the time, i'd be willing to try. But keep in mind that I am a rookie, so there might be obvious things I am missing, or are doing wrong (but i am improving:) ) Also, there might be that gorhak at some point is able to remember what he did to get it running as well
I am keen to give Switch King a go on my raspberry. Think they are simply awesome (having two alread, and need at least one more for another projecct).
Re: Switchking on Raspberry Pi
Posted: Thu 30 Jan 2014, 15:40
by gorhak
Hello, I must correct myself. This is how i did it.
I bought a fast SDHC card 8GB Transcend TS8GSDHC10U1 (Netonnet 169kr)
and Im running at 950MHz overclocking.
I used image: 2014-01-07-wheezy-raspbian.img from raspberrypi.org/downloads homepage
Run frittefrax superb description but with some small corrections and testpoints
Start with no 1 ,2 and 4
sudo chmod 666 /etc/tellstick.conf
## edit tellstick.conf
sudo nano /etc/tellstick.conf
*change to true on line 4: to make Duo work
ignoreControllerConfirmation = "true"
edit the Example device to some device you already have, in my case: selflearning-switch:nexa code--111:1
#device {
# id = 1
# name = "Example device"
# protocol = "arctech"
# model = "codeswitch"
# parameters {
# house = "A"
# unit = "1"
# }
#}
device {
id = 1
name = "Example device"
controller = 0
protocol = "arctech"
model = "selflearning-switch:nexa"
parameters {
# devices = ""
house = "111"
unit = "1"
# code = ""
# system = ""
# units = ""
# fade = ""
}
}
## Restart telldus
sudo service telldusd restart
## Run tdtool, should be able to swich yuor device
tdtool --list
tdtool -n 1
## Install monodevelop, this give an complete mono installation with directory 2.0
sudo apt-get install monodevelop
## Install SwitchKing, no service scripts yet
Do nr (5) and 6.
## Run SwitchKing from prompt (running on softfloat)
mono /bin/SwitchKing/Bin/SwitchKing.exe terminal 8080 8800
## Attach to server from SwitchKing Windows Client, should be running as usual but slow
## Install Mono hardfloat
Do no 3
## Install SwichKing service scripts
Do nr 7 but the directory should be /etc/init.d/switchkingd (compare with telldus)
## start service, now running hardfloat
Do nr 8, 9 and 10
BTW monodevelop wont work after hardfloat installation so just remove it
sudo apt-get purge monodevelop
Good Luck
/Göran
Re: Switchking on Raspberry Pi
Posted: Fri 31 Jan 2014, 09:29
by erlendfalch
Had it a "light" go yesterday, but of course failed still
I guess I will have to try from the start, with a fresh image. Wanted to see if I could shortcut it. I'll have to save that for the weekend.
Appreciate your effort, though! I will report back
Re: Switchking on Raspberry Pi
Posted: Mon 03 Feb 2014, 10:51
by erlendfalch
With two smaller kids in the house, the weekend passed without any time to spare for this. Hopefully, I'll have some time tonight
Re: Switchking on Raspberry Pi
Posted: Mon 03 Feb 2014, 22:30
by erlendfalch
Currently in the progress of running through, and for the first time switchking started
Hoping the installation of hard float also will work. I'll just post the notes I have so far, and update if something else occurs.
Hello, I must correct myself. This is how i did it.
I bought a fast SDHC card 8GB Transcend TS8GSDHC10U1 (Netonnet 169kr)
and Im running at 950MHz overclocking.
I used image: 2014-01-07-wheezy-raspbian.img from raspberrypi.org/downloads homepage
Run frittefrax superb description but with some small corrections and testpoints
Start with no 1 ,2 and 4
sudo chmod 666 /etc/tellstick.conf
## edit tellstick.conf
sudo nano /etc/tellstick.conf
*change to true on line 4: to make Duo work
ignoreControllerConfirmation = "true"
edit the Example device to some device you already have, in my case: selflearning-switch:nexa code--111:1
#device {
# id = 1
# name = "Example device"
# protocol = "arctech"
# model = "codeswitch"
# parameters {
# house = "A"
# unit = "1"
# }
#}
device {
id = 1
name = "Example device"
controller = 0
protocol = "arctech"
model = "selflearning-switch:nexa"
parameters {
# devices = ""
house = "111"
unit = "1"
# code = ""
# system = ""
# units = ""
# fade = ""
}
}
## Restart telldus
sudo service telldusd restart
## Run tdtool, should be able to swich yuor device
tdtool --list
tdtool -n 1
## Install monodevelop, this give an complete mono installation with directory 2.0
sudo apt-get install monodevelop
## Install SwitchKing, no service scripts yet
Do nr (5) and 6.
If first time install, make sure to extract the db first (see zip in same folder). Also, I ran it under sudo...
## Run SwitchKing from prompt (running on softfloat)
mono /bin/SwitchKing/Bin/SwitchKing.exe terminal 8080 8800
## Attach to server from SwitchKing Windows Client, should be running as usual but slow
## Install Mono hardfloat
Do no 3
## Install SwichKing service scripts
Do nr 7 but the directory should be /etc/init.d/switchkingd (compare with telldus)
Also, remember to make the file executable by running the "sudo chmod +x /etc/init.d/switchkingd"
## start service, now running hardfloat
Do nr 8, 9 and 10
BTW monodevelop wont work after hardfloat installation so just remove it
sudo apt-get purge monodevelop
Good Luck
/Göran