check if a variable from tasker is set - Zooper Widget General

Is it possible to have a conditional in Zooper widget, whereby it checks if a variable is set or not set, i.e. empty or not empty.
I have 2 variables created in Tasker for cell data usage. Only 1 variable is set at a time, depending on data usage?
Id like to display the results in a zooper widget...what im looking for is something like:
If #TDataGB# is set then display #TDataGB# or else display #TDataMB#

Valiceemo said:
Is it possible to have a conditional in Zooper widget, whereby it checks if a variable is set or not set, i.e. empty or not empty.
I have 2 variables created in Tasker for cell data usage. Only 1 variable is set at a time, depending on data usage?
Id like to display the results in a zooper widget...what im looking for is something like:
If #TDataGB# is set then display #TDataGB# or else display #TDataMB#
Click to expand...
Click to collapse
You could try the following conditional $#TDataGB#=?#TDataMB#:#TDataGB#$
Not a 100 percent sure if it will work though. Just give it a try and see if it does

Related

Stop location check completely and clock issue

Hi guys,
I am trying to figure out how to get rid of My Location from my clock and from the weather tab completely. I have tried taking off My Location in the setting and I have checked "Automatically decline location service". But I still have My Location in the clock and weather tab.
The reason I want to get rid of it is because my phone jumps 1 hour ahead at least twice a day. I have to change it back to my time zone by touching on the clock.
Also is there a way of stopping the flip back graphics of the clock?
Cheers!
Hi,
to get rid of my location from weather you have to set to 0 the following key in registry:
"HKCU\Software\HTC\Manila\weather.EnableCurrentLocation" (dword)
to instruct the clock not to use my location at all but the city you manually set you have to uncheck "automatic change time zone and clock" in phone settings, time zones tab.
hope this helps,
Radu
unzip and copy file to windows directory to stop clock flip.
cool thanks alot guys!
unchecked those settings, see how it goes
nradu said:
Hi,
to get rid of my location from weather you have to set to 0 the following key in registry:
"HKCU\Software\HTC\Manila\weather.EnableCurrentLocation" (dword)
to instruct the clock not to use my location at all but the city you manually set you have to uncheck "automatic change time zone and clock" in phone settings, time zones tab.
hope this helps,
Radu
Click to expand...
Click to collapse
Hey, i'm using an Energy Rom and I don't see the time zone setting anywhere on the phone...is it disabled for some reason? (HTC tilt2)

[APP-DEV] RCAgent - GPS Tracker

