I have a problem with one of my data visualizations. It is made up of lines connecting different points. But with a lot of data those lines get too small and too tangled together to be distinguishable. I need a way to "magnify" a certain area around a mouse cursor so that the user can better see that area. I was looking around a bit but I couldn't find something that would help me. Creating an image of the screen around the mouse cursor and then scaling that image up is one idea, but I don't think that it is a very good one. Or is it?
I am having a bit of a problem creating a visualization. Basically I need some lines of different thickness based on a certain value. Now I know that map() can basically do what I want and it would be great if not for one simple problem. Most values are in the range of 0-200, but there are a few exceptions where a value exceeds 2500. I want a line that is from 1-30px in width - if I use map() with min 0 and maximum 2558 then the whole thing just looks silly.
Of course I considered simply manually mapping those values but since the whole visualization is dynamic I can't really do that.
So I need some way to map values to a certain range but somehow consider the average value in that calculation too.
So I have allways been fascinated by smart homes and smart buildings. The main problem with most of the commercial systems is that they are waaay to expensive for a student. So I started looking toward Room automation. And after a few years of doing nothing and doing something :) this is the result. RoliHome smart room controler. Equiped with many features built using arduino, processing and Java. It can be constructed for less than a 100EUR and still has some great features. One of the main features is a presence detection. While most systems like this use moton sensors to turn the lights on/off, I use IR door sensors that actually count the number of people inside the room. That way the light wont turn off while you are sitting in front of a computer watching some videos
. You can find more information on my website/blog:
http://r00li.com/index.php/rolihome where you can download thi whole thing and build your own system.
Here are some pictures:
The main system in a box that looks quite nice.
Control application
Web control
And the presence sensors on the door mounted for testing.
I would realy like some comments and/or questions.
I have a little problem. I am working on an application that is in its finishing stages right now and there are only a little minor issues that I need to solve. When someone clicks a button I want to notify him that the action was completed / or not. The best way to do is by using message box.
javax.swing.JOptionPane.showMessageDialog(null, "bla bla");
I tryed this one and I can't say that I like the results. Sometimes it works as expected but sometimes it just crashes and doesn't show or it does show but doesn't close, ...
I realy want something easy to impelent - with a few lines of code because I just need to show the message and close. I don't need anything else. Any ideas on what I could use? Or maybe I can somehow make the swing version work?
I have an application that usess multiple serial ports. When I run my application it automaticaly connects to all serial ports that are read from file (well their names are). I simply store the opened ports into an array and that is it. If all ports are connected everything is good. But when I try to send something to a port that is not connected I get NullPointerException. I tryed catching the exception, checking if serial port is null but nothing works. Is there any way to check if the port is actualy working before I try sending something and getting an exception that I can't catch?
Hi!
I have a quite simple question. I want to check how many new messages are in my Gmail inbox. I found a code that does that in Java (
http://www.lalitmehta.com/home/2007/09/17/how-to-check-gmail-rssatom-feed/ ), but I don't know how it can be modified to work with processing. If anyone has ever done something like this please let me know.
I am having a big problem with fonts. When I run the application in Processing it works. But when I try to run the applet or standalone application the JVM crashes with "Could not load font...". I have created a custom font with Tools -> Create Font and it is placed in the sketchfolder/data. I have put PFont nekFontAfter all the imports in the sketch. And this into setup: nekFont = loadFont("ArialMini.vlw"); I am running the latest version of Processing on Mac OS 10.6.4. Any ideas what could be wrong?
I have a small problem. I need to get a position of the main sketch window somehow. That is because I am using controlP5 and when I make another control window I need to place it above the current window. Problem is that I don't know how to get the position of the current window. Any help with this would be nice.
I am new to processing and I am in a dilema if I want to use Java or processing for my project. I have no experience using Processing but it looks quite easy and similar to arduino. And it can be used to create applications that look very nice - which is quite hard to do in Java. But before I decide I need some advice.
I am building a smart home application using arduino boards and I need to make a computer "control application". Of course I want to be able to control my home from a distance using a website. What I want is an embedded web server for my application. Then I can simply connect to it with any web browser and use it like any web site. In Java I can get this using Jetty. Can I do something simillar using Processing?
EDIT: Since Processing can use Java libraries - Can I use jetty with my processing application? That way I could create a nice looking application fast and also have all that I want.