Skip to content

Instantly share code, notes, and snippets.

@meskarune
Last active March 5, 2021 23:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meskarune/ba50afac537de0b83d2d5f171feffbff to your computer and use it in GitHub Desktop.
Save meskarune/ba50afac537de0b83d2d5f171feffbff to your computer and use it in GitHub Desktop.

Option 1 - INI file:

[time]
; timezone in TZ https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone = Europe/Helsinki

[F4:65:A0:A6:D9:71]
name = one
location = bedroom

[C7:54:71:85:24:77]
name = two
location = livingroom

[D6:80:39:04:06:45]
name = three
location = balcony

Option 2 - Json File

{
    "timezone" : "Europe/Helsinki",
    "tags" : [
        "F4:65:A0:A6:D9:71" : {
          "name"     : "one",
          "location" : "bedroom"
        },
        "C7:54:71:85:24:77" : {
          "name"     : "two",
          "location" : "livingroom"
        },
        "D6:80:39:04:06:45" : {
          "name" : "three",
          "location" : "balcony"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment