Skip to main content

An open source GUI for the openhub iOT controller.

Project description

Pi Zero W Setup

Download Raspberry Pi Imager Use to download and flash Raspberry Pi OS Lite to the micro sd card

Add file named .ssh to base directory of card.

Connect wifi by adding a file named wpa_supplicant.conf to the same location.

wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=<WIFI_NETWORK_NAME_
scan_ssid=1
psk=<WIFI_PASSWORD>
key_mgmt=WPA-PSK
} ```

Run at boot:

1. Add openhub user with correct permissions:

sudo adduser openhubdaemon
sudo adduser openhubdaemon spi
sudo adduser openhubdaemon gpio

2. Set option to wait for wifi before running hub
raspi-config wait for wifi

place in: /etc/systemd/system/OpenHub.service

[Unit]
Description = OpenHub daemon
Wants = network-online.target systemd-networkd-wait-online.service OpenHubAPI.service
After = network-online.target systemd-networkd-wait-online.service local-fs.target OpenHubAPI.service

[Service]
User = openhubdaemon
Environment="PATH=/home/openhubdaemon/"
# Script starting HAP-python, e.g. main.py
# Be careful to set any paths you use, e.g. for persisting the state.
ExecStart = /usr/bin/python3 /home/openhubdaemon/OpenHub/OpenHub/run_bridge.py

[Install]
WantedBy = multi-user.target


sudo apt-get install python3-pip

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openhub-api-0.0.14.tar.gz (620.7 kB view details)

Uploaded Source

File details

Details for the file openhub-api-0.0.14.tar.gz.

File metadata

  • Download URL: openhub-api-0.0.14.tar.gz
  • Upload date:
  • Size: 620.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for openhub-api-0.0.14.tar.gz
Algorithm Hash digest
SHA256 df1c802ecc4a412e8cf7b120861db73193124a70f83bffbf847d9b9a587da901
MD5 cabe4f720939e144e46ea1d34ef7af0a
BLAKE2b-256 9700a9fab215de858a1c637198de8a5e448aa826eb08a5bc8bbce6373a217fb8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page