Archive for November, 2016

Config library for golang

Publishing config library to be used with go, it stores/loads structure as JSON file, so you can use it to keep options of your app: github.com/bykovme/goconfig

Example of using: github.com/bykovme/goconfig/blob/master/example/load_config.go

There are only 5 functions:

  • SaveConfig – saving configuration from structure into the file
  • LoadConfig – loading configuration from file into the structure
  • SearchForConfigFile – search for config file in different locations
  • GetLocalPath – get current path where executable app is running
  • GetUserPath – get user home folder

, , ,

Leave a comment

Install Razberry on Raspberry PI

razberry

Install Razberry as it is shown on the picture above.

Software  is installed with the command below:

wget -q -O - razberry.z-wave.me/install | sudo bash

Find in installation log user ID and password, they can be used to login remotely using https://find.w-wave.me

Check if service is running with

sudo service zbw_connect status

More information on Razberry project can be found here: http://razberry.z-wave.me

DONE

, , , ,

Leave a comment