Getting started snappy
Pages 32
- Home
- Beaglebone Black
- Boblightd
- Coding style
- Community
- Compile guh
- Configuration
- Debian
- Discovery
- FAQ
- Getting started
- Getting started snappy
- guh cli
- Hardware
- Install
- License
- Overview
- Raspberry Pi
- Raspberry Pi 1
- Raspberry Pi 2
- Raspberry Pi 3
- Reporting bugs
- REST API
- RF 433 MHz
- Roadmap
- Snappy
- SSL Certificate
- Structure
- Ubuntu
- User Interfaces
- Webserver
- Webserver authentication
- Show 17 more pages…
Clone this wiki locally
Getting started with guhIO snappy
Once you have successfully installed the guhOP snappy package (Snappy) the guh daemon should already be running on the system. The guhIO snappy package contains the whole guh software:
- guhd
- libguh
- plugins
- guh-cli
- guh-webinterface
The guhd daemon is a service and can be controlled with systemd. The command line interface guh-cli is installed as binary and can be started with guhio.guh-cli
But first log in to Ubuntu Core device:
$ ssh ubuntu@webdm.local # password: ubuntu
Note: the avahi sometimes does not work correctly. In this case try to replace
webdm.localwith the IP of your device.
Now you should see running two services from guh:
$ systemctl list-units | grep guh
guhio_guhd_ICGAWgEBRJKY.service loaded active running Daemon for the guh IoT server
Note: if you don't install the package from the store, the version string will be replaced with a uuid. In this example ICGAWgEBRJKY. You will have a different uuid.
If you want to follow the debug output of the guhd service and to see what's going on you can run:
$ sudo journalctl -f -u guhio_guhd_ICGAWgEBRJKY.service
If you want to play with the API you can start the command line interface guh-cli as user ubuntu:
$ guhio.guh-cli
The guh REST API and the guh-webinterface are accessible over port 3333. The guhd JSON-RPC API runns on port 2222 for the TCP connection and on 4444 for the websocket connection.
Configurations
All guh config files are stored in:
$ ls -l /var/lib/apps/guhio.sideload/<currentUuid>/
The log files will be saved to:
$ ls -l /var/lib/apps/guhio.sideload/<currentUuid>/guhd.log
Home | Install | Getting started | Configuration | API | User Interfaces | Plugins | FAQ | License