Author Topic: Status / overview page?  (Read 39060 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Status / overview page?
« Reply #45 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>";
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

iberium

  • Veteran
  • ***
  • Posts: 84
    • View Profile
    • Innovative Sight & Sound
Re: Status / overview page?
« Reply #46 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.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Status / overview page?
« Reply #47 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
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

iberium

  • Veteran
  • ***
  • Posts: 84
    • View Profile
    • Innovative Sight & Sound
Re: Status / overview page?
« Reply #48 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.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: Status / overview page?
« Reply #49 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.