Hi there,
wanna share my first experiences with all other beginners. maybe its interesting for some of you.
here are the lessons i learned:
read the community board
install the expert routine (will install the REST API, a really great tool to query the definitions)
create backups daily
look here for the correct use of the definition part you will need, if you use the recommended tools, it will work like a charm.
define your things wisely (naming) and maybe define the things network state via Network Binding as seperate thing to check only physical, without the bridges communication.
define your items wisely (naming, grouping, labeling)
layouts last: if you try to choose CSS file templates in HabPanel, dont use them (comment out, or leave HabPanel-CSS-Field empty) while you working in HabPanel, maybe some cursor states are defined and this will may make the work harder. if youre done with defining, activate CSS
read, understand and try everything that sounds interesting for you, if it works, go to next.
I am still early in my journey but I think some persistence is needed to give a good starting state after restarting OH. This is the next thing for me to implementā¦ I do not yet use HabPanel.
The first page is nearly doneā¦ really like the concept of openHab and thanks to ysc for the orange-tree CSS, tomorrow i will start to use transform maps
On a Win10 Tablet it look nice too, but the scale, especially the font size does not match the look on a laptop, that means no, i had to learn much more than only choose items per dummy-widget
on my android phone it looks like the text breaking the layout, endless text partsā¦
Hallo again, all interested beginnersā¦ wanna share my thoughts of the last daysā¦
I am really trying to understand the underlaying model, thats why i google a lot to find related things to this project, and voila here are the findings and maybe useful tipps:
Try to understand: https://angular.io/ (a coding framework for using files/data feeds in the presentation on lots of different devices). That means, no you donāt have to code something, only understand the fundamentals of the concept of angular.
If you want to store some item-states into your own database, you need a database persistence service, the round-robin database rrd4j seems a good choice, but in the windows world i am pretty unsure that a āCRON-Jobā will run out of the box without installing some additional software. For sure the whole project is some linux-world driven part, and without a basic programming knowledge you get lost. For a lot of beginners this would only be ācopy-and-pasteā from the community and try if it works.
What i am really looking for is: A lot of how-toās!
Howto āstartā! Not the install part, the part where all the small things which are packed into this (standard)-product will be described.
Howto ācreate a module with parameter boxesā for easy re-using in the whole community.
Howto āuse a own CSS-Fileā and what to avoid for running in the HabPanel.
Maybe the information is everywhere (i really read a lot) but i was not able to find it.
And last but not least:
If i donāt want to use linux, what wouldnāt work and why, for example in a windows 10 installationā¦ ?
CRON?
openHAB is a Java software, there is no dependency to GNU/Linux. In fact, there should be no difference at all. But there are some little differences, like backslash in paths instead of slash. a serial interface will use other names, and so on.
In question of Time cron, this is also part of Java, even rrd4j will work flawlessly.
Now i give unix a try:
via. VirtualBox emulate a Raspberry-PII putting a debian on it and there i installed OpenHab (great performance on a surface laptop). A lot of things work out of the box but now i stuck like every unix beginner with the rights on filesystem to create a things file or to copy a 2.5 Addon to target directoryā¦ but i will learn this too.
But thats the big difference to a windows installation, there you have all rights and you can do whatever you want even without a sudo or without command lineā¦
No Jens
stick with the platform you are most comfortable with
Donāt try to learn OpenHAB and a new OS at the same time
Youāll have full hands learning OpenHAB
There is a new Windows installer in beta and working awesome!
someone help me please with a link
Thanks again for commenting and explaining, but the installation is not the problem, maybe i should explain what i am looking for:
i have a lot of old tablets, laptops,ā¦ i only want to use them, to show HabPanel on screens and only one of them will act as āserverā.
and HERE is where the way leads to windows or unix (didnāt own a mac)
Windows Version is easy to install, only extract the ZIP-File to a location, configure your system and start the batchfile.
If you want to remove it, logout and remove the whole path on filesystem and you are done.
If you want to save your settings āadd folders (USERDATA/CONF)ā to a new ZIP File and name it yyyymmdd_ā¦ (for example 20190901_OpenHab_Save.ZIP).
Itās portable if you ZIP the whole openHab folder and extract on a different windows host, configure a few lines, start the batchfile and you are done!
If you are familar with coding at command line in windows, everything in stable version works like a charmā¦ use code . add the visual studio plugin and install SVG preview for explorer use. you are ready to go.
But i donāt want to serve with my windows laptop, i only want to develop there! This is where i take a look at the
Unix Version is easy to install too, if you know what apt-get will do and if you are know what a bash is. After installation take a look to the file system, on difference to windows there are a lot of different directories created widely spreaded, not only one path like in the windows world. Sure the information about where i can find for example the āitemsā-folder is documentated but is not quite that easy as in windows. But now i can try some scripts or examples i find, out of the box thatās nice. After working a few longer with it i get lost without knowledge about chmod and why i donāt have rights (maybe i donāt understand who is owner and why)ā¦ but thats only a short term problem.
The long way problem (for me) seems to define a system, which is portable (if i choose another old pc as server, i donāt want to install everything again and again) and which i can edit and work with in windows via visual code. But it has also to be able to to test and try
Thatās where VirtualBox came in, emulating a CPU and running OS whatever i want to run, itās portable and can run on many different host systems. Now i need to configure (currently) access to file system (openBSD) to be able to read and write my settings in every folder to openHab-Unix side installation. But i think this is a bad idea, on one side i get a portable version but on the other side i can only switch the host system to run the VB except i use a windows installed VB, am i right?
Maybe there is a much easier way to do this.
Thanks for any suggestion
Having the server on Unix makes sense, running virtualization for this single purpose does not.
Iād suggest to get a pair of Raspis (so you have identical spare HW you can use by moving SD card or backup/restore of raw disk contents). If you rather would like to stick with your old laptop thatās also fine (good because of the builtin āUPSā), then in case of HW failure you have to install from scratch to new (well, used but different) HW.
Thatās not as difficult as it sounds. Get a newbie-friendly debian-like UNIX such as Ubuntu, 1) install it, 2) āmanuallyā install openHABian on top and then 3) restore your OH config from backup. 1 & 2 you can prepare in advance so it wonāt take long to get your system up and running again in case of HW failure.
Where to run your clients, rules editor etc is independent of that.
Okay, strictly speaking youāre right. Linux is not UNIX and never will be due to the rights and licensing involved. Just like its major tools are GNU licensed.
I do think however to insist on correct speech will rather bedazzle all those poor Windows users we want to convince moving off Windows so I took the freedom to be inaccurate here ā¦
lol! yeah if i want to type anything so concrete as possible i will sure remind this
But at the other hand, for a ānormal win userā there is the windows world and the unix (linux,bsd,redhat,ubuntu,ā¦) world where i didnāt even know the differences between them (i can imagine that some underlying librarys are different from type to type and so for example the gui looks different,ā¦ but i even donāt know).
Would it be possible to construct something like this (or is it maybe realized and i didnāt see?):
/conf and all underlying files and directories are stored on a NAS (//myNAS/conf)
No matter from which system i start the server, the conf files from the NAS will be loaded and if something changes save them there againā¦ if this works, do i need this for the /userdata too?
Well one key characteristics of UNIX (and everything that is just UNIX-like ) is that āanything goesā BUT you have to understand it well to not hit a pitfallā¦
So in short to answer your question: yes but no, donāt do it. Donāt make your OH service dependent on external entities, even more so if youāre no expert in that matter.
Thereās better solutions. You can also access files via Samba from your Windows client using VS code extensions.
openHABian comes with Amanda, a backup solution (that you should deploy in either case).
You can also upload your config e.g. to GitHub (hey, thatās M$ owned now, too !) or some other cloud service, but git is a practical approach quite some OH users make use of.
Just one thing: do NOT edit the files at their location in the filesystem. Make a copy, edit that copy then copy it back. Else youāll run into trouble with OH.
Make sure you have an original copy before overwriting the production version so you can revert back. Copying your edited file would overwrite you only original copy otherwise.