Categorygithub.com/balle/hackerWecker
modulepackage
0.0.0-20210107054146-54843fd33981
Repository: https://github.com/balle/hackerwecker.git
Documentation: pkg.go.dev

# README

hackerWecker

A tool to wake up a hacker in the morning by creating some kind of radio show (reading computer related rss / atom news and weather data, playing some music / podcast)

Requirements

  • Go 1.13 or higher
  • Espeak (on a Raspberry Pi OS use espeak-ng)

Implementation

Although the tool runs on Linux, *BSD, macOS and Windows laptop or desktop I recommend implementing it on a Rasperry Pi.

Note that you need to add a better sound card via USB (e.g. delock) as the integrated one is not capable in playing music without hurting ones ears.

To make sure that the sound is really played on the second sound card added via USB edit or create the file /etc/asound.conf with the following content:

pcm.usb_snd_card { type hw card 1 device 0 }

ctl.usb_snd_card { type hw card 1 device 0 }

pcm.!default { type plug slave.pcm "usb_snd_card" }

To make the hackerWecker actually wake you up add a crontab line like the following. It will wake you up every workday on 6:30.

# crontab -e

30 6 * * 1-5 cd /home/pi/hackerWecker; /usr/bin/go run main/hackerWecker.go

Last but not least edit the configuration file hackerWecker.json to your needs and copy some MP3 files onto the Raspberry Pi.

# Packages

Wake up a hacker by reading news and play some music and podcast.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author