Hey guys,
I need few brave people to [beta] test my GPS Software - A program similar to RemoteTracker. Information about it is written on my personal site at http://www.mkexchange.com/rcagent (Or should i have copied the whole thing here?)
The software currently has no privacy protection (no passwords, no configurable way of specifying the upload location, etc) - everything is recorded in the "Debug Log" for testing and debugging purposes. This is not a final "stable" version, your device could blow up! - probably not though
I wrote this for personal use but i wouldn't mind sharing and give back to the community
Requirements:
- Someone who knows what they're doing.
- Device with GPS running WM6+ (with Compact Framework 2.0... maybe 3.5 in the future)
- Unlimited Data/SMS plan - so it doesn't end up costing you a fortune while testing. Mainly SMS is used for comms - data is optional.
- Enough space on the External Storage/SD Card - for debug log, track files, etc.
- The software has no visible interface so you will need another phone to send the messages from.
Let me know if you are interested.
I'm using SPV M700 (HTC P3600) permanently connected to the car battery to test this.
I'll put more info about it, if there's enough interest.
-----------------------------------------------------------------------------------------
Update: 2011-07-12
I have attached the latest build of the program to this post. Use this to Install the program.
Before you do anything, please read, understand and only continue if you accept the following sentence/paragraph:
YOU USE THIS SOFTWARE AT YOUR OWN RISK, I AM IN NO WAY RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOU, YOUR DATA OR YOUR PHONE ARISING FROM THE USE OF THIS SOFTWARE EITHER DIRECTLY OR INDIRECTLY.
1. Before you install this software, please backup your data.
2. Set the GPSID (or "External GPS") configuration in system settings to the correct hardware port. This is important, otherwise the program will not be able to get any GPS data and may not work correctly.
3. Install the attached cab
4. You will need to manually activate the program from the programs folder ("RCAgent (Beta)"). If you wish to remove it, please remember to kill the process/program using task manager before uninstalling.
5. Once installed and activated you might want to switch on the "Monitors". You can activate most of them together by sending an SMS Command "@rc monitors on";
Tip: Send "@rc version" to get the version information or to check whether it's running and responding to commands.
Check post #2 (or here: http://www.mkexchange.com/rcagent-ug) to see how to use all the commands. Remember this is a beta/alpha software so it might have bugs or compatibility issues as i've only tested on two devices.
Update 2011-07-13
Please note, RCAgent.log file is limited to 100mb to prevent it from taking all the space on the external storage card. Once it hits 100MB, it will empty the file automatically to make way for new data. Make sure you backup this file if you want to keep its contents.
The Setup
I'll use my current setup as an example.
I have the program installed on the SPV M700 (HTC P3600 - HTC Trinity) which is connected directly to the car battery. The connection is via a 3way cigarette lighter adapter with a USB port, so there was no need to modify the smartphone; I simpley used the normal mini-usb cable to keep it permanently connected inside the (back) boot of my car (next to the spare wheel).
I've installed one of the stable and "light" version of a custom rom got from the www.xda-developers.com forum.Once the program was installed and the device is set-up for GPS (GPSID configuration) and data connection, it's ready for commands.
On the other side, I have an Android phone which i use to send sms text commands.
Inside RCAgent
The initial idea was to have multiple "Agents" listening on different services; one agent to monitor and respond to SMS commands, another agent for Email commands, another for Twitter status updates, etc. All of these "Agents" would run simultaneously depending on user preference and settings. All commands are held in a single FIFO (First-in-first-out) queue for later processing.
Due to limitations on the platform and time restrictions, i have only managed to complete the SMS Agent and a "Debug Agent", which is basically a visible interface on the device to simulate SMS commands - The "Debug agent" is switched off when the application is deployed (i.e. on "Release" build).
The application also has what i call "Monitors" which actively monitor the battery level, current location, speed, etc. These monitors can be switched on or off individually and will accept parameters to configure its variables.
It also currently uses GPSID (GPS Intermediate Driver) to retrieve the location from the GPS hardware. The platform needs to be configured to use the correct port, otherwise the program wouldnt receive any data.
There are plans to implement an alternative GPS access method using Serial ports but i was having some problems with the SerialPort class in the emulator while testing. In the meantime GPSID is the preferred method for majority of the cases.
GPS signal and location information sent from the chip is not always accurate due to signal noise so the application has some tolerences set. In my tests, the speed was also not accurate - e.g it would claim its moving at 2.6knots while it was idle.
The GPS location is deemed to be valid when it meets two conditions; the Horizontal Dilution of Precision (HDOP) is less than 5.0 and there is a minimum of 4 "fixed" satellites.In addition, Internally the application "buffers" some valid locations before acting on the data, depending on the monitor (some capture 10 locations, some 20, etc). I found this to be the best way to ascertain the current location/condition despite some drawbacks.
Currently, most of the settings are saved in the external storage in an XML file. Only the parameters for the monitors are currently saved to this file, the application does NOT switch on the monitors when the program is restarted/rebooted.
All commands are formatted similar to a console based application.
The replies are sent to the original sender - one instance for each sender. This means multiple alerts can be set for each sender and each sender being able to configure the settings in isolation.
Example: Sender 1 would want to be notified when battery level reaches 40% percent, while Sender 2 may want to be notified when it reaches 20%. Both will be alerted when it reaches the set level.
Monitors and alerts
The following monitors are currently implemented:
Battery Level Monitor (bmon)
Parameters: switch on/off, Alert level in percentage
Default: alert level set to 20%
Alerts the sender when the battery level of the device drops below the alert level. When the device is charged above this level, another message will be sent to indicate this.
Geofence Monitor (gfmon)
Parameters: switch on/off, alert hours, radius in km, latitude and longitude
Default: alert hours set to whole day (00-00), 1km radius, current location
When the monitor is switched on, it will wait for couple of valid GPS Locations so that it can determine the current location and set it as its virtual "fence". The default "fence" is set to the current location at a radius of 1km. When the device moves outside of this fence, the sender (who switched ON this monitor) will receive an alert message. Another alert message will be sent when the device/car comes back inside this fence.
The fence can be set manually by specifying the radius, latitude and longitudal coordinates.
Alert hours - this can be set so that alerts are only sent at a certain time in the day. For example, I would only want to be alerted if the car moves outside the fence between 10pm till 7am (10pm-7am) while i'm sleeping to warn me of theft.
To keep things simple, only hours can be specified (no minutes or seconds). The start and end hours can be specified as 24-hour components, separated by a dash. E.g 21-7 would be 9pm to 7am (the following day).
Movement Monitor (gmmon)
Parameters: switch on/off, alert hours
Default: alert hours set to to whole day.
This generates two alerts (like most of these monitors). One when the vehicle (i.e device) start moving and another when it stops moving. Like the Geofence monitor, the alert hours can be set in the same format.
Speed Monitor (gsmon)
Parameters: switch on/off, speed alert level
Default: 50knots speed alert level
Alerted when speed exceeds the configured level or the default of 50knots ( ~57mph, 92km/h) and another when it falls below this level.
Geo Area Monitor (gamon)
Parameters: switch on/off, radius in km, latitude, longitude, name
Default: None
This monitor is similar to the geofence monitor in its operation but it allows specifying multiple areas. Each area can be registered by specifying the latitude, longitude coordinates, the radius and a human-readable name/label. When the car/device enters one of these areas, it will alert by sending back a message with the current coordinates, along with the information about the area that triggered it.
Example use: I usually get picked up and dropped off from work so I've set one "area" on this monitor to the location of my workplace. When i'm expecting someone to pick me up from work with my car, i will be alerted when the car arrives in the vicinity so that i can start preparing to leave.
Tracks Log Monitor (tracksmon)
Parameteres: switch on/off, log duration
Default: Log for 10 minutes.
This oddly named "Monitor" will generate track/path files saved to the external storage card (currently KML format only). When it is switched on, it will log for the specified number of minutes (10 minutes by default) before automatically switching off and saving the track information to a file.
Phone Call Reboot Monitor (crmon)
Parameters: switch on/off, phone number, number of rings in seconds
Default: Sender's number, 15 seconds of ring
Another oddly named "Monitor" will basically reboot the phone by receiving a phone call. The Monitor will wait until the specified number (sender's number by default) calls and let it ring for set number of seconds (15 seconds by default) before automatically rebooting the device.
The reason for this monitor is; in case the messaging system hangs and is unable to receive any sms text messages/internet/email, the phone may need to be rebooted. In the absence of these services, phone calls usually still work so this was implemented to signal a reboot and hope the device start working again.
The Remote Commands
"@rc" is the prefix for all SMS commands that will be intercepted by the program. Commands and parameters are separated by spaces and are all in lower case.
version - Gets the version of the currently running program
Parameters: None
Example: @rc version
Response: Version of the program.
alarm - Sets the volume to high and plays alarm5.wav from the \Windows directory. Volume level is restored after playback.
Parameters: Repititions (default 3)
Example: @rc alarm 4
Response: N/A. The audio file will be played 4 times.
gp - Get Position - Gets the current location (if available within 5 minutes)
Parameters: "false" to not apply GPS tolerances (i.e a location will be returned even if HDOP is over 5.0 and satellite count is less than 4).
Example: @rc gp false
Response: Current location, even if it's not validated by internal tolerances/rules. Information may be unreliable.
Example 2: @rc gp
Response: Returns a valid location if its available within 5 minutes or a failure message if no valid location is received from the GPS chip.
More parameters will be implemented later, to specify length of timeout and the com port number.
callback - Try to call the senders number automatically. This may be useful if you want to hear whatever's going on in the surrounding area.
Parameters: Phone number
Example: @rc callback
Response: N/A. It will try to dial the number that is specifiedor by default, call the number that sent the command.
reset - Reboot/restart the phone
Parameters: None
Example: @rc reset
Response: N/A. It will force a reboot
exit - Exits out of the program, all monitors switched off.
Parameters: None
Example: @rc exit
Response: N/A. It will switch off all the monitors and exit out of the program.
webupdate - Will download the updater file which will quit the program once an update is available and has been successfully downloaded. Currently, automatic update is only available through my website.
Parameters: None (yet)
Example: @rc webupdate
Response: A text message to indicate whether the updater file was downloaded and executed. Once the updater is active, it will download the latest version of the program and kill the currently running program and restart the new version automatically. Currently, no messages are sent to indicate whether it was able to execute the program. It will, however, add a note in the next response if the app was updated.
monitors - Batch operation on the monitors. Switch all on/off/reset/status/etc.
Parameters: on/off/reset/status
Example: @rc monitors on
Response: It will respond with the monitors that were loaded and switched on.
Note: 2 monitors are currently excluded from this list and will not be switched on. Area Monitor and Tracks Monitor will need to switched on manually - this is by design - which i may change in the future. This behaviour can be changed from within the XML settings file (set "OnByDefault" to true).
msg - Sends a message to the specified number/contact via the device. Will "Echo" by default (message will be sent to the sender).
Parameters: Recipient phone number, message
Example: @rc 07800000000 This is a test
Response: It will send the message "This is a test" to07800000000
Note: If the number is omitted, it will be sent back to the sender.
ftpdl - Debug log sent to the set FTP address (currently fixed).
Parameters: None (yet)
Example: @rc ftpdl
Response: A message will be sent back to indicate success or failure
bmon - Battery Monitor settings and status
Parameters: on/off/status/reset, level
Example: @rc on 10
Response: The monitor will be switched and a message indicating that the alert level was set to 10%
Example 2: @rc status
Response: A message indicating whether the monitor is active and the current alert level
crmon - Call Reboot Monitorsettingsand status
Parameters: on/off/status/reset, phone number, number of rings
Example: @rc on07800000000 10
Response: The monitor will be switched on and monitor all incoming phone calls. Once a call is received from07800000000and rings for 10 seconds, it will force a reboot.
Note: "status" will send a message back with information about its current settings.
gfmon - Geofence Monitorsettingsand status
Parameters: on/off/status/reset, alert hours (default: whole day)/radius in km, latitude, longitude
Example: @rc gfmon on 0.5 55.12345 -2.12345
Response: This will switch on the monitor, set the latitude (55.12345), longitude (-2.12345)and radius (0.5km or 500 metres) of the virtual "fence". A Message will be sent back to indicate this new information.
Example 2: @rc gfmon reset
Response: A message sent back to indicate settings were set to defaults and a new virtual "fence" will be set once a valid location has been determined (with the default radius of 1km).
Example 3: @rc gfmon on 21-3
Response: It will set the alert hours of 9pm to 3am (the following day). Alerts will be generated if they happen between these times.
gmmon - Geo Movement Monitor settingsand status
Parameters: on/off/status/reset, alert hours (default: whole day)
Example: @rc gmmon on 9-17
Respone: Monitor switched on with alert hours set to 9am to 5pm.
gsmon - Geo Speed Monitor settingsand status
Parameters: on/off/status/reset, speed limit/level in knots
Example: @rc gsmon on 60.8
Response: Monitor switched on, with speed alert set for 60.8 knots (or 70mph).
gamon - Geo Area Monitor Settingsand status
Parameters: on/off/status/reset, radius in km, latitude, longitude, name/label
Example: @rc gamon on 0.556.12345 -3.12345 Some random location
Response: A new alert area (with latitude of56.12345, longitude of-3.12345, radius 500 metres and the label "Some random location")will be added to the list. When the device enters the area, it will send a message with the area information and the current location (along with the distance) and another message when it leaves the area.
Note: "@rc gamon status" switch will send a message back with the list of registered areas.
trackmon - Track Monitor settingsand status
Parameters: on/off/status/reset, max minutes for log
Example: @rc on 20
Response: The monitor will be switched on and will try to capture locations for 20 minutes. The track file (currently KML format) will be saved in the external storage with the current time and date as the filename. The file can be uploaded with the "upsdfile" ("listsd" will list the file names) command below (Warning: it will currently only upload files to my website). This KML file can be imported into Google Earth to plot the path.
cmd - Special sub-commands - cmd by itself without any parameters will return a list of available commands
cmd uptime - gets the uptime of the currently running process (RCAgent)
cmd deldl - Deletes Debug Log file
cmd dloff - Debug Log switched off - no data written to file
cmd dlon - Debug Log switched on
cmd ction / ctioff - Switches on/off cell tower information in every message
cmd listsd - List SD - Lists the files in the root of the storage card and their size - Warning: might be a long list.
cmd ftpsdfile - FTP SD File - Sends the specified file to the set ftp (currently, it will only upload to my ftp)
cmd upsdfile - Upload SD File - Uploads the specified file to the set website address (currently, it will only upload to my website)
cmd updl - Upload Debug Log - Uploads the Debug Log file to the set website address (currently, a folder on my website)
cmd help - A lengthy description of each command.
* For Monitors: "on" and "off" options will switch on/start and off/stop the monitors, respectively. The "Status" option will indicate the current status and settings. And finally, the "Reset" option will set all the settings of the monitor back to its defaults values.
** For sanity, long messages are truncated to a maximum of 5 messages (160 characters x 5).
I can take this for a test drive.
My device is a Touch Pro 2 on Verizon network (CDMA). Get pretty good GPS. Also have 16gb SD card so should be able to write the debug log files as you are looking for.
Let me know.
Thanks.
i'll try on hd mini...
Thanks guys.
Hope you realise this software has no visible interface? You will need another phone to send the messages.
I'm compiling a little user guide over the next few days so you'll be able to use it. I've put it on my website for now (don't worry, its a personal site, no ads or anything) so i can update it from anywhere. Once complete, i'll probably paste it all here.
Stay tuned!
Okay guys, i've updated everything here.
Please give me your feedback.
Remember to use a good (preferably unlimited) SMS/text/data plan for this so it doesn't bankrupt you!
For testing purposes you may want to consider allowing interaction on the app-installed phone. I dont have a second phone.
tq
I was debating whether to keep the "Debug Agent" active and thought it would be pointless for the purpose of this app ("remote control...") and may not be useful for real-life [beta] testing.
But, you can send the commands to your own number and use it that way.
mk27 said:
I was debating whether to keep the "Debug Agent" active and thought it would be pointless for the purpose of this app ("remote control...") and may not be useful for real-life [beta] testing.
But, you can send the commands to your own number and use it that way.
Click to expand...
Click to collapse
I'll try that out & revert.
Thanks
Well guys, do you have any feedback for me?
I'm instal and testing
RCAgent 1.0.4210.39687
HTC s740 ROM 1.12.402.0 10/25/08
Radio 0.24.30.24
Don't work.
I can not set the GPS COM port.
The program uses GPSID.
In system settings, there should be an icon for "External GPS" (or GPS Settings, or might be something else depending on the firmware). You can set the port using that.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
don't work
I've attached the GPSID settings program. Use that to set the hardware port and select "Manage automatically".
I used this program, but it still does not work.
I checked all configurations.
The problem is that except for the GPS receiver does not turn on. Neither nor GPSID RCAgent not start the GPS receiver.
Programs Navigation (maps) work very well.
dr_Henio said:
I used this program, but it still does not work.
I checked all configurations.
The problem is that except for the GPS receiver does not turn on. Neither nor GPSID RCAgent not start the GPS receiver.
Programs Navigation (maps) work very well.
Click to expand...
Click to collapse
Interesting. Are you willing to send me the RCAgent.log file for me to analyse?
I change the phone. Now working.
Can you add to the sms link to a map with GPS/CELLID coordinates?
Using it. Loving it.
Hi mk27,
I am using RCAgent in in LG-GM750 WM6.5 in my car since 25th March 2012 and loving it. However I would be interested to know if you are still working on it. I would love to see updates, gprs and more functionality added. It seems to respond quite well through SMS so definitely working. Today I texted me that the car was moving over the 50knots speed limit and then again that it was under the speed limit.
It would be good to see an email being sent, or location updates on a map. May be as someone suggested, the sms could be in a google maps format.
Are you planning to make it open source at all?

