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.16.tar.gz (620.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: openhub-api-0.0.16.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.16.tar.gz
Algorithm Hash digest
SHA256 d6f67240101e88573faad0ab2838a71d2bcd081867f86315762d00426e17e0a7
MD5 9a36688ec95107b184c9c7f8fc52dc96
BLAKE2b-256 d60bd28c89504d0bff38401ebf3f9eae2e363126ba70d31129fc55bdc14c39ad

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