LinuxMCE Forums

General => Feature requests & roadmap => Topic started by: brononius on October 10, 2012, 07:57:02 am

Title: Status / overview page?
Post by: brononius on October 10, 2012, 07:57:02 am
Maybe it would be nice to have somewhere a status page with different kind of information?
Could be a nice orbiter page?




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:

Title: Re: Status / overview page?
Post by: Marie.O on October 10, 2012, 08:53:34 am
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.
Title: Re: Status / overview page?
Post by: brononius on October 10, 2012, 01:01:26 pm

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...

Title: Re: Status / overview page?
Post by: brononius on October 12, 2012, 02:43:50 pm
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.
Title: Re: Status / overview page?
Post by: WhateverFits on October 12, 2012, 09:21:51 pm
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.
Title: Re: Status / overview page?
Post by: brononius on October 23, 2012, 03:33:49 pm
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)...
Title: Re: Status / overview page?
Post by: bulek on October 25, 2012, 10:09:09 am
It's interesting.

Please add wiki page about it...

Regards,
Bulek.
Title: Re: Status / overview page?
Post by: polly on October 25, 2012, 11:42:17 am
hey.... would you mind to provide that scipt for others to play with?
:-)


thx.
Ochorocho
Title: Re: Status / overview page?
Post by: brononius on October 25, 2012, 12:43:07 pm
No prob:

See my original post above...  ;)
Title: Re: Status / overview page?
Post by: polly on October 25, 2012, 12:57:44 pm
DOH! ....  ;D

Thx.
Title: Re: Status / overview page?
Post by: brononius on October 25, 2012, 01:02:28 pm
Once my MediaDirector is running, i want to see if i can/need/want to add information about my music, movies, files... on it.

Title: Re: Status / overview page?
Post by: polly on October 30, 2012, 01:06:16 am
brononius, what i made out of your status page...

http://dokuwiki.knallimall.org/de/linuxmce_dashboard

hope you like it :-)

ochorocho
Title: Re: Status / overview page?
Post by: maverick0815 on October 30, 2012, 09:34:41 pm
I certainly do :-) would be a nice info to have on the orbiter too
Title: Re: Status / overview page?
Post by: polly on October 31, 2012, 12:10:30 am
something to play with....
lmce.no-ip.org:8080

i will think about integrating this information into the orbiter.
Title: Re: Status / overview page?
Post by: brononius on October 31, 2012, 07:08:35 am
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'.
Title: Re: Status / overview page?
Post by: polly on October 31, 2012, 09:33:04 am
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:
Code: [Select]

        ['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]
Title: Re: Status / overview page?
Post by: brononius on October 31, 2012, 10:16:14 am

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...
Title: Re: Status / overview page?
Post by: Marie.O on October 31, 2012, 12:24:54 pm
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
Title: Re: Status / overview page?
Post by: polly on October 31, 2012, 01:04:24 pm
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
Title: Re: Status / overview page?
Post by: Marie.O on October 31, 2012, 01:09:38 pm
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.
Title: Re: Status / overview page?
Post by: brononius on October 31, 2012, 01:13:43 pm
I 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...
Title: Re: Status / overview page?
Post by: 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

Title: Re: Status / overview page?
Post by: Marie.O on November 01, 2012, 02:38:35 pm
/me currently fails to see the integration into the Orbiter for this.
Title: Re: Status / overview page?
Post by: polly on November 01, 2012, 02:57:52 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.
Title: Re: Status / overview page?
Post by: mkbrown69 on November 01, 2012, 02:59:03 pm
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
Title: Re: Status / overview page?
Post by: Marie.O on November 01, 2012, 04:28:41 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.
Title: Re: Status / overview page?
Post by: polly on November 01, 2012, 05:29:24 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.
Title: Re: Status / overview page?
Post by: Techstyle on November 01, 2012, 08:40:27 pm
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)

Title: Re: Status / overview page?
Post by: Marie.O on November 01, 2012, 10:05:20 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
Title: Re: Status / overview page?
Post by: brononius on November 02, 2012, 07:47:06 am
one 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...
Title: Re: Status / overview page?
Post by: tschak909 on November 02, 2012, 03:04:15 pm
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
Title: Re: Status / overview page?
Post by: polly on November 02, 2012, 03:26:58 pm
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
Title: Re: Status / overview page?
Post by: tschak909 on November 02, 2012, 03:38:08 pm
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
Title: Re: Status / overview page?
Post by: brononius on December 04, 2012, 02:49:11 pm
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:

http://oniriabe.dyndns.org:1111/status/ (http://oniriabe.dyndns.org:1111/status/)
Title: Re: Status / overview page?
Post by: lvikstro on January 02, 2013, 07:49:40 am
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
Title: Re: Status / overview page?
Post by: brononius on January 02, 2013, 08:03:53 am
My bad, should be back online...

A new package have been generated (only index and images)...



Title: Re: Status / overview page?
Post by: Techstyle on January 15, 2013, 04:35:36 am
I get a 404 error also
Title: Re: Status / overview page?
Post by: brononius on January 15, 2013, 07:44:45 am
grrrr,

I'll need to add that webfolder to my restore procedure.  :-[
Should be online again...


(and now, update my restore procedure...)
Title: Re: Status / overview page?
Post by: coley on January 17, 2013, 01:51:34 pm
tried to install this - the zip file is reported as invalid.
Tried on M$w and linux
Can you check?

-Coley.
Title: Re: Status / overview page?
Post by: brononius on January 17, 2013, 02:02:11 pm
tried to install this - the zip file is reported as invalid.

Give it a try with:
Code: [Select]
tar -zxvf status.zip
Title: Re: Status / overview page?
Post by: coley on January 17, 2013, 02:24:35 pm
Give it a try with:
Code: [Select]
tar -zxvf status.zip

thanks that worked - maybe rename the file to .tgz might be a hint at the archive type  ;)

-Coley.
Title: Re: Status / overview page?
Post by: brononius on January 17, 2013, 02:33:49 pm
Done...

And link is updated in first post...
Title: Re: Status / overview page?
Post by: golgoj4 on February 15, 2013, 01:56:45 am
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
Title: Re: Status / overview page?
Post by: 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...
Title: Re: Status / overview page?
Post by: golgoj4 on February 16, 2013, 03:41:40 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
Title: Re: Status / overview page?
Post by: brononius on February 18, 2013, 07:55:43 am
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>";
Title: Re: Status / overview page?
Post by: iberium on March 04, 2013, 03:05:37 am
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.
Title: Re: Status / overview page?
Post by: brononius on March 05, 2013, 01:51:38 pm
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
Code: [Select]
Europe/Brussels
Title: Re: Status / overview page?
Post by: iberium on March 05, 2013, 09:33:00 pm
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.
Title: Re: Status / overview page?
Post by: phenigma on March 07, 2013, 05:51:25 am
City/Town information is stored in lmce and can be pulled from the database for use in scripts.

J.