[Q] Zooper data inaccurate

#NTMTHM25# shows 5.0GB.
I know this is inaccurate because MyVerizon shows 2.5.
My billing period starts on the 25th.
The widget worked perfectly until the first of the month when it had a huge spike.
#NTMTHM1# shows 6G which is wrong.
#NTMTHM2# shows less than 1G which is accurate.
I posted a service request on zoopers site. All I got was an email reply with a description of how this tag functions, I.e. change the number to reflect start of billing period.
Any suggestions?
I know this function works off of a cache within Zooper rather than a log stored on the device itself. Is there a way to reset the Zooper cache?
Thanks

[Q] Mobile data in Zooper

Hi,
I need help with set mobile data from operator in Zooper. I have tariff from 16.th to 15.th every month, I want to zooper counted my mobile data monthly from 16.th.
I set #NTMTHM16# but it doesn´t work, mobile shows 200 MB and Zooper shows 5 MB.
How do I set it work?
thx
Nobody knows?
Hey mate,
I've tried the same thing you did and it works normally for me, it shows the same usage of MB as it does in Setting > Data usage, so I don't know what's the problem. Just be sure that you are writing it correctly in Zooper -> #NTMTHM16# . I'm using ZW PRO v2.42.
I have Zooper Pro 2.44 from GPlay. I will wait for new period of month (16th - 15th), because i set up it during the period.
Has anyone figure out what each character of these network data codes do?
#NTMTH1#
NT=network data
T/W/M=Total/Wifi/Mobile
T=???
Last characters could be:
H1/H7=past day / past 7 days
OR
M/MM/MM25=this month / this month? / since 25th
I can't get mine to match up either though. I have:
#NTMTH1# which seems to show today's data correctly for me "17MB" (matches android data usage)
#NTMTM25# shows "1083" but my data since 25th should be 88MB
#NTMTMM25# shows "118" but my data since 25th should be 88MB
Then the question of units, some show MB/KB which looks nice, but it makes progress bars misbehave since they can't differentiate KB and MB.
Anyone clear this all up?
My period begins on the 5th and I use #NTMTHM5# and it seems to do the job for me
Does it match the android settings - data usage screen?
For me right now, Data Usage shows 243MB used while Zooper widget shows 168MB.
It generally does match (or closely approximate) what it says in Data Usage, however I have noticed that it occasionally resets for reasons I have yet to figure out. I think it might be tied to some reset events (manual/battery pull/battery empty), but this is not consistent at all. If I keep a decent charge in it, or only change the battery before it gets below 5% I do not seem to get this data stat reset.
It might be that you had a similar reset of the data variable in Zooper. I would be curious to see if the gap between Zooper and Android remains consistent or widens.
I also noted that the MyATT app which shows data usage differs from the Android Data Usage and Zooper as well
Note: This is for the users who have Nova Launcher installed
My thought is you can create a dedicated icon in the Zooper Widget and go to 'tap on action' in the creator mode. after selecting that option go and find nova activities. and find the settings icon of your phone(i do not care about the model of the phone you might have.). in the nova action menu you'll see all of the apps that your phone currently have(including the system apps). also keep in mind that these icons are displayed in vertical alignment. and each icon is a drop down menu and when you select the icon you want the will be a sub icons and names of the particular actions. in the setting icon, find 'mobile data usage' or anything similar. and select that option. after that save your current settings. go back to the home screen and test it out for yourself. IF YOU DON'T SUCCEED TRY TRY TRY TRY TRY TRY AGAIN.

Zooper widget not getting data/wifi usage

Hi,
I have a widget that displays
#NTMTH1# and #NTWTH1#
But no matter how much internet is used, these text field return 0B.
How does zooper obtain data usage from android and how can I debug this?
built in data usage in settings is still working.
What phone model are you on?

Categories

Resources