A Mass IP port scanner.
Please read the warning before you try it…
By Robert David Graham
A Mass IP port scanner.
Please read the warning before you try it…
By Robert David Graham
Send and receive Tweets using Max via OSC to a background ruby server.
An advantage of this method is that both the patch and the server are compact and easy to understand. The Max patch does things in a Max way. And likewise with the ruby scripts.
https://github.com/tkzic/internet-sensors
folder: twitter-ruby
The ruby script requires installation of the following gems
For example:
# sudo gem install twitter
In addition to having a Twitter account, you will need to set up a Twitter application from the developer site here:
Good instructions on how to do this can be found in this stackoverflow.com post under this heading: So you want to use the Twitter v1.1 API?
When you get to step 5 – in the instructions – instead of writing your own code, just use a text editor to copy your access tokens into these ruby programs:
Replace the strings in this line of code by copying and pasting the appropriate ones from your Twitter application:
twitterClient = Twitter::REST::Client.new do |config| config.consumer_key = "mqQtoYh16343tDFG3BK7QQ" config.consumer_secret = "X0KexjlK49fhhrnn9EztapZfATCQqWCc5fXVJH2pE" config.oauth_token = "205589709-5krgh9FR3KkLGRDnewiU7GKKBMA6i2La84c" config.oauth_token_secret = "LNARAeooN2vkklkF006GRdihQ5D8YYkm8dYvEs68M" end
(note: currently running with ruby version 2.0) Display your ruby version by typing: ruby –version
# ./twitter-server-send.rb
# ./twitter-server-get.rb
Both ruby servers can run at the same time.
revision history
update 12/2013 – see this post for an example of how to display geo-coded data from Max/MSP to Google maps https://reactivemusic.net/?p=8115
original post
This is a reference to some notes. In June, I wrote a Max patch to communicate with my brother David’s Tesla Model S, using an API which runs on Tesla servers and communicates with the car. You can do things like honk horn, flash lights, open doors – and also receive data on speed, position, and battery condition.
Can’t really test the control part of this – without the possibility of causing a car accident in California, but here’s a screen shot of the files. Essentially I just ran a node server for the API and communicated from Max using Osc.
The last thing I did was to track his return trip from SFO to Santa Cruz and plot points on a map.We will eventually update this prototype to plot data on a Google Map.
Much of the logic was borrowed from the Irish Train mapping project: https://reactivemusic.net/?p=5477
A radio experiment
from Texas
National Weather Service REST API
http://graphical.weather.gov/xml/rest.php
Now using this API with Max and Pd. See the Internet sensors projects:
https://reactivemusic.net/?p=5859
Successfully installed this GPS board on the R-Pi.
By Kevin Townsend at adafruit.com
http://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/introduction
The drivers for the console cable were already in the Raspian distribution on the R-Pi.
I installed the gpsd (daemon) software as directed in the above tutorial.
Documentation for gpsd is here:
http://gpsd.berlios.de/client-howto.html
Sample C code is: gpxlogger.c and cgps.c – which can be found in tkzic/rpi/gpsd 3.7/
(todo – write sample code and add to telemetry tracker)
Near IR + imaging.
http://playground.arduino.cc/Tutorials/GPS
altitude example
http://arduino.cc/forum/index.php?topic=143170.0
in depth
http://www.jeremyblum.com/2012/07/16/tutorial-15-for-arduino-gps-tracking/
note: have not tried any of these yet, but did get GPS working on the r-pi
Notes on high altitude balloon tracking using APRS.
Byonics TT3 is another option – a separate APRS encoder, to be combined with GPS and transmitter, for example:
What are all the pieces I will need to make a complete TinyTrak APRS tracker?
When reading the value of a switch with Arduino, its useful to set the INPUT_PULLUP mode so you don’t need to use an external pullup resistor. By the way, the internal pull-up resistor is 20K ohms.
See this tutorial:
http://arduino.cc/en/Tutorial/InputPullupSerial
If its not clear what a pull-up resistor does, read the links on this forum post.
http://arduino.cc/forum/index.php/topic,22274.0.html
Everybody has their own way to explain it. I would say that when the switch is open, the pull-up resistor weakly pulls the logic value high, so you don’t get random signal readings.