Skip to content

Instantly share code, notes, and snippets.

@gesellix
Last active March 18, 2020 21:44
Show Gist options
  • Save gesellix/d50652b348aaabbf0d08fc99f71f4b4b to your computer and use it in GitHub Desktop.
Save gesellix/d50652b348aaabbf0d08fc99f71f4b4b to your computer and use it in GitHub Desktop.

Revisions

  1. gesellix revised this gist Aug 4, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions notes.md
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,5 @@
    - password: 12345678
    - connect via `ssh [email protected]`:
    - password `onioneer`
    - follow the internal event stream
    - `mosquitto_sub -v -t "#"`
  2. gesellix revised this gist Aug 4, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions notes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    - connect to wifi (`Oboo-Clock<...>`)
    - password: 12345678
    - connect via `ssh [email protected]`:
    - password `onioneer`
  3. gesellix revised this gist Aug 3, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions oboo-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@
    #! /bin/sh

    # source:
    # login to the oboo (after joining its wlan network): ssh [email protected]

    # - https://getoboo.com/community/topic/first-time-setup-of-your-oboo-smart-clock-maker-edition/
    # - https://getoboo.com/community/topic/enable-bluetooth-audio-on-oboo/
    # - https://getoboo.com/community/topic/software-update-weather-card/

    wifisetup
    sh /etc/cron.week/firmware_update.sh
    @@ -17,7 +19,6 @@ sh /usr/bin/mcu/setMcuTime.sh
    gpioctl dirout-high 3
    #gpioctl dirout-low 3

    # - https://getoboo.com/community/topic/software-update-weather-card/
    /etc/init.d/card-manager restart ; /etc/init.d/oboo-cards restart
    oboo config generate
    # vi /etc/config.json
  4. gesellix revised this gist Aug 3, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions oboo-setup.sh
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ sh /usr/bin/mcu/setMcuTime.sh
    gpioctl dirout-high 3
    #gpioctl dirout-low 3

    # - https://getoboo.com/community/topic/software-update-weather-card/
    /etc/init.d/card-manager restart ; /etc/init.d/oboo-cards restart
    oboo config generate
    # vi /etc/config.json
  5. gesellix revised this gist Aug 3, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions oboo-setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,3 +16,9 @@ mosquitto_pub -t /set -m '{"cmd":"hour mode", "value":"24"}'
    sh /usr/bin/mcu/setMcuTime.sh
    gpioctl dirout-high 3
    #gpioctl dirout-low 3

    /etc/init.d/card-manager restart ; /etc/init.d/oboo-cards restart
    oboo config generate
    # vi /etc/config.json
    /etc/init.d/card-manager restart ; /etc/init.d/oboo-cards restart

  6. gesellix revised this gist Aug 3, 2018. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions config.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    {
    "cards": {
    "0": {
    "name": "weather",
    "id": 0,
    "tempUnit": "celsius",
    "card": "Weather",
    "location": "Europe/Berlin CET-1CEST,M3.5.0,M10.5.0/3",
    "distanceUnit": "metric"
    }
    }
    }
  7. gesellix created this gist Aug 3, 2018.
    18 changes: 18 additions & 0 deletions oboo-setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #! /bin/sh

    # source:
    # - https://getoboo.com/community/topic/first-time-setup-of-your-oboo-smart-clock-maker-edition/
    # - https://getoboo.com/community/topic/enable-bluetooth-audio-on-oboo/

    wifisetup
    sh /etc/cron.week/firmware_update.sh
    opkg update
    opkg upgrade onion-script
    onion time list | grep Berlin
    onion time set Europe/Berlin CET-1CEST,M3.5.0,M10.5.0/3
    onion time sync
    sh /usr/bin/mcu/setMcuTime.sh
    mosquitto_pub -t /set -m '{"cmd":"hour mode", "value":"24"}'
    sh /usr/bin/mcu/setMcuTime.sh
    gpioctl dirout-high 3
    #gpioctl dirout-low 3