Skip to content

The snap package scripts for building the nymea snap

License

Notifications You must be signed in to change notification settings

nymea/nymea-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nymea-snap

Packaging script for nymea snap, containing nymead, libnymea, nymea-plugins and nymea-cli.

Building

Install build dependencies:

$ sudo apt-get install snapcraft git build-essential

Clone the project source code:

$ git clone https://github.com/guh/nymea-snap.git
$ cd nymea-snap

Build the snap:

$ snapcraft

Install the snap

Note: you need to have a running snapd. See here for more information.

Note: The --dangerous is needed because the package is not signed.

    $ sudo snap install nymea_<VERSION>_<ARCH>.snap --dangerous

Interact with the snap

  • Run the nymea-cli command line interfaces

      $ nymea.nymea-cli
    
  • Get the status of the daemon:

      $ sudo systemctl status snap.nymea.nymead.service
    
  • Stop the daemon:

      $ sudo systemctl stop snap.nymea.nymead.service
    
  • Restart the daemon:

      $ sudo systemctl restart snap.nymea.nymead.service
    
  • Disable autostart of the daemon:

      $ sudo systemctl disable snap.nymea.nymead.service
    
  • Enable autostart of the daemon:

      $ sudo systemctl disable snap.nymea.nymead.service
    
  • Get the stdout from nymead:

      $ sudo journalctl -f -u snap.nymea.nymead.service
    

Snap interfaces

In order to enable the acces to the different service, you need to connect the the slots you need for your setup:

  • nymea:avahi-control
  • nymea:avahi-observe
  • nymea:bluez
  • nymea:network-manager

Connect interfaces

Once you connected an interface, you need to restart the nymea daemon using sudo systemctl restart snap.nymea.nymead.service.

  • Enable avahi discovery

      sudo snap connect nymea:avahi-control
      sudo snap connect nymea:avahi-observe
    
  • Enable bluetooth support

      sudo snap connect nymea:bluez
    
  • Enable network-manager support

      sudo snap connect nymea:nymea:network-manager
    

About

The snap package scripts for building the nymea snap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages