http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
- download the latest image
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
| <!DOCTYPE html> | |
| <html> | |
| <head><title>SOUND</title></head> | |
| <body> | |
| <div>Frequence: <span id="frequency"></span></div> | |
| <script type="text/javascript"> | |
| var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
| var oscillatorNode = audioCtx.createOscillator(); | |
| var gainNode = audioCtx.createGain(); |
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi |
| #include "FastLED.h" | |
| // FastLED "100-lines-of-code" demo reel, showing just a few | |
| // of the kinds of animation patterns you can quickly and easily | |
| // compose using FastLED. | |
| // | |
| // This example also shows one easy way to define multiple | |
| // animations patterns and have them automatically rotate. | |
| // | |
| // -Mark Kriegsman, December 2014 |
| #!/usr/bin/python | |
| #Kwh per weekday | |
| import time | |
| import logging | |
| import calendar | |
| from datetime import datetime | |
| import redis |