trigger a Tasker intent with extra in Kodi? - Tasker Tips & Tricks

Hi guys, I want to connect to a server via OpenVPN from a .py script from Kodi.
This is a working task in Tasker:
Code:
Send Intent
Action:android.intent.action.MAIN
Cat:None
Extra:de.blinkt.openvpn.shortcutProfileName: PROFILENAME
Package:de.blinkt.openvpn
Target:Activity
and this is my .py script but it's only taking me to tasker which is really not what I want. I don't want tasker to open at all just do the task silently.
Code:
import xbmc xbmc.executebuiltin('StartAndroidActivity(de.blinkt.openvpn,android.intent.action.MAIN,de.blinkt.openvpn.shortcutProfileName: PROFILENAME)')]
Hope someone can help me.

Related

Open obex question

I am using the open obex server from here: http://forum.xda-developers.com/showpost.php?p=3932525&postcount=57, and it only broadcasts object push, which only allows me to send a contact or vcard, how do i set it so i can send any type of file, like a picture?

[Q] Can't add VPN L2TP type without IPSec

I have problem to add VPN profile with L2TP type without IPSec. There isn't any option to set this connection as you see below:
Can anyone help me?

[Q] Can't add VPN L2TP type without IPSec

I have problem to add VPN profile with L2TP type without IPSec. There isn't any option to set this connection as you see below:
Can anyone help me?
up
Up

[Q] how to redirect link php to application page.

I am developing an application in visual basic is the only solution that I got to make a login page was through php, the problem I encrontro is :
how do I do so that the server forwards back to the application type :
location (header : " applicationpage.html " ) ;
Are you asking how to make a web page (opened in the phone's browser) open an app to a specific page? Have the app register a URI scheme - something unique, like prrcapps_appname: - and have the handler for that URI scheme either open the desired page directly, or navigate within the app to the desired page. Then have your web app redirect the user to that custom scheme (instead of to a http: or https: URI, send them to your custom URI) and it should open.

Sync folders from internal to google drive

How i can set up Tasker to sync folder from my storage to cloud.
I know there are apps for that, but they sync just once, when file is added or deleted.
But i want to be able to upload it when it detects any changes in file.
To sync when wifi is available again, when i am not connected but i need it to sync files immediately when connected to wifi.
The "file modified" event will also monitor a directory. To select a directory, long press on the directory name when setting up the event.
In the following example, I use 2 profiles. One to set %FolderModified to "true" when the folder is modified. The second profile reacts to the %FolderModified variable AND a Wifi Connected state.
This means that whenever the Wi-Fi is connected, AND there has been a modification to the folder, the G-Drive sync will begin.
Note: I always use variables for sensitive data like the Gmail account in the File Modified Upload profile -> A1: GD Upload. This prevents an unintentional sharing of sensitive information. I do this for API keys, log in credentials, ect.
Profile: File Modified
Event: File Modified [
File:Backups/ ]
Enter: Folder Modified
A1: Variable Set [
Name: %FolderModified
To: true
Recurse Variables: Off
Do Maths: Off
Append: Off
Max Rounding Digits:3 ]
Profile: File Modified Upload
State: Variable Value [
%FolderModified ~ true ]
State: Wifi Connected [
SSID:*
MAC:*
IP:*
Active:Any ]
Enter: Tasker Gdrive Sync
A1: GD Upload [
Google Drive Account: %MyGdriveAcct
Data / File:Backups
Remote File Name:
Remote Folder:Tasker
Content Description:
Overwrite If Exists: Off
Publicly Share File: Off ]
A2: Variable Clear [
Name:%FolderModified
Pattern Matching: Off
Local Variables Only: Off ]
A3: Notify [
Title:Folder Uploaded To GDrive
Text:
Icon:null
Number:0
Permanent: Off
Priority:3 Repeat Alert: Off LED
Colour:Red
LED Rate:0
Sound File:
Vibration Pattern:
Category: ]

Categories

Resources