Maybe it would be nice to have somewhere a status page with different kind of information?
Could be a nice orbiter page?
- Date of today
- Actual hour
- MOTD
- Temperature of today <<<Not sure that it belongs on a dashboard page>>>
- Forcast weather
- Sunrise/sunset (http://forum.linuxmce.org/index.php/topic,9701.0.html)
- Active lights
- Tripped sensors
- Local news / headlines <<<Not sure that it belongs on a dashboard page>>>
- Server statistics
- Number of movies, music, pictures...
- Server Networking
- ...
I've started a webpage that gathers all this information a bit: http://oniriabe.dyndns.org:1111/status
Let me know if there are other intresting things to put on this page.
The thing above in color are already covered.
Suggestions are more then welcome. I'm not a programmer but a netwerk engineer.
So everything is a bit try-and-error, copy/paste... ;)
Once everything is added/checked... i can start with a more proper layout.
And of course, it's better to integrate this into the administration pages, and not public...
If you want to try/have it:
- Download: http://oniriabe.dyndns.org:1111/packages/status.tgz
To a webfolder (fe /var/www/status/) - Unzip it with 'tar -zxvf status.tgz'
- Browse to it (fe http://192.168.80.1/status)
- The module phpsysinfo can be installed with 'sudo apt-get install phpsysinfo'
But isn't mandatory for this page. On the other hand, gives you nice information about your hardware.
Just create a symbolic link in your folder to it: "sudo ln -s /usr/share/phpsysinfo phpsysinfo"
If you search the forum, you will find a couple of times people have suggested this...
Up to now, nobody thought it interesting enough to implement it.
I'm willing to give it a try.
Will be a webpage (php) to start with.
If people have other points that could be intresting on this page, let me know...
My first draft: http://oniriabe.dyndns.org:1111/status
Comments/ideas are more then welcome.
The layout is very basic now, since i first want to have the most important things on it.
I like the concept of a dashboard for this. It is something quite useful to have today's weather, sunrise, sunset, alarm status (and activity), and any alerts all on one page. Clicking on the alarm status will, of course, take one to the alarm panel. Having a mini map of the house or a generic lighting status would be cool. This page can get too busy too fast. I like the necessary item summary, nothing more. Detail pages already exist for many items.
My page is getting somewhere... Let me know what you think so far...
In my eyes, everything is working fine.
But of course, a lot of things can be added, changed, needs to be tested...
The layout can/should be updated later on to fit into the LinuxMCE admin pages.
Everything is in one php sheet.
Just the 'sunrise/sunset' is based on a extra cron script. Couldn't figure out how to read it from the database (if so)...
It's interesting.
Please add wiki page about it...
Regards,
Bulek.
hey.... would you mind to provide that scipt for others to play with?
:-)
thx.
Ochorocho
No prob:
See my original post above... ;)
DOH! .... ;D
Thx.
Once my MediaDirector is running, i want to see if i can/need/want to add information about my music, movies, files... on it.
brononius, what i made out of your status page...
http://dokuwiki.knallimall.org/de/linuxmce_dashboard
hope you like it :-)
ochorocho
I certainly do :-) would be a nice info to have on the orbiter too
something to play with....
lmce.no-ip.org:8080
i will think about integrating this information into the orbiter.
Nice!!!
What do you mean with graphs?
Personally I'm using cacti to have a lot of monitoring about the system (and my network, and...).
Maybe this can integrated in it?
ps i'm missing the sunset/-rise. :-[
This was the thing that started this. Because i find this very interesting information for the 'timed events'.
sunset/-rise will be integrated again.
maybe i put it ro the right of the top bar?
Cacti is very nice. Cacti got a the nice interface with zoom for graphs ...
i use munin because of the easy setup and the way it can be extended. No zoom... graphs are NOT fancy! ...
My plan was not to replace it. Just to have important graphs ootb.
I currently have a script, it's run by a cron every minute and writes the data to a txt file. each day will generate its own file.
it would be nice if you know hot to get data from cacti?
example data of jqplot:
['2011-12-06 00:50', 68],['2011-12-06 00:55', 27],
['2011-12-06 01:00', 12],['2011-12-06 01:05', 81],
['2011-12-06 01:10', 40],['2011-12-06 01:15', 93],
['2011-12-06 01:20', 34],['2011-12-06 01:25', 24],
['2011-12-06 01:30', 37],['2011-12-06 01:35', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:36', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:37', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:38', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:39', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:40', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:41', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:42', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:43', 80],
['2011-12-06 01:30', 37],['2011-12-06 01:44', 80]
Not really necessary to put it on top, but it would be nice to have it somewhere.
Maybe an extra block with statistics? I'm also very interested to see the counts of the database. This can give you an idea of your configuration.
Regarding cacti, i know that you can have easy links to the graphs. For the moment, my server crashed. And i'm rebuilding it. Once it's up, i can show you a webpage on my intranet where i inserted the images...
Why is sunset sunrise information relevant for timed events? LinuxMCE knows about sunset and sunrise and keeps track of the events. I look outside to see if the sun is there or not
posde, where can i get the sunrise/sunset times from LMCE.
afak, currently brononius is running a cron to get the dates. Would be good to get it form LMCE it self as long as the data is already present on the system.
thx
ochorocho
polly,
you can't GET it from LinuxMCE. LinuxMCE can be instructed to execute commands on sunset and sunrise. There is the standard sunrise/sunset calc routing someplace in the events plugin, which uses your geo data.
Quote from: posde on October 31, 2012, 12:24:54 PMI look outside to see if the sun is there or not
You're right.
But i like to know when my lights outside will work, and when not.
Since I let LinucMCE control a big part of my electricity, i still want to know when things will happen, and why...
I'll not be the slave of my technology... ;D
It's a nice feature, the day/night.
But when you troubleshoot, it's nice to know these kind of things... :-X
And on the side, i find it really interesting to know when the sun will be gone...
some progress...
some graphs showing up now ... with zoom function...
i'll need to find a smart way to filter data and add a timeframe selector.
lmce.no-ip.org:8080
/me currently fails to see the integration into the Orbiter for this.
Quote from: posde on November 01, 2012, 02:38:35 PM
/me currently fails to see the integration into the Orbiter for this.
Sorry, what means Orbiter integration?
Can you explain or show me a wiki page?
Currently its a shell skript gathering data for graphs, the rest is HTML, PHP, JS ...
thx.
Quote from: polly on November 01, 2012, 04:13:32 AM
some progress...
some graphs showing up now ... with zoom function...
i'll need to find a smart way to filter data and add a timeframe selector.
lmce.no-ip.org:8080
Looks good! Spelling mistake for "usage" though...
/Mike
Quote from: polly on November 01, 2012, 02:57:52 PM
Sorry, what means Orbiter integration?
Can you explain or show me a wiki page?
Currently its a shell skript gathering data for graphs, the rest is HTML, PHP, JS ...
That's exactly my point. It is just a web page. What do I need a web page as a status overview page. This is information that is useful on the Orbiter imho.
Quote from: posde on November 01, 2012, 04:28:41 PM
That's exactly my point. It is just a web page. What do I need a web page as a status overview page. This is information that is useful on the Orbiter imho.
Can you describe a way to make the data available on the whole LMCE system?
My plan would be to focus on getting and storing data. Afterwards, i might think of integrating it.
thanks.
I like this in its own right - good job.
like Possy said though it would be nice in the orbiter or at the very least added to webadmin.
one thing I would like to see is the CPU temp of all MD's/Core (if it isn't already there)
Quote from: polly on November 01, 2012, 05:29:24 PM
Can you describe a way to make the data available on the whole LMCE system?
If release date is approaching FAST, one would create a picture and use getvideoframe to get that picture into the Orbiter :)
If one would do it right, you'd need to write a plugin. tschak909 knows more
Quote from: Techstyle on November 01, 2012, 08:40:27 PMone thing I would like to see is the CPU temp of all MD's/Core (if it isn't already there)
This should be possible with lmsensors.
I'll see if i can work something out next week...
The information here should be folded into the General Info Plugin. The various bits can be emitted as events, which can be intercepted by both the General Info Plugin, and responded to by the system to do different things.
Essentially, most of this stuff would be folded in as a data grid, with custom data grid cells, with images set for the bits inside the cells (a new screen handler in Orbiter would be needed for this.), with the normal data grid fields still set, so that not only can standard orbiter show something nice, but qOrbiter can also pick up the data.
This is going to take some learning and work for someone who does not yet understand how to make new orbiter displays/code, but it would be worth it.
-Thom
Quote from: brononius on November 02, 2012, 07:47:06 AM
I'll see if i can work something out next week...
i assume you know howto write a plugin. Would you mind you share your knowledge?
I would like to help to write a plugin.
ochorocho
it'll take a while. The first thing is to figure out how to get the information into a form that the plugin can parse. Examples of this could be, writing out to a text file, talking to an external shell script, etc.
-Thom
UPDATE: Before i ran a script to read the sunrise/-set from the log files. This wasn't best practice since it was a higher load for the system, just to get this value.
I found out that php has a command date_sunrise and date_sunset that calculs your sunrise timing. This based on your lattitude and longitude. And let these values now be in the database.
So i've update the status page:
- first grep the latt and long from the db
- get the offset from the timezone
- use this with date_sunrise
- ...
http://oniriabe.dyndns.org:1111/status/ (http://oniriabe.dyndns.org:1111/status/)
Hello,
downloading of the scripts doesn't seem to work anymore. Would it be possible to get the files from somewhere?
"oniriabe.dyndns.org:1111/packages/status.zip" gives 404 Not Found
My bad, should be back online...
A new package have been generated (only index and images)...
I get a 404 error also
grrrr,
I'll need to add that webfolder to my restore procedure. :-[
Should be online again...
(and now, update my restore procedure...)
tried to install this - the zip file is reported as invalid.
Tried on M$w and linux
Can you check?
-Coley.
Quote from: coley on January 17, 2013, 01:51:34 PM
tried to install this - the zip file is reported as invalid.
Give it a try with:
tar -zxvf status.zip
Quote from: brononius on January 17, 2013, 02:02:11 PM
Give it a try with:
tar -zxvf status.zip
thanks that worked - maybe rename the file to .tgz might be a hint at the archive type ;)
-Coley.
Done...
And link is updated in first post...
Your task, if you actually give a damn.
Find me an OPEN api for weather for your country if you live outside the united states. this is getting done now.
-golgoj4
And why shouldn't I give a damn? >:(
Normally, the weather part is based on the timezone.
I'm from Europe/Belgium, so this is outside the United States. And it works over here.
What's your timezone if i may ask?
This way i can change my server's timezone and have a look why it's not working for you.
ps This will not be in the next 2 weeks. I'm busy with another project that takes up all my time now... So please be patient...
Quote from: brononius on February 15, 2013, 07:39:07 AM
And why shouldn't I give a damn? >:(
Normally, the weather part is based on the timezone.
I'm from Europe/Belgium, so this is outside the United States. And it works over here.
What's your timezone if i may ask?
This way i can change my server's timezone and have a look why it's not working for you.
ps This will not be in the next 2 weeks. I'm busy with another project that takes up all my time now... So please be patient...
What I meant was what service are you using for europe. Im planning on rolling this functionality into the climate plugin and didnt want to ignore people outside the US.
golgoj4
These are the blocks that i'm using for the weather:
Quote
$_LOCALTIMEZONE = file_get_contents('/etc/timezone', NULL, NULL, 0, 1000);
$_LOCALWEATHER = $_LOCALTIMEZONE;
$_FORECAST = str_replace("/","_",$_LOCALWEATHER);
echo "<script src=\"http://www.weatherforecastmap.com/weather21.php?zona=$_FORECAST\"></script>";
Isn't going by timezone a little vague for weather? I live in Florida, so when I ran that script, it gave me totally wrong results. I might as well have been in Canada.
If i'm not wrong, it doesn't really check your TIMEzone. But it looks more at your timeZONE. :-X
Have a check what you see when you do 'more /etc/timezone'. If all is well, you should see your city. Or at the least a city nearby.
more /etc/timezone
Europe/Brussels
i see the idea behind it. I'm not sure if its like this in other parts of the states, but my central time shows up as chicago, which would be the closest major city as far as time goes as it is directly north, but it is about 900 miles north of us. im pretty sure chicago is the standard setting for our location as all devices that i have ever run across give us that option as the closest. i would think the best way to do it would be somehow by lat/long, but i dont really know anything about weather systems and api's outside of america.
City/Town information is stored in lmce and can be pulled from the database for use in scripts.
J.