Category: Tech
-
Arduino JSON Web Server
I wrote a small program to implement a web server with a JSON/HTTP interface for accessing I/O pins on the Arduino. Of course to use this you have to have an Ethernet shield (wired or WiFi) on your Arduino; a standard bare Arduino by itself has no network interface. But if you have the shield,…
-
Arduino and Numerous, with help from IFTTT
Here’s one way to connect an Arduino to a Numerous metric. The best solution would be to port the Numerous API to the Arduino; however, there is a footprint problem especially with SSL: there is only 2K of RAM on a standard Arduino. I could not find any Arduino ports of SSL (which is required…
-
Lego Technic Triangle Geometry
Time for some fun with Pythagoras! Lego tends towards rectangular constructs, but sometimes we might want to make triangular connections. Technic beams especially lend themselves to this. Right-angled pythagorean triangles are fairly easy to construct. Here’s a 3,4,5 triangle: Notice that when you build it you build it as 4,5,6. That’s because it’s the distance…
-
Showing off with shell “nr” (NumerousApp) command
I wrote some scripts demonstrating what you can do with all the bits and pieces I have now for manipulating NumerousApp metrics from python and shell. In particular, I was interested in finding the maximum value of one of my metrics:3626358291300704487 (this is the actual NumerousApp metric ID) I have already installed the python numerous client library and…
-
NumerousApp Server API Performance
I added yet another numerous metric, this time tracking the performance of the NumerousApp server itself: http://n.numerousapp.com/m/1dlt3ykfq5vqs It’s measured using this python code: import numerous nr = numerous.Numerous() nr.user() nr.user() t = nr.statistics[‘serverResponseTimes’] print (int(t*10000)/10.0)” which is using my NumerousApp Python library (“pip install numerous”). I just make two user() API calls (discarding the returned…
-
NumerousApp libraries updated
Newest versions of my NumerousApp API bindings for python and ruby are released. Now includes support for the new fine-grained permissions server APIs. PYTHON details: pypi: https://pypi.python.org/pypi/numerous pip install numerous github repo: https://github.com/outofmbufs/Nappy RUBY details: gem: https://rubygems.org/gems/numerousapp/ gem install numerousapp github repo: https://github.com/outofmbufs/numeruby NumerousApp overview: www.numerousapp.com API: http://docs.numerous.apiary.io/
-
Friday the 13th and NumerousApp
I made a new NumerousApp metric that will tell you when the next Friday the 13th is: http://n.numerousapp.com/m/1w4c4tk4uh29j Nerd info: I wrote this brute-force python program to find the next Friday the 13th: from datetime import datetime, date dt = datetime.now() while dt.day != 13 or dt.weekday() != 4: dt = date.fromordinal(dt.toordinal()+1) It gets today via…
-
Newest versions of NumerousApp API class libraries
As I wrote earlier, I have created Python and Ruby class libraries for the NumerousApp APIs. I’ve recently made a bunch of updates; the newest versions are: Python: Version 1.5.1: https://pypi.python.org/pypi/numerous/ % pip install numerous Documentation: https://github.com/outofmbufs/Nappy/wiki Ruby: Version 1.1.0: https://rubygems.org/gems/numerousapp/ gem install numerousapp Documentation http://www.rubydoc.info/gems/numerousapp/1.1.0 Additional documentation on “OmniRef” : https://www.omniref.com/ruby/gems/numerousapp/ And, as always, github repos: https://github.com/outofmbufs/ Ignore /…
-
Arduino Data Monitor Program
Finally got around to uploading (to github) and documenting my Arduino program for monitoring analog inputs. It’s pretty cool; it: Keeps a ring-buffer of readings and allows you to see what your monitored input has been doing over time. Implements a web server – you can access the readings with your web browser. Has a…
-
Documentation for my NumerousApp python class
Docs for the NumerousApp python class library is now available here: http://pythonhosted.org/numerous/