User:Bohye Woo/Special Issue 7: Entreprecariat + Life Hacks

From XPUB & Lens-Based wiki
Specialissue11.jpg

Ten Theses On Life Hacks is a publcation, first project of the Special Isuue 7, presented in its first version at the event ' Life Hacks: Space ' that took place at Varia on the 31 October 2018.

' Life Hacks: Space ' event at Varia

Varia event / Varia archive

Life Hack Agent: Iris

Running Iris

WHAT IS IRIS

Iris is a smart machine that interacts with you via audio, camera and visual effects. It aims to be installed in a workplace environment. Iris has 3 characters: guru, pirate and announcer. The files follow this nomination.

Banner for launch of Special Issue #07: Life Hacks

video























THE FILES

  • The .json files (“guru.json”, “rebel.json” and “announcer.json”) are the files where all the sentences the characters say are stored.
  • The script “guru-pirate.py” is the script that combines content of guru and pirate (from json files) to play their messages. It also integrates LEDs when the characters speak. When characters speak the LEDs light up and perform effects. This script runs when the camera detects motion.
  • The script "motion_detector_2.py" is used to detect motion from camera connected to raspberry pi.
  • The script "announcements.py" plays the messages of the Announcer (from json file)
  • The credits for this project are under the script “colophon.py”, they are read out loud with espeak when covering the camera with a finger for a few seconds.
  • “Motion.sh” is the script from where you bring everything to life. Just run ./motion.sh on your terminal.

INSTALLING DEPENDENCIES

Early testings for Iris with LED's and motion detection

Last Updated on: 2018-12-12
Performed in linux Debian
Raspberry Pi 3 B+
Pi Camera v2.1
LEDs — WS2801B RGB LED Streifen Farbeffekte

  1. Install Pip sudo apt-get update sudo apt-get install python-pip
  2. Check python2 version python --version
  3. Check pip version pip --version
  4. Properly install Setuptools module sudo apt-get install python-dev python-setuptools
  5. Install opencv dependencies with pip sudo pip install opencv-python
  6. Install imutils dependencies with pip sudo pip install imutils
  7. Install Pillow dependencies with pip sudo pip install Pillow
  8. Install espeak (to play the pirate) sudo apt-get install espeak
  9. Install aplay (to play the colophon) sudo apt-get install aplay
  10. Install sox (to play the colophon) sudo apt-get install sox
Experimenting with opencv
Experimenting an option for the movement detection (with optical flow) https://docs.opencv.org/3.4/d7/d8b/tutorial_py_lucas_kanade.html
experiment on motion

AUTOMATICALLY RUN THE IRIS ON RASPBERRY PI AT STARTUP

Tutorial on how to run a program on your Raspberry Pi at startup:
https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/

The fourth method to run a program on your Raspberry Pi at startup is to use the systemd files. systemd provides a standard process for controlling what programs run when a Linux system boots up. Note that systemd is available only from the Jessie versions of Raspbian OS.

Step 1: Create A Unit File

Open a sample unit file using the command as shown below:
sudo nano /lib/systemd/system/sample.service

Add in the following text:
[Unit] Description=My Sample Service After=multi-user.target

[Service] Type=idle ExecStart=/usr/bin/python /home/pi/sample.py

[Install] WantedBy=multi-user.target

You should save and exit the nano editor. This defines a new service called “Sample Service” and we are requesting that it is launched once the multi-user environment is available. The “ExecStart” parameter is used to specify the command we want to run. The “Type” is set to “idle” to ensure that the ExecStart command is run only when everything else has loaded. Note that the paths are absolute and define the complete location of Python as well as the location of our Python script.

In order to store the script’s text output in a log file you can change the ExecStart line to:
ExecStart=/usr/bin/python /home/pi/sample.py > /home/pi/sample.log 2>&1
The permission on the unit file needs to be set to 644:
sudo chmod 644 /lib/systemd/system/sample.service


Step 2: Configure systemd

Now the unit file has been defined we can tell systemd to start it during the boot sequence:
sudo systemctl daemon-reload sudo systemctl enable sample.service

Reboot the Pi and your custom service should run:
sudo reboot

Research

Life Hacks
Managing time to be efficient.
Concept of manage: be in charge of something.
How to live your life efficiently.
No challenge No Success

Self-optimization
How much you control of your life.
A 3-module publication: Time management, space inhabitation, and mind tweaking.

Objects

Question

  • What tone of voice (manual/self-help book/novel/survival kit)
  • What kind of collection and documentation?

Whole Earth Catalog https://monoskop.org/images/0/09/Brand_Stewart_Whole_Earth_Catalog_Fall_1968.pdf http://doorofperception.com/wp-content/uploads/whole_earth_catalog-spring-1969.pdf

Computer Lib/Dream Machines by Ted Nelson http://linkedbyair.net/bin/Ted%20Nelson%20Computer%20Lib%20Dream%20Machines%20-%201st%20edition%201974.pdf

Precarity (san precario) https://www.researchgate.net/publication/275447294_San_Precario_A_New_Inspiration_for_Labor_Historians

MindHacks

using its absurdity and ambiguity of the objects

Readings

Required reading:

Suggested reading:

  • Hardt, Michael, and Antonio Negri. Assembly. New York, NY: Oxford University Press, 2017. Chapter 9: Entrepreneurship of the Multitude
  • Ventura, Raffaele Alberto. The Leisure Class Disease

More Readings