rsora / luncher

lunch proposals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Luncher 🍝

Propose me what to do for lunch and dinner

Infrastructure

The project is based on this tutorial: Turn an old eReader into an Information Screen

Server side

Launching on the Pi the following command

rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo) && curl -L perturb.org/rpi?rev=$rev

I get:

Revision : 000e
Model    : B
Memory   : 512 MB
Overvolt : No
Released : Q4 2012
Notes    : (Mfg by Sony)

Client side

Build and deploy

This project uses the wonderful Task for all the operation:

Build

task build:dev

Run

task run:dev

Deploy

Deploy happens on a Raspberry hosted in my local network

task deploy:target

How to reboot nook every night to cleanup for (seems like many) memory leaks

0 4 * * * ssh -i /home/pi/.ssh/id_rsa -oKexAlgorithms=+diffie-hellman-group1-sha1 root@$(/sbin/arp -n | awk '/58:67:1a/ {print $1}') -t reboot > /tmp/reboot.log 2>&1

About

lunch proposals


Languages

Language:Go 94.5%Language:Dockerfile 5.5%