I hereby claim:
- I am rw950431 on github.
- I am rw950431 (https://keybase.io/rw950431) on keybase.
- I have a public key ASDqfx9SEecWLcqHzb5KXqFYy6ntNhxrY2YCTrlYbk1YcQo
To claim this, I am signing this object:
| PS C:\Users\gertr\Documents\PlatformIO\Projects\new-ulp-example> pio run -v | |
| Processing lolin32_lite (platform: espressif32; framework: espidf; board: lolin32_lite; monitor_speed: 115200) | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin32_lite.html | |
| PLATFORM: Espressif 32 (6.5.0) > WEMOS LOLIN32 Lite | |
| HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash | |
| DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) | |
| PACKAGES: | |
| - framework-espidf @ 3.50102.0 (5.1.2) | |
| - tool-cmake @ 3.16.4 |
| import os | |
| import glob | |
| import time | |
| import sys | |
| import datetime | |
| import urllib2 | |
| baseURL = "https://api.thingspeak.com/update?api_key=(MY KEY)&field1=&field2=" |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import urllib2,json | |
| import datetime | |
| from time import sleep | |
| import sys | |
| READ_API_KEY='YOUR_API_KEY' | |
| CHANNEL_ID=YOUR_CHANNEL |
| #!/usr/bin/env python | |
| import urllib2,json | |
| READ_API_KEY='your_read_api_key' | |
| CHANNEL_ID=<your channel id> | |
| def main(): | |
| conn = urllib2.urlopen("http://api.thingspeak.com/channels/%s/feeds/last.json?api_key=%s" \ | |
| % (CHANNEL_ID,READ_API_KEY)) | |
| response = conn.read() |
| <html> | |
| <head> | |
| <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <script type="text/javascript" src="//www.google.com/jsapi"></script> | |
| <script type="text/javascript"> | |
| google.load('visualization', '1', {packages: ['annotationchart']}); | |
| </script> | |
| <script type="text/javascript"> | |
| scale_factor=1000; // 1000 = units/sec, 60000=units/min etc | |
| initial_load=24*6; // number of historical points to load initially |
| #!/bin/bash | |
| # RW950431 30Jan2014 | |
| # update thingspeak with system perf data | |
| # add an entry to crontab something like | |
| # */10 * * * * /home/pi/stats.sh >>/home/pi/stats.log 2>&1 | |
| # | |
| KEY=YOUR_THINGSPEAK_WRITE_KEY | |
| # network packets (change wlan0 to eth0 if wired network) | |
| NET=$(netstat -i | awk '/^wlan0/ {print "field1="$4"&field2="$8}'); | |
| #echo $NET |