<commit_before>#!/bin/bash
####
# Copyright (c) 2016 <NAME> (github user cjdaly)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#   cjdaly - initial API and implementation
####

function espeaker() {
  espeak "$@" 2>/dev/null
}

IP_ADDR=`hostname -I`
while [ -z $IP_ADDR ]; do
  sleep 1
  IP_ADDR=`hostname -I`
done
ESPEAK_IP_ADDR=`echo $IP_ADDR | sed -e 's/\(.\)/\1 /g' | sed -e 's/\./dot/g'`

sleep 3
blinkstick --index 0 off
blinkstick --index 1 off
sleep 1
blinkstick --index 0 --pulse white
sleep 1

blinkstick --index 1 --pulse blue
espeaker "Hello from Comp U Canvas"
sleep 2

blinkstick --index 1 --pulse blue
espeaker "I P address"
espeaker -s 100 "$ESPEAK_IP_ADDR"
sleep 2

blinkstick --index 1 --pulse blue
espeaker "repeating I P address"
espeaker -s 100 "$ESPEAK_IP_ADDR"
sleep 1

blinkstick --index 0 blue
blinkstick --index 1 green<commit_msg>Update boot-sequence.sh<commit_after>#!/bin/bash
####
# Copyright (c) 2016 <NAME> (github user cjdaly)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#   cjdaly - initial API and implementation
####

function espeaker() {
  espeak -a 20 "$@" 2>/dev/null
}

IP_ADDR=`hostname -I`
while [ -z $IP_ADDR ]; do
  sleep 1
  IP_ADDR=`hostname -I`
done
ESPEAK_IP_ADDR=`echo $IP_ADDR | sed -e 's/\(.\)/\1 /g' | sed -e 's/\./dot/g'`

sleep 3
blinkstick --index 0 off
blinkstick --index 1 off
sleep 1
blinkstick --index 0 --pulse white
sleep 1

blinkstick --index 1 --pulse blue
espeaker "Hello from Comp U Canvas"
sleep 2

blinkstick --index 1 --pulse blue
espeaker "I P address"
espeaker -s 100 "$ESPEAK_IP_ADDR"
sleep 2

blinkstick --index 1 --pulse blue
espeaker "repeating I P address"
espeaker -s 100 "$ESPEAK_IP_ADDR"
sleep 1

blinkstick --index 0 --limit 5 blue
blinkstick --index 1 --limit 5 green
{'fraction_non_alphanumeric': 0.12350780532598714, 'fraction_numerical': 0.030303030303030304, 'mean_word_length': 3.6067653276955602, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6942435', 'n_tokens_mistral': 841, 'n_tokens_neox': 758, 'n_words': 284}