View unanswered posts | View active topics It is currently Wed Jun 19, 2013 1:26 am



Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
 Weather remake 
Author Message

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Weather remake
Yes, it works. Have you already made some free space, because it might be a problem? If it's something else, can you post results of telnet commands?


Fri Jun 11, 2010 4:38 pm
Profile

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
Dirk wrote:
mikka wrote:
titooo wrote:
Personally I'm not trying to find new things for pohd lately because I lost the motiviation when I realised that request forum is useful, ACR dont implement on official firmwares new features done by users (or they do it too late, i.e metafeeds) and last but not least we dont get too official help neither colaboration from official acr team(we just get it from the mods)...


I know exactly how are you feeling, because I'm also losing slowly motivation. I asked about utility for compressing images - I get no answer. I asked about transparency in main menu and allow users to customize all colors (because configuration file is included in DvdBinary) - again no answer. Few days ago I asked to bring original configs to source code and you know what - still nothing.

Frustration, frustration, frustration - all you can get.

And like you've said: no information, no documentation, no support from ACR. Only 'Hey, take this new firmware with the latest YAMJ and don't ask any questions.'

I'm getting tired of this.


Please guy`s i would really find it a miss if you guy`s would lose interest,
because for all users out there you guy`s are really making the pohd very nice,
and who knows in due time things will be implemented,
one can only hope they will ;)

just you guy`s make so much nice software and apps for the pohd,
and explaining ppl how to install it.

We all like it a lot!!!!

So please keep up the good work.

;)



+1, but you know this Mikka!! Good work!

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Sat Jun 12, 2010 6:00 pm
Profile WWW

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
Anyone would like to make a little how to.?

I'm trying to:

-Get 3 stations to display the weather for 5 days (Ede [728940], Charlotte[12769526] and Farsano[715321])
-Respace the results so they don't overlap
-Show 2 pictures, one for day and one for night automatically (like gdevries).
-Show the moon fase for the three cities

Now i -kinda- know how to edit the script (not totally, so an example script would be nice).
But i don't know how to insert it into the POHD...

I assume i would do it through Telnet (which i know how to access and give simple commands), but i don't know how to edit programming directly in Telnet, or how to insert edited scripts....

Anyone want to write up a little HowTo in this thread, and add a complete example script based on the above case?

I'm sure it would help a lot of users to modify the weather to their wishes!
Thanks In Advance!!

Groetz van Koets.

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Sun Jun 20, 2010 12:35 pm
Profile WWW

Joined: Sat Apr 24, 2010 1:29 am
Posts: 16
Post Re: Weather remake
Hello Koets,

Indeed I´am working on something like you mentioned:

achievements so far:

From weather menu you get a next menu whit three pictures representing the area you want to know the weather from, in my case Almere, the beach (Atlantic ocean just above Bordeaux), The mountains (Austria, Hochkönig wintereich). of course you want other info at the beach (maybe water temps) and for Austria in my case snow heights on the skiing piste. This info is not provided by yahoo so I'm looking for another source for the data. (which till now without success). I also still trying to get some music playing during the presentation of the weather whit now success so far.

Anyway as far as my knowledge of moon phase is this one all over the north half off the world equal, actually also for the southern hemisphere it is the same but just the opposite of the northern hemisphere but i am not completely sure about this.

Maybe if you only want to know the weather you can make a first screen whit the current weather data from the three towns you want, and if you select one town you will get the 5 day forecast of this town, just a small idea.

Anyway if I have something worked (hopefully in about a weak) I will post it over here of course.

Greetings,


Sun Jun 20, 2010 5:16 pm
Profile

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
HEy gdevries, of course you are right about the moon cycle, it is (almost) the same all over the world, be it hours different, and on the left, on the right, laying down, or opposite.

It would be great if you could do this, i think the info for 5 days for 3 cities would just fit on 1 page.
(selecting a city might prove difficult...)

If you work it out, i would be really interested to read it!

(if you want to keep me up to speed of the progress, you can always PM me as well)

PS.
Does your script automatically switch between day and night, for the picture?

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Sun Jun 20, 2010 8:22 pm
Profile WWW

Joined: Sat Apr 24, 2010 1:29 am
Posts: 16
Post Re: Weather remake
Yes, it´s switching now at 20:00 and 7:00 I´m using the wunderground xml weather data for this, this one is providing me the correct (local) time in hours and minutes. Its also has the data for the moon phase which is a number between 1 and 30, so you have to store local the 30 pictures off the moon in different states.

for the moon-phase and different picture during day / night I ad this code between the script_replace tags:

