Requirements for myOpenhab Cloud connection

  • Platform information: RPI Zero

    • Hardware: CPUArchitecture/RAM/storage
    • OS: what OS is used and which version Openhabian
    • Java Runtime Environment: which java platform is used and what version Zulu Embedded 8.25.0.76; openjdk version “1.8.0_152”
    • openHAB version: openHAB 2.3.0-1
  • Issue of the topic:
    Hello,
    Please let me know if it is a minimum requirement regarding the internet speed (bandwidth) or hardware in order to have a flawless experience with the openhab Android application. For the moment I think my internet connection (via wireless connection) is poor (Downlink 0.61 MBit/s/ Uplink 3.44 MBit/s) but I want a confirmation. Also, I’m not sure if the HW impacts performance.

    I’m using RPI Zero to:
    - read 3 DS18B20 temperatures sensors (via 1Wire protocol)
    - store the temp. in influxDB
    - use Grafana in order to have a graphic representation of the temperatures
    evolution
    - process temperature values via rules
    - control Central Heating System via Relay (use GPIO Binding)

Thank you

I don’t think that there is an “official” min requirement posted anywhere…
The Android app is using http to connect to the OH2 server so it’s very light weight.
I think that you shouldn’t have problems with your internet bandwidth.

well… with only 512MB of RAM on the rPi Zero and with OH2 + Grafana + InfluxDB (plus other stuff), your system is definitely struggling. Most likely, it is swapping on the MicroSD Card (something very bad). What do the commands swapon -s & free show?

1 Like

Hello,

Thank you for your answer. Please have a look below for the display of swapon command:

[10:47:10] openhabian@openHABianPi:~$ swapon -s & free
[1] 5043
Filename Type Size Used Priority
/var/swap file 102396 64800 -2
total used free shared buff/cache available
Mem: 492588 266488 136924 5116 89176 172636
Swap: 102396 64800 37596
Please let me know if the values are fine and if I have any optimization options (kill some process, remove some services …)
Thank you in advance,
Marian

@ Additional Please have a look also for :

Summary

[11:10:12] openhabian@openHABianPi:~$ ps aux --sort -rss
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
openhab 364 3.5 35.9 349716 177008 ? Ssl Nov03 276:38 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -
influxdb 361 20.7 11.6 877520 57348 ? Ssl Nov03 1634:57 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
grafana 8894 0.3 3.5 972844 17616 ? Ssl Nov05 15:36 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/g
openhab 367 0.0 2.3 111292 11636 ? Ssl Nov03 0:33 node /usr/bin/frontail --ui-highlight --ui-highlight-preset /usr/lib/node_modul
root 78 0.0 1.4 29388 7252 ? Ss Nov03 3:51 /lib/systemd/systemd-journald
root 4970 0.0 1.1 11512 5696 ? Ss 10:46 0:00 sshd: openhabian [priv]
openhab+ 4980 0.0 1.1 9648 5644 ? Ss 10:47 0:00 /lib/systemd/systemd --user
root 1 0.0 0.8 27148 4400 ? Ss Nov03 6:15 /sbin/init
openhab+ 4990 0.0 0.8 11512 4212 ? S 10:47 0:00 sshd: openhabian@pts/0

make it easier please: How to use code fences
edit your post above and place the content within fences (```)

You are swaping alot
I don’t think that you can do much with the rPi0… it has only 512MB of RAM :frowning:
Get a new rPi (3b+ is very good)… but even then… if you want to run OH2+InfluxDB+Grafana+other stuff: I would recommend something even bigger like a NUC.

Influx recommends a min of 2GB RAM: https://docs.influxdata.com/influxdb/v1.7/guides/hardware_sizing/