Go to file
Gwendal Le Vaillant d8b9e0ff8d Merge commit 'bfaf553581b4099527bb7756e6b9cdf79ed111f5' into Gwendal
fusion patch météo
2019-07-04 22:01:31 +02:00
resources Reste seulement exemple 13 - météo 2019-07-02 16:31:31 +02:00
screenshots Reste seulement exemple 13 - météo 2019-07-02 16:31:31 +02:00
README.md Merge commit 'bfaf553581b4099527bb7756e6b9cdf79ed111f5' into Gwendal 2019-07-04 22:01:31 +02:00
markdown.css first push 2019-05-28 20:07:16 +02:00
osc_server.py added python3 osc server 2019-07-02 21:06:54 +02:00
puredata.md first push 2019-05-28 20:07:16 +02:00
puredata_fr.md Remise en ordre des chapitres 2019-07-04 22:00:31 +02:00
weather_client.pd adding test puredata patch for the weather server 2019-07-04 21:43:56 +02:00
web_server.py first push 2019-05-28 20:07:16 +02:00

README.md

puredata class

This repo contains a short puredata class with some examples and a webserver. Use pandoc to generate the index.html in the source directory. The included webserver can be used to host the course on the LAN.

Dependencies:

  • pandoc
  • python3 bottle framework

It also includes a small OSC server that can be used to dispatch data to clients. This server fetches JSON data from online sources and formats it to OSC bundles. It currently dispatches:

  • weather data
  • bitcoin price data
  • cpu and ram data

To run the server you need these python3 dependencies that can be installed with pip.

  • python-osc
  • psutil

The server listens on port 8080 and send OSC data back on port 8081 to the client who requested the data. The following OSC messages can be sent to the server.

/get/weather [CITY]
/get/bitcoin
/get/cpu

It's running as a systemd service with the following configuration at /etc/systemd/system/osc_server.service.

[Unit]
Description=OSC server for puredata
After=network.target

[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi/sources/puredata/
ExecStart=/usr/bin/python3 osc_server.py
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target

Controlling the service is done with the following commands.

sudo systemctl start osc_server.service
sudo systemctl stop osc_server.service
sudo systemctl restart osc_server.service
sudo systemctl status osc_server.service

todo

  • restructure so that there is a intro section with video examples of nice patches
  • more robust end patches
  • finish french translation

done

  • have each chapter be more verbose