Code:
      loadXMLFile("http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=Amsterdam,Netherlands");      
      uur=getXMLText("forecast","moon_phase","current_time","hour");
      minuten=getXMLText("forecast","moon_phase","current_time","minute");
      maan=getXMLText("forecast","moon_phase","ageOfMoon");
      locatieString="Conditions for Almere, NL at " + uur + ":" + minuten + " local time";
      maanUrl="./IMS_Modules/Weather/image/moon" + maan + ".jpgx";
      
      if (uur > 19)      {
                     backgroundlink = "./IMS_Modules/Weather/image/almere.jpg"; 
                     textcolor = "250:250:0";
                     }
      else if (uur > 7)   {
                     backgroundlink = "./IMS_Modules/Weather/image/skyline.jpg";
                     textcolor = "25:25:0";
                     }
        else                {
                     backgroundlink = "./IMS_Modules/Weather/image/almere.jpg";
                     textcolor = "250:250:0";
                     }


As you can see I also give the textcolor a variable because on a dark image a dark text is hard to see and on a light image a light text.

further on I used the following code to put the background image on the and the location heather:
Code:
   <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100 backgroundColor=10:10:10><script_replace>backgroundlink; </script_replace></image>

   <text offsetXPC=20 offsetYPC=1 widthPC=60 heightPC=10 fontSize=30 backgroundColor=-1:-1:-1>
      <foregroundColor>
         <script_replace>
            textcolor;
         </script_replace>
      </foregroundColor>
      <script_replace> print(locatieString); </script_replace>
   </text>


and for the moon-phase you have to use this code:
Code:
   <image offsetXPC=80 offsetYPC=75.5 widthPC=7 heightPC=10><script_replace>maanUrl; </script_replace></image>   
   <text offsetXPC=80 offsetYPC=85.5 widthPC=15 heightPC=6 fontSize=23>
      <foregroundColor>
         <script_replace>
            textcolor;
         </script_replace>
      </foregroundColor>
      <script_replace> print("Moon phase"); </script_replace>
   </text>


To get all the pictures (including moon-phase) you can download the following file:

** sorry my webserver is not allowed me the share files, if you want to have this pictures just sent me a pm **

To copy the code to the playon I have used the following method:

whit windows i have created a map called test on the playon and in this map i have put the file myfavorites.rss

now telnet to your playonhd and use the following code:
Code:
 mount -o,remount,rw / && cd /usr/local/bin/IMS_Modules/Weather/scripts/map/ && rm -f myfavorites.rss && cp -f /tmp/hdd/volumes/HDD1/test/myfavorites.rss myfavorites.rss  && chmod +x myfavorites.rss && mount -o,remount,r / && cd /


The same trick you can do whit the images file which in my case is called weather_images.zip the code you should use is:
Code:
mount -o,remount,rw / && cd /usr/local/bin/IMS_Modules/Weather/image/ && cp -f /tmp/hdd/volumes/HDD1/test/weather_images.zip weather_images.zip && unzip -o weather_images.zip && rm -f weather_images.zip && mount -o,remount,r / && cd /


Hope I helped you and others a little bid whit this.

If somebody knows how to play sound (music) at a rss feed please share this info!

Greetings,


Last edited by gdevries10 on Mon Jun 21, 2010 1:46 pm, edited 1 time in total.



Sun Jun 20, 2010 11:22 pm
Profile

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
Wow G. Thnks for this nice HOwTo!!

As soon as i have a spare hour i'm gonna have a go at it!!

Will keep you posted.

Will also ask dev.team about the music!

Groetz!

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Mon Jun 21, 2010 9:59 am
Profile WWW

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
PS G., your link is broken...

Forbidden code 403, able to make connection to server but acces denied.

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Mon Jun 21, 2010 10:12 am
Profile WWW

Joined: Sat Apr 24, 2010 1:29 am
Posts: 16
Post Re: Weather remake
Hello Koets,

Sorry for the broken link, my hosting company seems to have problems whit sharing files (it´s a free one so .....)

I have three options for you:

1:
edit by koets: deleted due to privacy reasons

but possibly again a problem because of hosting company

2:
http://net2ftp.com/

at the website in the field ftp server: geertmarije.homeftp.net
and make sure you log in as Anonymous (check-box on the left).

The file whit the images is called weather_images.zip

3:
pm me, I will sent you the file by email

greetings,


Mon Jun 21, 2010 2:35 pm
Profile

Joined: Thu Nov 12, 2009 2:37 pm
Posts: 985
Location: NL and USA
Post Re: Weather remake
okay G,

got it (through yr ftp-site).
i deleted yr first link, because it linked me directly to yr personal site (leuke foto's ;) ).

i'm gonna try to get to it tonite...

thanks again!

_________________
"Success is never permanent, and failure is never final."

IomegaUltraMax1TB via firewire to gateway7330GZ_W7, wired to DraytekVigor2130Nrouter, wired to Playon!HD_and_Playon!HD2-1TB_FWr4585_beta/Playon!DVR_FW4585_beta, output via HDMI to LG-42PC1RR and via HDMI to LgHB695TZ_5.1


Mon Jun 21, 2010 5:39 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.