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

Uploaded Source

File details

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

File metadata

  • Download URL: openhub-api-0.0.12.tar.gz
  • Upload date:
  • Size: 605.2 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.12.tar.gz
Algorithm Hash digest
SHA256 c6d9f79b92fcccc07f8db107331822aa2331d9f47fb096b70a5fc48ee2c5d8ff
MD5 9b3e6451c8dc182d4984d4fd3b9df036
BLAKE2b-256 b9be7662cea2a22d5228823d951303393a0b1ac504deff02abca316c766c0cf8

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