User:Pedro Sá Couto/Special Issue 7: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
(50 intermediate revisions by one other user not shown)
Line 1: Line 1:
18.09.18 PAD
=Life Hack Agent: ''Iris''=
[http://pzwiki.wdka.nl/mediadesign/Special_Issue:_Life_Hacks Overview of Special Issue #07: Life Hacks]<br>


https://pad.xpub.nl/p/burnout-18.09.18
==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.


[[File:Event pic.jpg | thumbnail | left | 600px | Banner for launch of Special Issue #07: Life Hacks]]
<br> <br> <br> <br> <br> <br> <br> <br>  <br> <br> <br> <br>  <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
=== 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 ===
[[File:Prototyping iris.gif | thumbnail|Early testings for ''Iris'' with LED's and motion detection]]
Last Updated on: 2018-12-12<br>
Performed in linux Debian<br>
Raspberry Pi 3 B+<br>
Pi Camera v2.1<br>
LEDs — WS2801B RGB LED Streifen Farbeffekte<br>
<br>
# Install Pip  <code>sudo apt-get update</code>  <code>sudo apt-get install python-pip</code>
# Check python2 version  <code>python --version</code>
# Check pip version  <code>pip --version</code>
# Properly install Setuptools module  <code>sudo apt-get install python-dev python-setuptools</code>
# Install opencv dependencies with pip  <code>sudo pip install opencv-python</code>
# Install imutils dependencies with pip  <code>sudo pip install imutils</code>
# Install Pillow dependencies with pip  <code>sudo pip install Pillow</code>
# Install espeak (to play the pirate)  <code>sudo apt-get install espeak</code>
# Install aplay (to play the colophon)  <code>sudo apt-get install aplay</code>
# Install sox (to play the colophon)  <code>sudo apt-get install sox</code>
[[File:Camera detection.jpg| thumbnail|Experimenting with opencv ]]
[[File:Optical flow.jpg|thumbnail|Experimenting an option for the movement detection (with optical flow) https://docs.opencv.org/3.4/d7/d8b/tutorial_py_lucas_kanade.html]]
[[File:EXPERIEMENT ON MOTION.png|thumbnail|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:
<BR>
https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/
<BR><BR>
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.
<BR><BR>
====Step 1: Create A Unit File====
Open a sample unit file using the command as shown below: <BR>
<code>sudo nano /lib/systemd/system/sample.service</code><BR><BR>
Add in the following text:<BR>
<code>[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</code>
<BR><BR>
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.<BR><BR>
In order to store the script’s text output in a log file you can change the ExecStart line to:<BR>
<code>ExecStart=/usr/bin/python /home/pi/sample.py > /home/pi/sample.log 2>&1</code><BR>
The permission on the unit file needs to be set to 644:<BR>
<code>sudo chmod 644 /lib/systemd/system/sample.service</code><BR>
<BR><BR>
====Step 2: Configure systemd====
Now the unit file has been defined we can tell systemd to start it during the boot sequence:<BR>
<code>sudo systemctl daemon-reload</code>
<code>sudo systemctl enable sample.service</code><BR><BR>
Reboot the Pi and your custom service should run:<BR>
<code>sudo reboot</code>
==COLOPHON==
''Iris'' Version 0.5 Contributors: Gill Baldwin, [[User:Simon | Simon]]  [[User:Artemis gryllaki | <span style="color:#107896;font-family:Ubuntu bold;"> '''ΆΡΤΕΜΙΣ''']] [[User:Bohye Woo | <span style="font-family: Helvetica; font-size: 1pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 3pt; color: #000;"> B  O  <span style="font-family: Helvetica; font-size: 5pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 7pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 9pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 11pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 13pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 15pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 13pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 11pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 9pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 7pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 5pt; color: #000;"> B O  <span style="font-family: Helvetica; font-size: 3pt; color: #000;"> B O <span style="font-family: Helvetica; font-size: 1pt; color: #000;"> B O  ]] [[User:Zpalomagar |  <span style=" color:#ff00bf">'''Paloma''']] [[User:Tancre | Tancredi]][[User:Pedro Sá Couto  |<span style="color:#000;font-family:Helvetica;text-decoration: none;  font-size: 6pt; letter-spacing: 18px; font-weight: bold;">  PEDRO SÁ COUTO]] [[User:Rita Graca | <span style="text-decoration: none; color:#000"> '''Rita''']][[User:)biyibiyibiyi( | )biyibiyibiyi(]], Silvio Lorusso, Aymeric Mansoux, André Castro, Steve Rushton, Michael Murtaugh, Leslie Robbins. Produced and published by the Experimental Publishing (XPUB) program of the Piet Zwart Institute, Rotterdam, December 2018. A collaboration between the Research Department of Het Nieuwe Instituut and XPUB.
<br><br>
You can find ''IRIS'' launching:https://burnout.hetnieuweinstituut.nl/en/activities/life-hacks-introducing-iris
<br><br><br>
== Ten Theses on Life Hacks ==
<div style='font-family: "Arial Narrow">
[http://pzwiki.wdka.nl/mediadesign/Ten_Thesis_On_Life_Hacks Ten Theses on Life Hacks]<br>
[https://beta.etherpad.org/p/22_10_18_recovered  Ten Theses on Life Hacks pad]
== REQUIRED READING ==
<small>CLASS1</small><br>
— [http://networkcultures.org/entreprecariat/what-is-the-entreprecariat/ <span style="color:#000;font-family:Helvetica;text-decoration: none;">What is the Entreprecariat?  Silvio Lorusso]<br>
— [http://networkcultures.org/entreprecariat/fake-it-till-you-make-it-genesis-of-the-entrepreneurial-precariat/ <span style="color:#000;font-family:Helvetica;text-decoration: none;">Fake It till You Make It – Genesis of the Entrepreneurial Precariat  Silvio Lorusso]<br>
— [http://ilu.servus.at/issue11.html <span style="color:#000;font-family:Helvetica;text-decoration: none;">Issue #12 PERVASIVE LABOUR UNION]<br>
<small>CLASS2</small><br>
— Bröckling, Ulrich. [https://books.google.nl/books?id=CsmICwAAQBAJ&pg=PA20&lpg=PA20&dq=Chapter+2:+Tracing+the+Contours+of+the+Entrepreneurial+Self&source=bl&ots=10cC548LX6&sig=QPMoZ6lhgn37AfoMvQRo_4FynAE&hl=en&sa=X&ved=2ahUKEwiylIvm4MTdAhVRyxoKHSMjCcMQ6AEwAXoECAgQAQ#v=onepage&q=Chapter%202%3A%20Tracing%20the%20Contours%20of%20the%20Entrepreneurial%20Self&f=false ''The Entrepreneurial Self: Fabricating a New Type of Subject'']. Los Angeles: SAGE, 2016. Chapter 2: Tracing the Contours of the Entrepreneurial Self (Silvio will scan it soon!)[[File:Chap2.pdf]]<br>
— Schumpeter, Joseph A. [http://download.library1.org/main/212000/97eb9e727716f33bc31ba2cdd29acc39/Joseph%20A%20Schumpeter-The%20Creative%20Response%20in%20Economic%20History-JEH%20%281947%29.pdf ''The Creative Response in Economic History''] ''The Journal of Economic History 7'', no. 2 (1947): 149–59.<br>
— Sennett, Richard. 2015. ''[http://download.library1.org/main/1399000/3456d107556d9dc267ed7f857aded8b8/Richard%20Sennett-The%20Corrosion%20of%20Character_%20The%20Personal%20Consequences%20of%20Work%20in%20the%20New%20Capitalism-W.%20W.%20Norton%20%26%20Company%20%281998%29.epub ''The Corrosion of Character: The Personal Consequences of Work in the New Capitalism'']. New York: W.W. Norton. Chapter 1 and 2. <br>
<small>CLASS3</small><br>
— Florida, Richard. [http://lib1.org/_ads/D414CAE012E0507B235250D6E9E35238 ''The Rise of the Creative Class Revisited: And How It’s Transforming Work, Leisure, Community and Everyday Life'']. New York: Basic Books, 2014. Introduction, chapter 10 and chapter 14.<br>
— Kitchin, Rob, and Martin Dodge. [http://lib1.org/_ads/2E6AA6648224741AB0DF521AA1FCF2E2 ''Code/Space: Software and Everyday Life'']. Cambridge, Mass.: MIT Press, 2014. Introduction.<br><br>
== SUGGESTED READING ==
<small>CURATORSHIP AND ENTREPRENEURSHIP</small><br>
— [https://ressabiator.wordpress.com/2014/05/23/curadoria-e-empreendedorismo/#more-12936 Curadoria e Empreendedorismo — Mário Moura — Ressabiator]<br>
<small>CLASS2</small><br>
— Hardt, Michael, and Antonio Negri. [http://download.library1.org/main/2077000/553234d0b519a3649ec070fea37bd3f7/%28Heretical%20Thought%29%20Michael%20Hardt%2C%20Antonio%20Negri-Assembly-Oxford%20University%20Press%20%282017%29.pdf ''Assembly'']. New York, NY: Oxford University Press, 2017. Chapter 9: Entrepreneurship of the Multitude<br>
— Ventura, Raffaele Alberto. [https://escholarship.org/uc/item/017101rg The Leisure Class Disease]
<br>
<br>
== Space Hacks, Working around other groups research ==
[[hack-16-10-2018|SPACE HACK — 16-10-2018 — Pedro Sá Couto]]
== AN ECONOMIC SYSTEM INCAPABLE OF COMING TO REST ==
{{youtube|-pCfJOj8QSo}}
<br>
<br>
== PADS ==
18.09.18 PAD —
https://pad.xpub.nl/p/burnout-18.09.18<br>
25.09.18 PAD —
https://pad.xpub.nl/p/burnout-25.09.18<br>
03.10.18 PAD —
https://pad.xpub.nl/p/burnout-02.10.18<br>
11.10.18 PAD —
https://pad.xpub.nl/p/burnout-11.10.18<br>
== CLASS SLIDES ==
SILVIO LORUSSO 1 — https://cryptpad.fr/slide/#/2/slide/view/VXHRr76i9K2fLii9oADQxfSSWVKua-sqeF4wj8kiHNs/ <br>
SILVIO LORUSSO 2 — https://cryptpad.fr/slide/#/2/slide/view/1vOxPY9nW179Kn72GT8ALs4nOa7dtFTRLUlk0eTERUk/ <br>
SILVIO LORUSSO 3 —
== MEETINGS ==
1ST MEETING PAD —
https://pad.xpub.nl/p/Life_Hacks_06_10_18<br>
[[Category: XPUB]]
[[Category: Special Issue]]
[[Category:Ten Theses On Life Hacks]]
[[Category:Iris]]
[[Category:The Entreprecariat Reader]]
[[Category:Start up, Burn out: Life Hacks]]
[[Category:Start up, Burn out: Life Hacks]]

Latest revision as of 19:34, 25 April 2019

Life Hack Agent: Iris

Overview of Special Issue #07: Life Hacks

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























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

COLOPHON

Iris Version 0.5 Contributors: Gill Baldwin, Simon ΆΡΤΕΜΙΣ B O B O B O B O B O B O B O B O B O B O B O B O B O B O B O Paloma Tancredi PEDRO SÁ COUTO Rita )biyibiyibiyi(, Silvio Lorusso, Aymeric Mansoux, André Castro, Steve Rushton, Michael Murtaugh, Leslie Robbins. Produced and published by the Experimental Publishing (XPUB) program of the Piet Zwart Institute, Rotterdam, December 2018. A collaboration between the Research Department of Het Nieuwe Instituut and XPUB.

You can find IRIS launching:https://burnout.hetnieuweinstituut.nl/en/activities/life-hacks-introducing-iris




Ten Theses on Life Hacks

Ten Theses on Life Hacks
Ten Theses on Life Hacks pad

REQUIRED READING

CLASS1
What is the Entreprecariat? Silvio Lorusso
Fake It till You Make It – Genesis of the Entrepreneurial Precariat Silvio Lorusso
Issue #12 PERVASIVE LABOUR UNION
CLASS2
— Bröckling, Ulrich. The Entrepreneurial Self: Fabricating a New Type of Subject. Los Angeles: SAGE, 2016. Chapter 2: Tracing the Contours of the Entrepreneurial Self (Silvio will scan it soon!)File:Chap2.pdf
— Schumpeter, Joseph A. The Creative Response in Economic History The Journal of Economic History 7, no. 2 (1947): 149–59.
— Sennett, Richard. 2015. The Corrosion of Character: The Personal Consequences of Work in the New Capitalism. New York: W.W. Norton. Chapter 1 and 2.
CLASS3
— Florida, Richard. The Rise of the Creative Class Revisited: And How It’s Transforming Work, Leisure, Community and Everyday Life. New York: Basic Books, 2014. Introduction, chapter 10 and chapter 14.
— Kitchin, Rob, and Martin Dodge. Code/Space: Software and Everyday Life. Cambridge, Mass.: MIT Press, 2014. Introduction.

SUGGESTED READING

CURATORSHIP AND ENTREPRENEURSHIP
Curadoria e Empreendedorismo — Mário Moura — Ressabiator
CLASS2
— 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

Space Hacks, Working around other groups research

SPACE HACK — 16-10-2018 — Pedro Sá Couto

AN ECONOMIC SYSTEM INCAPABLE OF COMING TO REST



PADS

18.09.18 PAD — https://pad.xpub.nl/p/burnout-18.09.18

25.09.18 PAD — https://pad.xpub.nl/p/burnout-25.09.18

03.10.18 PAD — https://pad.xpub.nl/p/burnout-02.10.18

11.10.18 PAD — https://pad.xpub.nl/p/burnout-11.10.18

CLASS SLIDES

SILVIO LORUSSO 1 — https://cryptpad.fr/slide/#/2/slide/view/VXHRr76i9K2fLii9oADQxfSSWVKua-sqeF4wj8kiHNs/
SILVIO LORUSSO 2 — https://cryptpad.fr/slide/#/2/slide/view/1vOxPY9nW179Kn72GT8ALs4nOa7dtFTRLUlk0eTERUk/
SILVIO LORUSSO 3 —

MEETINGS

1ST MEETING PAD — https://pad.xpub.nl/p/Life_Hacks_06_10_18