Wednesday, December 24, 2014
Gauge Meters; A daunting task
Since I'm on vacation, I thought of planning my project using the free time. As the next step, I thought of developing the front end of the application. The user should be able to view the real time temperature and the power consumption. To present this information, I thought of using simple gauge meters.
Although the idea may seem to be simple, I had to spend a lot of time searching for any java libraries. Finally after many hours I found "SteelSeries". Although the name might suggest otherwise, it's a opensource library created for the purpose of using gauge meters effectively. I managed to learn the basics of the library from these blog posts. Using java swing, my next attempt was to create a simple program which could display the value provided by the user. However in these attempts, I found out that the jar files I had got were corrupted. After searching through many resources I found a site which provides all the libraries.
My next step was to expand the program further so that it can read a value from a text file and display the temperature and the power consumption. In this implementation, I used a thread called reader for background work. In this case, its task was to read the value from the text file and update the user interface as well as the internal calculator which would then calculate the power consumption. After several attempts, I was able to design a program which worked.
As the final step, since users are more interested in the time the last update was done, I included an update so that the date and time stamp would be included in a JLabel. The following video demonstrates my progress.
Although the idea may seem to be simple, I had to spend a lot of time searching for any java libraries. Finally after many hours I found "SteelSeries". Although the name might suggest otherwise, it's a opensource library created for the purpose of using gauge meters effectively. I managed to learn the basics of the library from these blog posts. Using java swing, my next attempt was to create a simple program which could display the value provided by the user. However in these attempts, I found out that the jar files I had got were corrupted. After searching through many resources I found a site which provides all the libraries.
My next step was to expand the program further so that it can read a value from a text file and display the temperature and the power consumption. In this implementation, I used a thread called reader for background work. In this case, its task was to read the value from the text file and update the user interface as well as the internal calculator which would then calculate the power consumption. After several attempts, I was able to design a program which worked.
As the final step, since users are more interested in the time the last update was done, I included an update so that the date and time stamp would be included in a JLabel. The following video demonstrates my progress.
Subscribe to:
Post Comments
(
Atom
)
R-bloggers
About Me
Blog Archive
Popular Posts
-
Introduction Changepoints are abrupt variations in the generative parameters of sequential data. Changepoint detection is the process o...
-
Introduction The project aimed at improving the postCP package and making it available on CRAN again. The snag that prevented the pac...
-
It all began when I started searching for a Google Summer of Code project last year (November, 2015) . While I was searching through the we...
-
Since I'm on vacation, I thought of planning my project using the free time. As the next step, I thought of developing the front end of...
-
In building the required libraries for a docker container, using a maven project, the libraries have to be copied to a separate location an...
-
It was quite a daunting task at the beginning to start with Kubernetes 1.7 alpha release because I knew that I was bound to face with diffi...
-
Recently for a project, I used a Raspberry Pi. Although mostly it's preferred to use raspbian as an operating system, I chose to use U...
-
Last week we were assigned projects for our 4th semester and I was selected for the energy sector. As a part of it, when I was exploring t...
Powered by Blogger.
Labels
#GSOC
(3)
#Tech
(3)
#postCP
(3)
#Kubernetes
(2)
#R-gsoc
(2)
#docker
(2)
#CentOS
(1)
#Cluster
(1)
#Pi
(1)
#R
(1)
#Ubuntu
(1)
#docker-maven-plugin
(1)
#fabric8
(1)
#raspberryPi
(1)
Air Conditioning
(1)
Embedded
(1)
Micro Controllers
(1)
Power consumption
(1)
Smart Systems
(1)
Tech
(1)
© Malith's Perspective 2016 . Powered by Bootstrap , Blogger templates and RWD Testing Tool
Well done MJ 😊
ReplyDeleteThank you :D
ReplyDelete