2019-07-02 21:12:51 +02:00
|
|
|
# puredata class
|
2019-05-28 20:01:18 +02:00
|
|
|
|
2019-05-28 20:12:39 +02:00
|
|
|
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
|
|
|
|
|
2019-07-02 21:12:51 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
```python
|
|
|
|
/get/weather [CITY]
|
|
|
|
/get/bitcoin
|
|
|
|
/get/cpu
|
|
|
|
```
|
|
|
|
|
2019-05-28 20:12:39 +02:00
|
|
|
# todo
|
|
|
|
|
|
|
|
* have each chapter be more verbose
|
|
|
|
* restructure so that there is a intro section with video examples of nice patches
|
|
|
|
* more robust end patches
|
|
|
|
* french translation
|
|
|
|
|