Related
Credits:
Foremost, let us all acknowledge Koushik for his brilliant "Sensors" library upon which most if not all non-HTC apps that use the G-Sensor, Light-Sensor, and Navi-Sensor are built, simply ingenious. Moreover, I would like to recognize No2chem for the NeuLed2 library which is an equally exquisite peace of code that allows access to the Diamond/Pro Leds. Without those two guys, accessing these advance interfaces on the diamond/pro would be inapproachable at best.
Reason: Since I bought my Diamond, I constantly thought HTC gave it a lot of sensors but nearly no .."Sense".
......... X-Sense ...........
* Hopefully, an innovaton & integration of RANDOM but needful features...
Features:
1. Courtesy Settings:
- Select Volume Profiles to activate on Face-Down & Face-UP events. Choose from: None, Silent, Normal, and Vibrate. You can also choose to suspend the Phone when its facing down (duh!).
- Automatically activate/deactivate the Speakerphone during phone calls depending on the phone's posture. In other words, if you're not holding the phone up then it will automatically activate the Speakerphone.
2. Notifications-Sense:
- IF there is/are any outstanding notification(s), the device will vibrate whenever you move it at customizable intervals: Missed Call(s), Voice Mail, and SMS only.
3. Stylus-Sense:- When the Stylus is in/out: Will play faint sound + Blink the Back button's light +/Vibrate. Moreover, the device will vibrate whenever you move it at customizable intervals.
- When the Stylus is out and the device is moved: Device will vibrate twice on every posture change + blink the Back button's light to REMIND you that the Stylus has not been placed back in. This goes ON until the Stylus is placed where it should be.
* Uses "in.wav" & "out.wav" files in the \XSense\ Dir; you can use whatever wave files for this.
4. General Settings:
- Polling Interval: From 200 to 3000 Miliseconds. This determines the rate at which the G-Sensor is polled. Lower values give higher response times and fluid operation at the cost of battery life & CPU utilization.
- Flash Navi Lights: Will blink button lights to notify you of Profile changes and Stylus In/Out.
- Vibrate on Events: Will induce very subtle vibrations to notify you of Notifications and Profile changes.
- Suspend when UP-Side-Down: Your phone will suspend if you hold it up-side-down (duh!)
- Light Navi Button When Suspended: Will do just that. This is an independent setting that turns ON the Navi button's light at suspend time, and OFF at Resume time (this is Event Driven, so no polling is involved). This feature really helps if, like me, you want to see where the damn thing is in the dark - before you launch it against the floor.
6. Installs to "\Program Files\XSense", and Creates 2 shortcuts:
"Start Menu\Programs\XSense" and "Startup\XSenseSvc".
Program Settings are saved to the Registry at "HKCU\Software\XSense\".
Use of System Resources:
1. Diskspace: 162 KB RAM footprint: 374-535 KB Battery: NOT observed.
2. CPU Usage: %0.29 Average. Spikes for 2 seconds to %2.7 - %8.5.
* Indicated CPU usage occurs ONLY when there is an EVENT (posture changed, stylus in/out Sounds playing,
etc)
Logic:
- During phone calls, All features are suspended except the Speakerphone-specific code.
- Program will respond to posture changes only 2 seconds after they have occured, this is to
avoid unintended operation ( as much as possible ).
- Vibration: The way I like it is in waves of 200 miliseconds length! I generally hate vibrations, so if you want it at 201 ms. you're welcome to make your own program and enjoy the merits of your personal taste.
- This prgram Registers Event Handlers for: "G-Sensor", "Incoming Call", "Phone Call in Progress", "Stylus in/out", and Power Manager events. DO NOT move it to Internal Storage, you have been warned.
Requirements:
.NET 3.5 + Diamond or Raphael.
Restrictions:
Only for the Diamond/Raphael (vis-a-vis, it will crash on any other device!)
Bugs/Limitations:
Knock yourself out...
Disclaimer:
This program is provided strictly on "as is" basis. It is intended only as a proof-of-concept. Although fully functional, it must NOT be considered for daily use. This software is very likely to compromise the integrity of your data as well as invariabley cause your device to malfunction in any way, shape, or form. Therefore, the developer shall be absolved of all responsibility towards testers and/or their computers & devices. While using this software you agree to be solely liable for all and any damages you do to yourself, your device, or any damn thing you possess and care for!
Release Notes:
- Download & Install the CAB
- Run the XSense from your Start Menu\Programs, customize to taste, and enjoy!
- IF you want it, download it from the Diamond section.
NOTE: Further releases/upgrades will NOT work on the Raphael/Diamond PRO.
wheres the cab?
Cab?!?
This program sounds sweet.. Im willing to give it a go, but no cab.
This is like the april fool joke for the wireless charging app. It's a joke, the app is too good to be true
/Closed
klasital said:
This is like the april fool joke for the wireless charging app. It's a joke, the app is too good to be true
/Closed
Click to expand...
Click to collapse
I fell for that too man, it was NOT funny tho! Its October btw..
shirreer said:
I fell for that too man, it was NOT funny tho! Its October btw..
Click to expand...
Click to collapse
And you still haven't posted the app...
Roger
96cobra said:
And you still haven't posted the app...
Roger
Click to expand...
Click to collapse
Released: On first post.
Release: available on the first post. Tell me what you all think (compliments/complaints)...
shirreer said:
Release: available on the first post. Tell me what you all think (compliments/complaints)...
Click to expand...
Click to collapse
can i have your permission to review this app on a video? i have a youtube dedicated to the FUZE but also other stuff
looks promising and nice
Nice but . . .
OK first off I love this program it works very smoothly, except for one thing, and I am sure this is a simple fix. I unzipped and copied everything to the root folder of my device. Started the application and it starts working, very cleanly I might ad. However the stylus function isn't working for me. I am sure it just has to do with the file of the wav, should I put these in any specific folder?
XERO_Racer said:
can i have your permission to review this app on a video? i have a youtube dedicated to the FUZE but also other stuff
looks promising and nice
Click to expand...
Click to collapse
Go right on man, and thanks for the "cheer up". Enjoy
jewill00 said:
OK first off I love this program it works very smoothly, except for one thing, and I am sure this is a simple fix. I unzipped and copied everything to the root folder of my device. Started the application and it starts working, very cleanly I might ad. However the stylus function isn't working for me. I am sure it just has to do with the file of the wav, should I put these in any specific folder?
Click to expand...
Click to collapse
Tell me more:
- Did the stylus-out/in sound EVER play?
- Did you change the original wav files?
- Is the phone's system volume (not the Ringer) loud enough to be heard?
Notes:
- The wav files (in.wav and out.wav) are supposed to be in the same directory as the program.
- The original wav files are subtle, they are meant to merely "hint" at you.
Glad that this app really works. Maybe in the next release you could add some settings so we can customize it as we wish. The only small problem that I encountered is that the phone doesn't turn back to loud mode when I flip it unless I push the wake button to turn the screen on. This can be annoying sometimes because I missed a call this way...
Good job on this app. It's really subtle but useful at the same time.
bedobela said:
Glad that this app really works. Maybe in the next release you could add some settings so we can customize it as we wish. The only small problem that I encountered is that the phone doesn't turn back to loud mode when I flip it unless I push the wake button to turn the screen on. This can be annoying sometimes because I missed a call this way...
Good job on this app. It's really subtle but useful at the same time.
Click to expand...
Click to collapse
Thank you mate. I intend to create a settings screen altough that would be both cumbersome and useless for the current feature-set except for the stylus sounds.
I am thinking of adding a launcher to the stylus events, perhaps a new note would open on stylus-out, then save+close on stylus-in.. who knows, eh?
As for the missed call......LOL... I think that's just the point ...Seriously though, WM devices cannot survive the battery strain if they don't sleep (suspend). So, we do with what we got
Cheers
only issue i am having is.. I would prefer not to have the navi lights on all the time... whether the phone is face up or down my navi lights are always on
Short Review
ok soo far i tested the app and i have to say is this is a real good app, only problems im encountering is the vibration is very very faint, but i guess thats ur deal of conserve battery life? theres no problem to it and besides...speaking of battery life, leaving the NavLight on and messing around with the app for 5 mins straight didnt even take a percent off of my battery, ill try for a more deeper battery challenge but anyways, heres a list of suggestions, pros and cons, btw this app makes my TouchPro look 5000 times more cooler too something ive been wanting on this phone
PROS:
-Courtesy Sense seems to be very effective
-doesnt kill my battery much(yet)
-not a CPU Heavy app, still can run TP flawless
-Stylus Sense is responsive
-not a memory heavy app
CONS:
-Response of every "sense" is very slow, takes like 2 seconds to switch
-Courtesy Sense can sometimes be out of control, can possibly switch the volume off and on since i have my TP in my vertical case(but that can be fixable i guess)
-Cant close the app(if user decides to) but theres a way to close it through task manager(not HTC TM though)
-Backlights dont light up anymore if app is in use
-Cant unmute unless you switch the device on
Suggestions:
-Make a settings menu where u can adjust the poll speed and sensitivity and what Senses you can turn Off or On
-Should make the Stylus notification light blink every 15-30 seconds or 1 min at the most
-Also to add on the Notifications Sense is the famous blinking LED Light whenever you shake the device
-Close/Exit option onto the app
-When the device's volume is set on silent or vibrate, the Common Sense should be turned off until the device volume is set back to normal
-and probably something crazy, the Party Light Mode, where you can make the lights blink with noise or fade different paterns or blink with some random pattern just for FUN lol
Overall Score 9/10 and thats my honest opinion...this is a great app especially in Alpha stage
Video Review coming up this weekend, ill be posting a link soon, thnx for the great app
Video Review
here ya go everyone, a review video courtesy of me feel free to subscribe if you like
http://www.youtube.com/watch?v=Ds2Brq8L_dY
XERO_Racer said:
here ya go everyone, a review video courtesy of me feel free to subscribe if you like
http://www.youtube.com/watch?v=Ds2Brq8L_dY
Click to expand...
Click to collapse
Bro, let me thank you for a VERY groovy flick, I enjoyed every bit of both your written and video reviews.
I must praise you further for a great job at a thorough & constructive critique. Your stylish review and suggestions are valuable and are noted with all due enthusiasm. I will try my utmost to reflect what I can on my next attempt - the Beta. Also, I will contemplate creating this "feast of lights" you're craving as a token of gratitude for your effort
Cheers
Here's v1.0 ... fully customizable.
This seems to be unneeded around here, So... for the few who want it, y'all can download it from the Diamond Section - In the meantime, I'll be contemplating ways of making new versions unusable on the Raphael for the obvious unpopularity of this device, and equally evident lack of enthusiasm from those who have it
Cheers
[[I don't know whether this belongs in Development, but I thought I'd post here in case it doesn't, and it can be moved if needed.]]
This *could* be the kind of thing that's really, really easy to do if you have source code access (I guess we all do) and know how to build (I don't). I just want the option in the Camera app to set a very short timer, say 1 second. The reason is that, when pressing the shutter button, I can't help but introduce a little bit of movement in the process. That movement blurs up my picture. The small delay gets rid of that problem, and it's a common feature on many digital cameras.
Right now the shortest delay is 10 seconds, which is just way too long to be useful for this purpose.
Just getting started with Tasker? If you're looking for some great tasks to get going on your phone, you should try these ones out first. I picked out five simple and useful profiles that you can take a gander at.
1. Keep screen on when using reading apps
Nothing is more frustrating than when you're in the middle of reading the hottest scene in Fifty Shades Of Grey and you screen times out. I'm reading here! To prevent this from happening, you can program Tasker to tell all reading apps to stay awake as long as they're open. Here is how:
{
"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"
}
Steps:
Create new task (name it “Keep screen on” or something like that).
Tap on the “+” button, select “Display” and then “Display Timeout“.
Increase the limit to your desired level and save the task.
Go to “Profile” then tap the plus icon and select “Applications“.
Choose the applications for which you want to keep the screen on.
2. Put your phone in silent mode by turning your phone upside down
Do you ever get jealous of those rich people that are able to afford phones that come with this silent feature? They just set their phone face down as they briefly make eye contact with you to make sure that you know you're inferior. Well screw those guys. You make make your own phone do this with this simple Tasker profile!
Steps:
Go to Profile , then select “State“, “Sensor” and “Orientation” in that order. Choose “Face down” from the drop down menu.
Create new task. Tap on the “+” icon , select audio then silent mode. Choose “On” or “Vibrate“.
3. Turn android lockscreen off in trusted locations
If you're like me, the Android lockscreen drives you up the wall! When I need access to my phone, I need it now. I don't want to have to put a pin in each time but if I don't then my kids will break in and find out I'm putting them up for adoption. When I'm at work this isn't an issue though because my kids are at home locked up in the basement. That's why this Tasker profile will come in handy by disabling my lockscreen in trusted locations. So now when I head in to work my phone will disable the lockscreen. Pretty dang useful.
Steps:
Entry Task
create an entry task (name it “Lockscreen OFF“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock OFF“.
Exit Task
create an entry task (name it “Lockscreen ON“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock ON“.
Profile
Create new. Select “State“, “Net” and “Wi-Fi connected” in that order.
Enter the SSID of your home Wi-Fi network.
Link to the “Lockscreen OFF” Task.
Long press the profile and add an exit task. Select “Lockscreen ON“.
4. Night mode or Quiet time
This one easy as crap. Your phone doesn't need to be making all this noise and using all that data at night time does it? Shut that nonsense off! This profile will save battery and give you a better sleep, which could end up giving you 4 extra years of life.
Steps:
Create a new profile and select time. Choose the desired time range (for example, from 00:00 – 06:30).
Create a new task and tap the “+” icon.
Go to “Audio” then set Silent mode ON or vibrate.
Go to “Net” and turn auto sync OFF and Wi-Fi OFF.
5. Lock phone by shaking
The sensor tasks are my personal favorites. You can trigger all kinds of actions by use the data from your sensors. For this profile you can set your screen to lock when you shake your phone. Everyone likes stuff like this and it takes literally 30 seconds to do.
Steps:
Create a new profile. Go to “Events” and then “Sensor“. Select “Shake” and enter your preferences for axis, sensitivity and duration.
Create a new task and tap the “+” icon. Click “Display” then “System lock“.
So there you have five easy profiles to get you started with Tasker. <3
Great post champ!
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
NesBitton said:
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
Click to expand...
Click to collapse
That's a good question and I think you might be the first person to run into that. I cannot find any information on how that would be possible.
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
pmgreen said:
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
Click to expand...
Click to collapse
With respect to the location part, you could try Cell Near. For the weather, a couple of months ago I was looking for something similar and found this, which may help. (reading it gave me a massive headache, so I gave up.)
pmgreen said:
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
Click to expand...
Click to collapse
What system are you using to control your light? I know how to do it using Z-wave and Vera + HomeBuddy + Tasker, its pretty easy to use tasker to trigger Automated Scene in Vera
You can use the method posted above to set your local weather in a variable then use this variable and either the "State --> Phone ---> Cell Near" or "Location(GPS)" condition to trigger a task that will send and intent to Homebuddy to start a Vera scene (homebuddy is an app to control your Vera scenes). So if your are connected to your local tower (or your GPS position is home) + your local weather is bad = send an intent to homebuddy that will turn on the lights.
Edit:
Here is how you do it using a Vera z-wave hub (Vera lite/2/3):
-Log in your Vera account, go to the Automation menu and create a new scene that will simply turn on the desired lights. Take note of your scene number.
-Make an account (free) at weatherunderground.com to get a user key: www.wunderground.com/weather/api/ once registered take note of your key
-Download HomeBuddy on your phone (yes I know the app is old and did not get any updated for a while but its working good to make Tasker talk to your Vera hub)
-Launch homebuddy and setup your Vera serial number, Username and Password
-Then go in Tasker and create a new task (I have named mine "Get Weather") and add the following actions in your task:
Action #1
HTTP Get
Serverort: api.wunderground.com
Path: /api/your_key/conditions/q/your_location.xml
*replace "your_key" by your weatherunderground.com key and "your_location" by your gps location. You can use Google Maps to find your GPS location. e.g: New York is 40.690917,-74.047185. By default there is a space between your latitude and longitude values when you copy it from google maps, you need to remove it. Lets say you are at New York and your key is abcdef123456789 then the Path will be: /api/abcdef123456789/conditions/q/40.690917,-74.047185.xml
This will set your %HTTPD variable to this value:
Code:
<response>
<version>0.1</version>
<termsofService>
http://www.wunderground.com/weather/api/d/terms.html
</termsofService>
<features>
<feature>conditions</feature>
</features>
[B][COLOR="Red"]<current_observation>[/COLOR][/B]
<image>
<url>http://icons.wxug.com/graphics/wu2/logo_130x80.png</url>
<title>Weather Underground</title>
<link>http://www.wunderground.com</link>
</image>
<display_location>
<full>Jersey City, NJ</full>
<city>Jersey City</city>
<state>NJ</state>
<state_name>New Jersey</state_name>
<country>US</country>
<country_iso3166>US</country_iso3166>
<zip>07303</zip>
<magic>1</magic>
<wmo>99999</wmo>
<latitude>40.690917</latitude>
<longitude>-74.047185</longitude>
<elevation>3.00000000</elevation>
</display_location>
<observation_location>
<full>NJWxNet, Jersey City, New Jersey</full>
<city>NJWxNet, Jersey City</city>
<state>New Jersey</state>
<country>US</country>
<country_iso3166>US</country_iso3166>
<latitude>40.708744</latitude>
<longitude>-74.053070</longitude>
<elevation>6 ft</elevation>
</observation_location>
<estimated></estimated>
<station_id>MNJ12</station_id>
<observation_time>Last Updated on January 16, 2:25 AM EST</observation_time>
<observation_time_rfc822>Sat, 16 Jan 2016 02:25:00 -0500</observation_time_rfc822>
<observation_epoch>1452929100</observation_epoch>
<local_time_rfc822>Sat, 16 Jan 2016 03:01:09 -0500</local_time_rfc822>
<local_epoch>1452931269</local_epoch>
<local_tz_short>EST</local_tz_short>
<local_tz_long>America/New_York</local_tz_long>
<local_tz_offset>-0500</local_tz_offset>
[B][COLOR="DarkOrange"]<weather>[/COLOR][/B][B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
</response>
The information we need (the actual weather condition) is inside the <weather> and </weather> tags which are inside the <current_observation> and </current_observation> tags. We'll need to split everything so we end up having a variable that is simply the current weather But first we need to create another variable to replace %HTTPD because it can be overwritten by any other task using this variable.
Action #2
Variable Set
Name: %weather
To: %HTTPD
So now we can work with our own %weather variable instead of %HTTPD
Action #3
Variable Split
Name: %weather
Splitter: <current_observation>
This will create a new Variable named %weather2 which will be equal to the information present after the <current_observation>
Code:
<image>
<url>http://icons.wxug.com/graphics/wu2/logo_130x80.png</url>
<title>Weather Underground</title>
<link>http://www.wunderground.com</link>
</image>
<display_location>
<full>Jersey City, NJ</full>
<city>Jersey City</city>
<state>NJ</state>
<state_name>New Jersey</state_name>
<country>US</country>
<country_iso3166>US</country_iso3166>
<zip>07303</zip>
<magic>1</magic>
<wmo>99999</wmo>
<latitude>40.690917</latitude>
<longitude>-74.047185</longitude>
<elevation>3.00000000</elevation>
</display_location>
<observation_location>
<full>NJWxNet, Jersey City, New Jersey</full>
<city>NJWxNet, Jersey City</city>
<state>New Jersey</state>
<country>US</country>
<country_iso3166>US</country_iso3166>
<latitude>40.708744</latitude>
<longitude>-74.053070</longitude>
<elevation>6 ft</elevation>
</observation_location>
<estimated></estimated>
<station_id>MNJ12</station_id>
<observation_time>Last Updated on January 16, 2:25 AM EST</observation_time>
<observation_time_rfc822>Sat, 16 Jan 2016 02:25:00 -0500</observation_time_rfc822>
<observation_epoch>1452929100</observation_epoch>
<local_time_rfc822>Sat, 16 Jan 2016 03:01:09 -0500</local_time_rfc822>
<local_epoch>1452931269</local_epoch>
<local_tz_short>EST</local_tz_short>
<local_tz_long>America/New_York</local_tz_long>
<local_tz_offset>-0500</local_tz_offset>
[B][COLOR="DarkOrange"]<weather>[/COLOR][/B][B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
Now we need to split it again
Action #4
Variable Split
Name: %weather2
Splitter: <weather>
Now you'll have the %weather22 variable which will be equal to the information present after the <weather> tag:
Code:
[B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
Now we need to split one last time to wipe evertyhing after the </weather> tag to keep only the "Overcast" value:
Action #5
Variable Split
Name: %weather22
Splitter: </weather>
Now you'll have the %weather221 variable which will be equal to the information present before the </weather> tag:
Code:
[COLOR="SeaGreen"][B]Overcast[/B][/COLOR]
Now we can save this value in another variable so its safe:
Action #6
Variable Set
Name: %CURRENTWEATHER
To: %weather221
so in this example %CURRENTWEATHER = Overcast
Action #7
If
Condition: %CURRENTWEATHER doesn't match Clear
(If weather isn't clear ---> bad weather)
Action #8
Send Intent
Action: android.intent.action.VIEW
Data: homebuddy://activate?vera=<your_vera_serial_number>&<your_scene_number>
Target: Activity
replace your_vera_serial_number and your_scene_number by the correct value (don't forget to remove the <> symbols)
Action #9
End If
Now you're done. If the weather isn't clear, tasker will send an intent to homebuddy which will then send the command to your Vera to trigger the scene you have made to turn on your lights.
Now you only need to create a Profile that triggers this task based on your location either with the Cell Near function or Location function. You could also trigger the Task when our phone is connected to your home wifi (specific SSID) so the Task only runs when you are near your door (if you get wifi at the door).
Finally you might think I forgot about that "turn on the lights" at sunset thing... No need to use Tasker for that (even if that could be done). There is a simple Vera app to detect sunset and sunrise which you can use to trigger the same scene. Its called "Day or Night"
That's it, hope it will help some of you. :good:
For reference, the weather conditions that can be present between the <weather> and </weather> tags are
Code:
[Light/Heavy] Drizzle
[Light/Heavy] Rain
[Light/Heavy] Snow
[Light/Heavy] Snow Grains
[Light/Heavy] Ice Crystals
[Light/Heavy] Ice Pellets
[Light/Heavy] Hail
[Light/Heavy] Mist
[Light/Heavy] Fog
[Light/Heavy] Fog Patches
[Light/Heavy] Smoke
[Light/Heavy] Volcanic Ash
[Light/Heavy] Widespread Dust
[Light/Heavy] Sand
[Light/Heavy] Haze
[Light/Heavy] Spray
[Light/Heavy] Dust Whirls
[Light/Heavy] Sandstorm
[Light/Heavy] Low Drifting Snow
[Light/Heavy] Low Drifting Widespread Dust
[Light/Heavy] Low Drifting Sand
[Light/Heavy] Blowing Snow
[Light/Heavy] Blowing Widespread Dust
[Light/Heavy] Blowing Sand
[Light/Heavy] Rain Mist
[Light/Heavy] Rain Showers
[Light/Heavy] Snow Showers
[Light/Heavy] Snow Blowing Snow Mist
[Light/Heavy] Ice Pellet Showers
[Light/Heavy] Hail Showers
[Light/Heavy] Small Hail Showers
[Light/Heavy] Thunderstorm
[Light/Heavy] Thunderstorms and Rain
[Light/Heavy] Thunderstorms and Snow
[Light/Heavy] Thunderstorms and Ice Pellets
[Light/Heavy] Thunderstorms with Hail
[Light/Heavy] Thunderstorms with Small Hail
[Light/Heavy] Freezing Drizzle
[Light/Heavy] Freezing Rain
[Light/Heavy] Freezing Fog
Patches of Fog
Shallow Fog
Partial Fog
Overcast
Clear
Partly Cloudy
Mostly Cloudy
Scattered Clouds
Small Hail
Squalls
Funnel Cloud
Unknown Precipitation
Unknown
So you might want to add some more values than only "Clear" at action #7 cause there are other weather values where its still sunny enough outside and you don't need to turn on the lights...
You could also use AutoVera instead of homebuddy to make the bridge between your Vera and Tasker (its a tasker plugin). The advantage of using hommebuddy is that its free, not AutoVera
Thank you, you can also turn on flashlight when on dark place.
Thank you for sharing profiles.
Thank you for sharing profiles. "The knowledge is good when sharing it".
GroovyAPKs said:
If you're like me, the Android lockscreen drives you up the wall! When I need access to my phone, I need it now. I don't want to have to put a pin in each time but if I don't then my kids will break in and find out I'm putting them up for adoption. When I'm at work this isn't an issue though because my kids are at home locked up in the basement. That's why this Tasker profile will come in handy by disabling my lockscreen in trusted locations. So now when I head in to work my phone will disable the lockscreen. Pretty dang useful.
Entry Task
create an entry task (name it “Lockscreen OFF“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock OFF“.
Exit Task
create an entry task (name it “Lockscreen ON“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock ON“.
Profile
Create new. Select “State“, “Net” and “Wi-Fi connected” in that order.
Enter the SSID of your home Wi-Fi network.
Link to the “Lockscreen OFF” Task.
Long press the profile and add an exit task. Select “Lockscreen ON“.
Click to expand...
Click to collapse
I created a profile using your instruction but I was getting error "an error occurred while executing Pattern Lock". Root access is granted to Secure Settings
Thank you for helping us newbies with this program.... It is a little daunting at first, but help like this helps, me at least, grasp the concepts easier.
How could I go about doing your #4. Night mode or Quiet time (tho i would probably just toggle Airplane Mode)... but only for specific days? I usually stay up later on Friday and Saturday... so I wouldnt want to miss a call or text at say 11pm... but during the week (Sun-Thurs) I am in bed by 10 due to getting up pretty early. Would I really need to create the task for each day?
As an example, I would want quiet from 10pm to 5am Sun-Thurs... and 1am to 9am on Fri-Sat. I could go without Fri and Sat if necessary. I just dont see how to do a day and time profile. THANKS!
Another good - and free source of weather data is:
www.worldweatheronline.com - you can get a feed in either xml or in json... I prefer the xml one.
You need to sign up for the key, but the thing I like is you can give it a lat/long and it will tell you the nearest weather station and country - saves me looking up the google api to convert lat/long to address.
I use a loop to read splitter text from a txt file and extracting the data I want from the XML file in to a "clean" txt file. If anyone is interested I'd be happy to post the code here - it's not brilliant, very Heath Robinson.
its there anyway to toggle the nav bar from the quick settings?
NesBitton said:
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2679305
Regarding the keep screen on when using apps, my display time out stays at whatever time I set it at in Tasker. Is there a way to have it revert back to my original settings after the app is closed?
Edit: Oh nvm, new to Tasker and didn't know I had to add the Exit part!
jlang11 said:
Thank you for helping us newbies with this program.... It is a little daunting at first, but help like this helps, me at least, grasp the concepts easier.
How could I go about doing your #4. Night mode or Quiet time (tho i would probably just toggle Airplane Mode)... but only for specific days? I usually stay up later on Friday and Saturday... so I wouldnt want to miss a call or text at say 11pm... but during the week (Sun-Thurs) I am in bed by 10 due to getting up pretty early. Would I really need to create the task for each day?
As an example, I would want quiet from 10pm to 5am Sun-Thurs... and 1am to 9am on Fri-Sat. I could go without Fri and Sat if necessary. I just dont see how to do a day and time profile. THANKS!
Click to expand...
Click to collapse
You can add a trigger condition (for example day of the week) by long-pressing the initial trigger condition in the profile screen (see screenshots).
In the given example, long-press the Display Off trigger(see screenshot #1) and you will be prompted with the popup menu as seen in screenshot #2.
You can now add "Day" as trigger condition and "Time" for specific time intervals.
This way you can set up two Quiet Hours profiles, one for the weekend and one for working days, for example Quiet Hours Working and Quiet Hours Weekend.
orville87 said:
You can add a trigger condition (for example day of the week) by long-pressing the initial trigger condition in the profile screen (see screenshots).
In the given example, long-press the Display Off trigger(see screenshot #1) and you will be prompted with the popup menu as seen in screenshot #2.
You can now add "Day" as trigger condition and "Time" for specific time intervals.
This way you can set up two Quiet Hours profiles, one for the weekend and one for working days, for example Quiet Hours Working and Quiet Hours Weekend.
View attachment 3678947 View attachment 3678948
Click to expand...
Click to collapse
Awesome!! Ill give it a try tonight after work. Thank you!
I did number 3 and it worked brilliantly for about a day, then it just turned my lockscreen off even when I'm not connected to my wifi. I realised that at some point I had lost root so I restored that and hoped that would fix it, but I still cant get it to go again. I've looked over the settings over and over again and can't see anything wrong. Any ideas? Its like it doesn't run the end task of turning the lockscreen back on. Even my settings say lockscreen is set on swipe.
I followed the tutorial on youtube, turning on wifi when triggered by location. But when I tap the gps icon at the top of the tasker screen the map doesnt move. It is stuck not doing anything. Location icon on the settings is ON. I NOTICE that the cursor is on the box that says latitude then longtitude on the opposite side. Looks like it does the contrary. Instead of locating me it looks like tasker want me to specify the latitude and longtitude of my location.
Using moto e 2nd gen marshmallow. I dont see that it requires root access.
MrMosoani said:
I followed the tutorial on youtube, turning on wifi when triggered by location. But when I tap the gps icon at the top of the tasker screen the map doesnt move. It is stuck not doing anything. Location icon on the settings is ON. I NOTICE that the cursor is on the box that says latitude then longtitude on the opposite side. Looks like it does the contrary. Instead of locating me it looks like tasker want me to specify the latitude and longtitude of my location.
Using moto e 2nd gen marshmallow. I dont see that it requires root access.
Click to expand...
Click to collapse
Using location to trigger events can be power intensive. Android, by default, scans for wifi even when it is off. I have profiles similar to what you're trying to do. But i have mine set up to trigger when the wifi specified is detected. It's "wifi near"
Thanks. But how come he was able to make it work in the tutorial? It was his first basic profile to turn On wifi on the phone when he reached home.
I got annoyed that the eye-comfort mode could only be scheduled on fixed times and I had to constantly change them during spring and autumn.
So I made this simple flow for the Automate app - it is probably something like Tasker but it is free for a task with a few blocks - ideal for cheapskates like me.
I used this flow by Sándor Illés to calculate sunset and sunrise times.
The flow
It gets current location, calculates the times and then sets them up as schedule times (eye_comfort_starttime and eye_comfort_endtime system variables).
Then it waits for 1:00 (am) and starts over again.
I just tested it for 3 days and it runs ok on my View 10 with EMUI 9.1. No idea whether it works on older and newer versions or not. //edit: Works okay after EMUI 10 update too.
How to?
Basically, you install Automate, go to the settings and enable resuming flows after system startup.
Extract and install this flow, start it and it should daily update the schedule times.
You obviously also have to have eye-comfort schedule enabled.
On a related note: Stronger eye-comfort filter
I always felt that the blue light filter using eye-comfort is quite weak. During my search for correct variables to modify, I discovered that the highest value for filter you can select using the slider in the eye-comfort settings is 20, but you can dial the filter up to 50 and it gets slightly stronger then!
It is user_set_warm system variable.
Funnily enough, there are also eye_comfort_lesswarm and eye_comfort_morewarm variables which change the range of the slider in the settings.
You can set the eye_comfort_morewarm to 50 and then the slider in the settings will let you set the filter stronger. Higher values than 50 turn the filter off though.
The system variables can be modified using the "system settings set" block in the Automate or simply using SetEdit app. They can probably be changed using ADB too, but I didn't try that. Sadly these settings reset after reboot.
No root required for any of that.
Great stuff! Looking for the same feature on my Huawei phone but unfortunately, the file that you have attached has been removed. Could you upload it again? Thanks
Samuel Grande said:
Great stuff! Looking for the same feature on my Huawei phone but unfortunately, the file that you have attached has been removed. Could you upload it again? Thanks
Click to expand...
Click to collapse
What, they just deleted all the user uploaded stuff when changing the boards? Now that's a shame.
Anyway, I reuploaded the file.
BUYER BEWARE: I don't know how Samsung handles burn-in. I created an overlay for WatchMaker that effectively turns off every pixel for a minute or two each hour (similar to what pixel shift does).
------------------------------------------------
I lucked into exploiting a bug/glitch that somehow tricks or circumvents the 15% OPR limitation in dim mode. What I end-up with is considerably brighter, and much more useable/readable.
Using WatchMaker and Tasker, create a task to run every 5 minutes throughout the day. Every 5 minutes (or 10 or whatever you choose, just needs to be higher than watch's screen off time), re-send the currently selected WatchMaker face to your Watch. It might take a cycle or two to sync, but you'll end-up with the default WatchMaker brightness (which doesn't appear to be adjustable) in dim mode.
My blue/orange/red watchfaces (some with @ 45% OPR) are now readable in dim mode. Uses maybe 1-1.5% extra battery per hour (I have brightness set to 4 out of 10). App "I'm Alive" works great to keep your watch always on (and active), but is a huge battery drain in the 8-10% per hour range in my tests. The Tasker trick above actually allows your watch to go into inactive/dim mode.
NOT A GUARANTEE AGAINST BURN-IN!!!
Here are the overlays I use in WatchMaker. It would be the top/last two layers in your design. The first I set the X coordinate to {dm}, which shifts the image 1 pixel right each minute. The second I set the Y coordinate to {dm}, which shifts the image 1 pixel down each minute.
I really can't see these pixels, although they may show on large white parts of your watch.
The images are a 630x630 square at 364 DPI (for the 1.4" 45mm Galaxy Watch 3). Each row has 1 pure black pixel every 60 pixels, and I alternated so to maximize the space between pixels to not be noticeable. The second image is rotated 180 degrees so you can use both in order to "turn-off" each pixel for 2 minutes each hour.
One more layer of protection would be to lengthen your minute hand all the way to the edge and it will then, presumably, change the color of every pixel for a few minutes each hour as it rotates around.
The images are below (they're just mostly transparent!). Hover around with the cursor to find GWBurnIn1.png and GWBurnIn2.png
More tips:
Rotate watch faces at least every 12 hours to reduce chance of burn-in (GW3 WatchMaker max is 3 hours, FYI, but you need to control this from Tasker, anyway, to select different watches at different times on different days)
Alternate between light/colored faces and dark/black faces. Even better, use paint.net (free download for PC) to create the inverted color version of the watch face. But in most cases the inverted face will probably be ugly as sin.
A couple battery drain tips: Don't use WatchMaker default rotation commands for the minute-hand, use {dm}*6. In dim mode, the hand only moves every minute, anyway, but the default rotation is adjusted for seconds which could cause it to constantly engage cpu to calculate. Similarly, you might not want to use the continuous second-hand {drss} rotation.
Note: The second-hand does not disappear in dim mode even if set to bright only. Use the below code for the Opacity of the second-hand. This makes the second hand invisible after the watch has been active for 15 seconds. It will come back, for 15 seconds (or whatever you choose) when you interact with your watch again.
{c_elapsed} >=15 and 0 or 100
How do you write the Tasker task to change the watch face in watchmaker? Thanks for help
Would like to know this as well...
mib1800 said:
How do you write the Tasker task to change the watch face in watchmaker? Thanks for help
Click to expand...
Click to collapse
There are two steps. First, a "sub-task" to set a Tasker variable. In the below scenario, I'm rotating 25 watchfaces for the week. It's iterating the variable +1 every 8 hours, until 25 then back to 0.
with trigger/event set from 12AM every 8 hours
1) Variable set.....Name "%WMwatch" and To 0 and "If %WMwatch" eq 25
2) Variable add....Name "%WMwatch" and Value 1 and Wrap Around 0
Second step. Set the watchface. You need to use the Tasker Watchmaker plugin. The action is "WM Change Watch". The trigger event you want to set to every 5 minutes (or 2, or 10 minutes or whatever). I use 5 minutes and the battery drain is completely negligible.
1) Configuration: choose your watchface...and use the IF function %WMwatch EQ 1 (and then a different watchface for 2, and 3, and so on).
That's it. Kind of hard to explain, but if you guys are familiar with Tasker you should be able to figure it out. This hack is still working for me, and I love it.