• Welcome to TodayPlus Boards v2.
 

if online doesn't work?

Started by Alex|, March 22, 2005, 09:07:51 AM

Previous topic - Next topic

Alex|

Hi,

writing a bit TD+ skin code and I wonder how to use if,online
I can't get it to be true - the ppc is connected via usb and it _is_ online.
Or does this condition gets only true while (active)syncing?! Cause I'm searching for a posibility to update/refresh TD+ automatically _without_ AS...
So how to check if online?

Broesel

Well, I think there is no command, that real checks, if you are online.

My opinion is, the if,online ... command is referring to the button-command,
that sets rss-links to "online", so if you click on an RSS-Link, it opens
a pie-window and does not search for local saved pages.

Regards Broesel

Alex|

Hmm... ok :(
I'm trying not to be too frustrated ;)
Had the idea to check online state and then refresh the (weather)data...

Wichtel

To understand how to work with "if online" study the RSS Region of Hammerskin.  :wink:
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

Alex|

Hmm, help me a bit...
I can't find the trigger of that condition. Is if,online a system related function or is it just triggered by a button?
I read the rss section but it seems I'm blind...


Btw - I'm the german linux guy from ppc-welt who totally messed up your hammerskin ;)
Just preparing a post in the Skins forum on ppc-welt...

---
edit

Ah ok, found it
->
RSS / Weather
30 -> Online. Changes rss links to online.
31 -> Offline, Changes rss links to offline.

So it is manually triggered...

But then I want to know when exactly poweron is used?
Does this exist in the current TD version?
In case I could get this working I would be happy ;)
poweron,-1,7,-1

ZapMe1

Quote from: AlexlBut then I want to know when exactly poweron is used?
Does this exist in the current TD version?
In case I could get this working I would be happy ;)
poweron,-1,7,-1

I'm not sure anyone has got "poweron" to work correctly !!
This Thread that I posted awhile back, may help with what you're looking for !!  :)

To also update the "city.txt" info, you can add the info and EXE's that UK_Skinner made, found Here !

If you decide to use this, just ask if you need any help !!!  :!:
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

Alex|

But you do only start an exe file, don't you?
I'm trying to do a refresh of TD+ (with is done via button command 7).

ZapMe1

Yes, this process does start an exe, but will do the same as if you used button command-7..  If you add the city.txt to radar.exe, then all current information is updated !!
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

Alex|

Ok, have tried the radar.exe - with that I can update the city.txt automatically but there's still the question how to update TD+ - because the plugin does not know about the new file and even when I switch the plugin pages there is new weather information but the 'last update' time is still the old one (and in case it was hours ago the weather page does not show all 4 days...).

Broesel

Quote from: Alex|Ok, have tried the radar.exe - with that I can update the city.txt automatically but there's still the question how to update TD+ - because the plugin does not know about the new file and even when I switch the plugin pages there is new weather information but the 'last update' time is still the old one (and in case it was hours ago the weather page does not show all 4 days...).

The problem is, that TodayPlus writes a file for every cityx.txt called
cityx.txt.time, where the updatetime is stored. We didn't find out the
format of the file until now, so we are not able to write this one from an
exe-file or script. Therefore you have to do both updates (TodayPlus-refresh
and update via radar.exe) to get the right updatetime. But I don't think,
that it is possible to do this automatically (maybe uk-skinner has an idea)

Regards Broesel

Alex|

If there will ever be a solution to that I would be happy to test it out ;)
I wrote a workaround with nscriptm that simulates a pen tap on the needed buttons... doesn't look quite professional, what? ;p

Broesel

Quote from: AlexIwrote a workaround with nscriptm that simulates a pen tap on the needed buttons... doesn't look quite professional, what?

Well, if it works, why not ? There is no one professional on this board and
everything we get here is a compromise. Does your script do what you
want after synch or does it notice, if the ppc is online ?

Regards Broesel

Alex|

What I want - update TD+ and load new rss data with pocketrss.

At the moment the script is started manually with a hardware key. But it could be also started with these PHM Power Toys linked above in the other post. I'm trying to start it remotely but that doesn't seem to work (no idea why)
The script itself focuses the today screen, taps the TD+ main page and then the refresh button. While TD+ refreshes, the script starts pocketrss and reloads its rss data.
Contra - during that time the pda is in use - you cannot work with it
Pro - you don't have to do it all yourself and the script can be expanded on any other app.

Right now it's the best I can do. I'm running on linux here without ActiveSync - so I have to take what I get ;)

uk_skinner

Quote from: Alex|What I want - update TD+ and load new rss data with pocketrss.

At the moment the script is started manually with a hardware key. But it could be also started with these PHM Power Toys linked above in the other post. I'm trying to start it remotely but that doesn't seem to work (no idea why)
The script itself focuses the today screen, taps the TD+ main page and then the refresh button. While TD+ refreshes, the script starts pocketrss and reloads its rss data.
Contra - during that time the pda is in use - you cannot work with it
Pro - you don't have to do it all yourself and the script can be expanded on any other app.

Right now it's the best I can do. I'm running on linux here without ActiveSync - so I have to take what I get ;)


If I understand your intention clearly, you wish to run a script(or exe) that can trigger the pocketrss to run when TP uodating, right?  Can this script can be run in the file explorer?  If it can, then add it to the Tpdelay and it will be run while your TP update.

Alex|

No - if I understand _you_ right ;)

I do not have activesync - so TD+ never gets the sync trigger to refresh itself automaticaly. I always have to tap the refresh button because there is no such option like 'refresh on online connection' - just that 'refreh on sync'

With pocketrss it is the same - it can only update automaticaly when AS syncs with the pda.

I tried to find out how to trigger/emulate the ActiveSync signal that causes pocketpc apps (in general) to update but I had no luck so far.

With that little nscriptm script I do simply automate the pen taps on the screen.

All the exe files mentioned here in forum can't help me because they all depend on either refreshing TD+ by pressing the button or refreshing TD+ by syncing with AS.

I don't want a file that starts several other apps together with TD+ - I want a file that updates TD+ when an online connection is established.