Every few weeks I wake up and the server hosting openhab has restarted for some reason because I haven’t installed OH as a service yet this takes my smart home offline for is there a way too stop this force windows too not restart or logoff ect.
I also use a peice of software called next pvr this has the capability to stop windows from shutting down or restarting while it’s running I’m hoping for the same sort of thing
This is caused by Windows update. Depending on what version of Windows you are running I don’t know if there is much you can do to prevent this. There was a big hullabaloo when make started doing that. But, I think there are ways to configure the updates so they don’t reboot for the Pro Windows 10 and Windows server editions.
I’m starting too have enough of running OH on windows and am seriously considering a move to the RPI3 it will be more reliable and it will also be easier too get stuff up and running as the community seem too write docs for the RPI
All the files are split up in different locations.
Linux has a very different set of metaphors compared to Windows. Everything is represented as a file. Devices, drives, processes, etc are all files. So, for example on windows you might have a device at comm port 1, on Linux you will have a file at /dev/ttyUSB0.
There are always half a dozen ways to do everything.
I could go on and on about the differences, but even now you should notice a trend. There are very few differences in OH itself beyond where to look for files and contents of config files.
It would be a good idea to go through a Linux for dummies or one if the dozens of getting started with Linux tutorials just to get comfortable with the commands line and different commands.
I highly suggest getting a cheap external HDD/sdd from the start and use openHABian to set up the RPi. openHABian has an option to might everything to the external drive automatically. You will almost certainly ended up doing this eventually so you may as well start now.
How much would i have too mess with the linux side of things at the moment i never really use no windows stuff its all text edits and web browsing would it actually be necessary to know how to use linux most stuff is written in the posts and there are quite a few videos online related too RPI and OH?
eg. my nas runs linux but i never have too think about that as its all browser based
That would be the plan maby offload the data too my nas i already know that OH doesen’t play nice with the SD card
It is actually highly simplifying. If everything is released as a file, you have a limited set of ways you need to learn to interact with anything in the system. Want to see how hot your CPU is? cat the contents of /dev/CPU. Want to see the comments of the system log? cat the contents of /var/log/syslog. Want to see what state the sensor contacted to GPIO pin 17 is reporting? cat the contents of /dev/gpio/17 (note, I’m not at a computer to tell if theses are indeed the correct files, I’m just listing them here for illustrative purposes).
To do the same thing on Windows you would have to learn at least three different internal API s and possible three different tools and ways to access the information.
You will need to know how to ssh to the machine and from the command line run commands, navigate the file system, possibly edit files. openhabian-config will be able to do the rest.
However, if something goes wrong you will need to know a lot more, depending on what went wrong. I recommend learning what you need to know BEFORE you after under pressure because your entire OHb system is offline and broken.
openHABian is not browser based. It is command line shell script based so to interact with openhabian-config you will need to ssh to the machine and run it. It automatically creates a file share you can mount as a network driver in Windows to access all you oh config files.
The best thing to do is to install openHAB as a service. It really is just a 5 minute job and the instructions are quite simple Service instructions.
You can stop Windows updating by saying its on a metered connection but that will also nag the life out of you too.
Learning openHAB AND Linux at the same time will be tough.
Just for scale though. Everything I mentioned above that you need to know how to do on Linux would take you maybe two hours at most to learn. If you have ever used cmd or PowerShell on Windows you will be fine. Its just some of the commands are the same.
But I will say this again as I’ve said it before. You should have at least a minimal familiarity of how to use the operating system upon which you run ANYTHING. If you don’t you will be pretty much helpless when something goes wrong.
I have but not much only very basic commands in CMD like using the diskpart function but like i have said before im not scared to try and learn failing is better than not trying
I didnt think i could learn OH’s text files but here we are
I already feel like that sometimes with OH running on windows and i have been using windows for years and am very familiar with it
but for the price of PI £35 you cant really moan and would be fun too try and learn if i didn’t like it i could always re purpose it as a small nas for my freind or any other countless things PI can do
The pros also outweigh the cons when running OH on PI